[lfs-support] What Is "The" LFS Partition?

Feuerbacher, Alan AFeuerbacher at ALLEGROMICRO.com
Tue Nov 6 12:55:38 PST 2012


> > Specifically, if you want to do "mount /dev/sda5 /mnt/lfs", but you
> have to create the directory "/mnt/lfs" BEFORE you do the mount, then
> where does the inode information about "/mnt/lfs" get written? I'm sure
> I'm missing some details.
> >
> In the beginning, you just have the root filesystem.
> 
> As any filesystem, it is "just" a map from paths to content.
> 
> When you create the directory /mnt/lfs, this writes something to the
> disk.
> 
> [ as it is a directory it does not touch inodes, but that's besides the
> point ]
> 
> So now you have a root filesystem (/) saying that "/mnt/lfs" is a
> directory, (You could create files in there if you wanted)
> 
> When you say "mout /dev/whatever /mnt/lfs" it just creates some
> structure in the kenel, telling he kernel to access some data on your
> /dev/whatever, when you access /mnt/lfs/foobar.
> 
> So, after the mount, the kernel has some new data, but neither your
> root filesystem, nor /dev/whatever has any data written on it.

That clears things up a lot. Again, thanks for your clear explanations!

Alan



More information about the lfs-support mailing list