LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Debian (http://www.linuxquestions.org/questions/debian-26/)
-   -   sys not mounting in schroot (http://www.linuxquestions.org/questions/debian-26/sys-not-mounting-in-schroot-820186/)

donnied 07-16-2010 10:43 AM

sys not mounting in schroot
 
I can manually mount /sys on the /chroot/sys but within the chroot it's not showing up. I see from outside the chroot that it's mounted to a directory within the chroot, but within the chroot it's not visible. /tmp /proc and /dev are visible, just not /sys.
?

j1alu 07-16-2010 12:00 PM

Like that ?
Code:

# mount /dev/sda8 /media/disk
# chroot /media/disk
ROOT# ls /sys
ROOT# exit
exit
# mount -o bind /sys /media/disk/sys/
# chroot /media/disk
ROOT# ls /sys
block  bus  class  dev        devices  firmware  fs  kernel  module  power
ROOT#

perhaps.

donnied 07-16-2010 01:12 PM

Maybe I should have specified I'm using schroot.


After
Code:

mount -t sysfs none /var/chroot/squeeze-32/sys
In the 'regular' shell I see:
Code:


# ls /sys/
block  bus  class  dev  devices  firmware  fs  hypervisor  kernel  module  power

# ls /var/chroot/squeeze-32/sys/
block  bus  class  dev  devices  firmware  fs  hypervisor  kernel  module  power

However, in the chroot I see:
Code:

# ls /sys/
(squeeze-32)#

(blank; no output).

donnied 07-16-2010 01:14 PM

It may be a schroot issue.
# chroot /var/chroot/squeeze-32/
(squeeze-32)root# ls /sys/
block bus class dev devices firmware fs hypervisor kernel module power


All times are GMT -5. The time now is 03:58 PM.