Advice on creating new directory
Hi folks,
I have 'LFS' partition permanently mounted as; # cat /etc/fstab Code:
# This file is edited by fstab-sync - see 'man fstab-sync' for details Code:
Filesystem Type 1K-blocks Used Available Use% Mounted on http://www.sg.linuxfromscratch.org/l.../mounting.html I proceeded # mkdir -p $LFS /mnt/LFS # mkdir /mnt/LFS/$LFS/usr # ls -al /mnt/LFS/ Code:
total 24 TIA B.R. satimis |
If you did an "export LFS=/mnt/lfs" then yes, $LFS is /mnt/lfs. I'm not sure where you're getting this extra stuff from, it explicitly says mkdir $LFS and not mkdir /mnt/lfs $LFS. Although it would seem your LFS variable isn't set if you're able to do mkdir -p /mnt/lfs/$LFS/usr and not have it end up as /mnt/lfs/mnt/lfs/usr, since if it isn't set, it will just end up as /mnt/lfs//usr.
|
Hi kjordan,
Tks for your advice. I ran following commands on Konsole; $ echo $lfs Empty output $ echo $LFS Empty output $ echo LFS LFS $ echo lfs lfs I thinks I have to repeat 2.4. Mounting the New Partition on http://www.sg.linuxfromscratch.org/l.../mounting.html $ cat /etc/fstab Code:
# This file is edited by fstab-sync - see 'man fstab-sync' for details Code:
/dev/hda6 /mnt/lfs ext3 defaults 1 2 # ls -l /mnt/ Code:
total 32 Code:
total 16 satimis |
The line in your fstab is alright if you want it automatically mounted at boot time when your host distro starts up. Also, you only need to mkdir the usr directory if you are wanting to mount a separate partition into /mnt/lfs/usr, otherwise it will be created later. All you really need to do is set your LFS variable, which is the top instruction "export LFS=/mnt/lfs"
|
Hi kjordan,
Quote:
B.R. satimis |
All times are GMT -5. The time now is 12:15 PM. |