Problem in "Mounting Virtual Kernel File Systems"
Hi folks,
I'm now held on 6.2. Mounting Virtual Kernel File Systems http://www.sg.linuxfromscratch.org/l...06/kernfs.html [satimis@localhost ~]$ su - Password: [root@localhost ~]# mkdir -p $LFS/{proc,sys} [root@localhost ~]# mount -t proc proc $LFS/proc mount: proc already mounted [root@localhost ~]# mount -t sysfs sysfs $LFS/sys mount: sysfs already mounted or /sys busy mount: according to mtab, none is already mounted on /sys $ cat /etc/fstab Code:
# This file is edited by fstab-sync - see 'man fstab-sync' for details [root@localhost ~]# mkdir -p $LFS/{proc,sys} [root@localhost ~]# mount -t proc proc $LFS/proc mount: proc already mounted [root@localhost ~]# mount -t sysfs sysfs $LFS/sys mount: sysfs already mounted or /sys busy mount: according to mtab, none is already mounted on /sys Please help. TIA B.R. satimis |
Re: Problem in "Mounting Virtual Kernel File Systems"
Quote:
Code:
[root@localhost ~]# mount /mnt/lfs |
Re: Re: Problem in "Mounting Virtual Kernel File Systems"
Hi freegianghu,
Tks for your advice. Quote:
"su" NOT "su -" Would it matter? Steps performed as follows; [satimis@localhost ~]$ su Password: [root@localhost satimis]# mount /mnt/lfs mount: /dev/hda6 already mounted or /mnt/lfs busy mount: according to mtab, /dev/hda6 is already mounted on /mnt/lfs [root@localhost satimis]# echo $LFS No print out [root@localhost satimis]# export LFS=/mnt/lfs [root@localhost satimis]# mkdir -p $LFS/{proc,sys} [root@localhost satimis]# mount -t proc proc $LFS/proc [root@localhost satimis]# mount -t sysfs sysfs $LFS/sys All went through without complaint. [root@localhost satimis]# printevn Code:
bash: printevn: command not found root Shall I logout and relogin as "su -" to repeat following commands Code:
export LFS=/mnt/lfs B.R. satimis P.S. a further question. Shall I comment out following line on /etc/fstab Code:
.... |
I dont know why you have to "su" or "su -" over and over again. In my experiences you should su once at start (export $LFS && mount $LFS ), and su - lfs in chapter 5. Thats all!!!
Cheers, GH |
Quote:
|
Hi freegianghu and kjordan,
Tks for your advice. This PC (FC3) is for testing purpose. Each time before leaving it I have to turn it off. That is why having to repeat 'su' or 'su -' often I'm not still very clear on the different between 'su' and 'su -' (some folks termed it as 'Super Root'). The only notice coming to my recognition is some commands must be executed on 'su -' (Super Root). 'su' does not work. Please, one further question; If I turn off the PC at end of "Section 6.2. Mounting Virtual Kernel File Systems" http://www.sg.linuxfromscratch.org/l...06/kernfs.html on next boot to continue building LFS on "Section 6.3. Entering the Chroot Environment" http://www.sg.linuxfromscratch.org/l...06/chroot.html whether I have to re-run "Section 6.2. Mounting Virtual Kernel File Systems" TIA B.R. satimis |
Quote:
Yes, you will need to redo 6.2 if you stop anywhere in the book. |
Hi kjordan,
Quote:
Quote:
B.R. satimis |
All times are GMT -5. The time now is 07:45 PM. |