LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux From Scratch (https://www.linuxquestions.org/questions/linux-from-scratch-13/)
-   -   chrrot problem (https://www.linuxquestions.org/questions/linux-from-scratch-13/chrrot-problem-16848/)

bbenz3 03-22-2002 09:02 PM

chrrot problem
 
I was going through the install of an LFS system and everything was going fine as far I could tell till ch6.

I came accross this info to input and it wouldn't let me continue.
Quote:

cd $LFS &&
/usr/sbin/chroot $LFS /usr/bin/env -i HOME=/root \
TERM=$TERM /bin/bash --login
I get this error message:
/usr/sbin/chroot: cannot change root directory to /lfs: Operation not permitted.

I haven't a clue where to even begin to decode this problem. Plz help.

lfslinux 03-22-2002 09:17 PM

Re: chrrot problem
 
Quote:

Originally posted by bbenz3
I was going through the install of an LFS system and everything was going fine as far I could tell till ch6.

I came accross this info to input and it wouldn't let me continue.


I get this error message:
/usr/sbin/chroot: cannot change root directory to /lfs: Operation not permitted.

I haven't a clue where to even begin to decode this problem. Plz help.

run "cat /etc/mtab" and show us the lines that relate to your mounted LFS partition.

bbenz3 03-22-2002 09:41 PM

/dev/hdd1 /lfs ext2 rw 0 0

that's all that I see that is related to my lfs partition
here is the rest just in case i forgot something

/dev/hda1 / ext3 rw 0 0
none /proc proc rw 0 0
usbdevfs /proc/bus/usb usbdevfs rw 0 0
none /dev/pts devpts rw,gid=5,mode=620 0 0
none /dev/shm tmpfs rw 0 0
/dev/hdd1 /lfs ext2 rw 0 0

That is the whole thing.

lfslinux 03-22-2002 10:01 PM

Quote:

Originally posted by bbenz3
/dev/hdd1 /lfs ext2 rw 0 0
Looks good.

The other reason fo this error could be you not running chroot as user root

I should've said that before, since that's the number #1 reason for chroot failures.

So, make sure you're root.

bbenz3 03-22-2002 10:53 PM

I thought that might have been the problem so I had tried that. But it didn't work then. However, now it worked. Thanks for your fast responses and your help.


All times are GMT -5. The time now is 12:59 AM.