LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
Linux From Scratch This Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.

Notices

Reply
 
Search this Thread
Old 03-22-2002, 09:02 PM   #1
bbenz3
Member
 
Registered: Feb 2002
Location: Orlando
Distribution: Whatever I feel like at the time I install.
Posts: 284

Rep: Reputation: 30
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.
 
Old 03-22-2002, 09:17 PM   #2
lfslinux
LFS Maintainer
 
Registered: Jan 2002
Location: Canmore, Alberta, Canada
Distribution: Linux From Scratch
Posts: 372

Rep: Reputation: 30
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.
 
Old 03-22-2002, 09:41 PM   #3
bbenz3
Member
 
Registered: Feb 2002
Location: Orlando
Distribution: Whatever I feel like at the time I install.
Posts: 284

Original Poster
Rep: Reputation: 30
/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.
 
Old 03-22-2002, 10:01 PM   #4
lfslinux
LFS Maintainer
 
Registered: Jan 2002
Location: Canmore, Alberta, Canada
Distribution: Linux From Scratch
Posts: 372

Rep: Reputation: 30
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.
 
Old 03-22-2002, 10:53 PM   #5
bbenz3
Member
 
Registered: Feb 2002
Location: Orlando
Distribution: Whatever I feel like at the time I install.
Posts: 284

Original Poster
Rep: Reputation: 30
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
perl problem? apache problem? cgi problem? WorldBuilder Linux - Software 1 09-17-2003 07:45 PM
vsftpd chrrot list dsgdevil Linux - Software 16 02-06-2003 09:07 AM


All times are GMT -5. The time now is 10:31 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration