Chris Staub chris at
Wed Nov 7 15:46:05 PST 2007

Richard Caldwell wrote:
> ----- Original Message ----
> From: Chris Staub <chris at>
> To: LFS Support List <lfs-support at>
> Sent: Wednesday, November 7, 2007 8:25:05 AM
> Subject: Re: mounts
> Richard Caldwell wrote:
>> Hi,
>>    I'm building using liveCD6.3 and I'm currently on section '6.14 Sed-4.1.5' .I've been loggin in using openssh and building remotely(without rebooting). Each time I log in I need to run "export LFS=/mnt/lfs, mkdir -pv $LFS" and then enter the chroot environment again. I've just run the mount command and got the following results:
>> /dev/mapper/lfs-cd on / type ext2 (rw)
>> proc on /proc type proc (rw)
>> sysfs on /sys type sysfs (rw)
>> devpts on /dev/pts type devpts (rw,gid=4,mode=620)
>> /dev/hda1 on /mnt/lfs type ext3 (rw)
>> proc on /mnt/lfs/proc type proc (rw)
>> sysfs on /mnt/lfs/sys type sysfs (rw)
>> shm on /mnt/lfs/dev/shm type tmpfs (rw)
>> You should have $LFS/dev and $LFS/dev/pts there. Looks like $LFS wasn't 
>> set when you ran those commands. umount $LFS/dev/shm, rm $LFS/dev/shm 
>> and try again.
> Why do I want to umount $LFS/dev/shm ? Isnt that correct? Its mounted by "mount -vt tmpfs shm $LFS/dev/shm"
> Do you mean umount $LFS/dev/pts instead?
> Thanks

No, I mean umount $LFS/dev/shm. According to the above output you don't 
even have $LFS/dev/pts mounted, so of course you can't umount it. I have 
no idea how you got $LFS/dev/shm mounted but not $LFS/dev, but you need 
to umount $LFS/dev/shm, then trying again with mounting $LFS/dev and 
everything else (including $LFS/dev/shm and $LFS/dev/pts).

More information about the lfs-support mailing list