Re: why /sys cannot be copied?



Star Liu wrote:
and i fount that the /sys in the broken system is a shell file, but
the /sys in the new system is a folder, so i tried to copy the sys
folder from new system to broken system, by cp /sys /root/OldRoot/sys,
but it says many files in the new sys folder cannot be read! why? how
could I resove the "mount: mounting /sys on /root/sys failed: Invalid
argument" problem?
also the "run-init: /sbin/init: No such file or directory" problem? thanks

From wikipedia [1]:
Sysfs is a virtual file system provided by Linux 2.6.
[...]
sysfs is an in-memory filesystem

/sys is a virtual filesystem that is created by the kernel on boot. It
is not a real file system on your hard disk. It seems obvious that your
broken system does not have a valid /sys since it did not manage to boot
properly. It should be automatically recreated, once your 'old' system
boots fine.

HTH,
Johannes

[1] http://en.wikipedia.org/wiki/Sysfs


--
To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx
with a subject of "unsubscribe". Trouble? Contact listmaster@xxxxxxxxxxxxxxxx



Relevant Pages

  • Re: Cannot remove directory
    ... Great instructions for making sure XP can't boot. ... There is no sys in XP. ... I now have a folder on my new drive that has all ...
    (microsoft.public.windowsxp.configuration_manage)
  • Re: why /sys cannot be copied?
    ... the /sys in the new system is a folder, so i tried to copy the sys ... but it says many files in the new sys folder cannot be read! ... /sys is a virtual filesystem that is created by the kernel on boot. ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ...
    (Debian-User)
  • Re: why /sys cannot be copied?
    ... the /sys in the new system is a folder, so i tried to copy the sys ... /sys is a virtual filesystem that is created by the kernel on boot. ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ...
    (Debian-User)
  • about /usr/src/etc
    ... I am unable to locate this folder. ... only have sys under /usr/src ... Thanks, Ivan. ... To unsubscribe, ...
    (freebsd-questions)
  • Sys32 on Startup
    ... When i boot my laptop i get the the following, ... It does not open the Sys 32 Folder it just says it cant ...
    (microsoft.public.windowsxp.general)