Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
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.


  Search this Thread
Old 07-19-2002, 04:23 AM   #1
Registered: May 2002
Location: CDO, Ph
Distribution: slackware 9.0, LFS-3.3, mandrake 9.2
Posts: 65

Rep: Reputation: 15
mounting a new partition to the same directory

I'm building an LFS and with a 1.5 GB space and mount it on /lfs directory and building the glibc-2.2.5 in chapter six promt me that the space was full, what I did to solve this problem was to create a new patition, this time I make 4 GB and I still mount it on /lfs directory.
My problem was when I cd into the /lfs directory the contents of /lfs was gone and when I unmount the new partition the contents of /lfs was back.
As what I've learned in linux is that you could resize the directory by mounting a new partition to that directory.
Please help me.
Old 07-19-2002, 06:47 AM   #2
Senior Member
Registered: Apr 2001
Location: Plymouth, England.
Distribution: Mostly Debian based systems
Posts: 4,368

Rep: Reputation: 64
This is not an LFS specific problem, but one around the whole mounting prinicple. As it stands (and I don't think it's likely to change), when you mount a filesystem on a directory, you can only see what is on that filesystem. If you look at it logically, you can see why it makes sense (hint: mounting CD/floppy/NFS/samba onto same directory... not wanting to see lots of files that are irrelevant).

My advice would be:

Mount the new partition somewhere else, and copy all your stuff over, if you wish, then unmount both and remount your new partition in /lfs.

Alternatively, you could copy only a specific part of your current LFS structure (such as /lfs/usr) over to the 4Gb partition, then mount them both: the original LFS partition on /mnt/lfs and the new one on /lfs/usr.

Just some thoughts.


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
Partition mounting/KDE errors after creating Fat32 Partition BertBert Linux - General 1 07-07-2004 10:59 AM
mounting a directory box_l Linux - General 4 07-25-2003 06:39 AM
mounting ftp directory raven Linux - Networking 3 06-17-2002 12:29 PM
Mounting mounting extended partition and its Logical drives desbyleo Linux - Newbie 10 02-18-2002 03:13 PM
Mounting a non-empty directory MasterBean Linux - General 1 07-12-2001 10:34 PM > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

All times are GMT -5. The time now is 06:25 PM.

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