LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux From Scratch (https://www.linuxquestions.org/questions/linux-from-scratch-13/)
-   -   mount proc crashes (https://www.linuxquestions.org/questions/linux-from-scratch-13/mount-proc-crashes-159734/)

davemar 03-19-2004 04:50 AM

mount proc crashes
 
When I carried out the mounting of /proc near the beginning of chapter 6, it falls over with a 'segmentation fault' initally, and just hangs up completely the second time. I then reset the machine and tried again, after doing chroot, and it gives an error about "/etc/mstab~" (can't remember the exact words), recommending I use "-n". So I add "-n" to the mount command and it seems to do it OK.
I know I have seemingly carried out the mount successfully eventually, but I'm a little concerned about these problems that occured.

Zero-0-Effect 03-20-2004 03:11 AM

You mount the $LFS /proc and $LFS devpts all before you enter the chroot enviroment. Doing it after would give you the /etc/fstab or /etc/mstab errors as you havnt created those files yet!

Andrew Benton 03-20-2004 12:20 PM

It depends which book you're following. LFS 5 mounts proc after chrooting but current CVS versions of the book do it before you chroot..

davemar 03-23-2004 03:29 AM

I just did what the book told me, which is to do after chroot. I'll try it before chroot in the future to see if it goes away now.

davemar 03-24-2004 09:49 AM

Yep, doing it before chroot seems to be clean now, and not needing -n.


All times are GMT -5. The time now is 09:50 AM.