Hi all: Just a short question. With the new patchlevel release of the kernel,
there is a very nice option for mounting the root filesystem readonly at first.
I assume the intention of this is to allow an [e2]fsck of the root partition.
My root partition is an ext2fs partition, 16MB.
Question:
How does one remount a partition that has been mounted readonly as a
read/write partition? And what is the correct file to put the [e2]fsck
in? /etc/rc? Or does /etc/init have to be modified somehow?
Attempts at Answer:
I have tried doing an e2fsck of / (on /dev/hda2) at the beginning of
/etc/rc. This works. However, when I do e2fsck on other partitions,
the output from '/bin/e2fsck -mrv /dev/hdaX' says that /dev/hdaX is
already mounted! So when are the filesystems being mounted -- before
/etc/rc is run? Then I try to mount the root filesystem, and that
*doesn't* work. My version of 'mount' doesn't appear to support the '-u'
option. The man page says something about this. But if there is no way
to remount the root partition as read/write, why do it at all?
Does anyone know if there is a /bin/mount that *does* support the '-u'
option? And what is the correct syntax for 'mount -u'?
In short, if anyone is able to run e2fsck on their /, /user, etc. paritions at
boot-time with 0.99pl9, and then remount / as read-write, could you let me know
how you did it? Like, what do your /etc/rc, /etc/fstab, /bin/mount files look
like (or what size and date are they)?
--
===========================================================================
L.G. 'Ted' Stern --- | The scientific method enables ordinary
===========================================================================