[Bug 281] /etc/mtab symlink creation
Seth W. Klein
sk at sethwklein.net
Sun Sep 29 09:43:15 PDT 2002
Gerard Beekmans <gerard at linuxfromscratch.org> wrote:
> Nothing new there. So it still comes down to what somebody finds more
> important, which decides to make mtab a symlink or not. Both have their
> advantages and disadvantages. Whose to say what to pick really. Whatever is
> picked, somebody is going to have a major problem with it. Sure, there are
> workarounds, but there are workarounds for everything. The bottom line is,
> I'm not really wanting to constantly change what we use. But, there's a hint
> now. We could reference it in the book and be done with it. If we were to
> change it back to a real file, there would have to be a hint totally opposite
> of the hint we have now. So there will always be a hint irregardless, right?
No. There are no problems with mtab as a real file if it is handled
correctly, and handling it correctly is trivial. Simply:
1) Run "mount -n /proc" before running fsck.
2) Remount / rw as usual.
3) Immediately after remounting /, clear mtab and initialize it with
"mount -f" for each mounted filesystem (/, /proc, and /dev if devfs
4) Mount remaining filesystems as usual.
Seth W. Klein
sk at sethwklein.net http://www.sethwklein.net/
Maintainer, LFS FAQ http://www.linuxfromscratch.org/faq/
Unsubscribe: send email to listar at linuxfromscratch.org
and put 'unsubscribe lfs-book' in the subject header of the message
More information about the lfs-book