mounting / ro permanently
Pacholleck.E at gmx.de
Wed Jan 24 10:04:28 PST 2001
Some time in my lfs beginning I read that it should be possible
to mount / ro only. This seemed to me a good idea.
But I am running against a wall again.
The root partition would need certainly these directories:
/bin /etc /lib /mnt /sbin with all their contents
These are the directories on other own partitions:
/boot /home /root (possible /home/root) /opt /tmp /usr /var
To my understanding /proc and /dev need rw mounting.
----- Heavy opposing preferred ;)
Instead of having in fstab : /proc /proc proc defaults 0 0
this change should work too: /dev/hda5 /proc proc defaults 0 0
So it must be possible to mount hda5 rw with /proc on it.
Any remarks against this ?
I am using the devfs with daemon and currently begin with:
mount --bind /dev /dev-state
mount -t devfs none /dev
Witch would be the corresponding fstab lines:
/dev /dev-state (devfs)? (defaults)? (0 0)?
none /dev devfs (defaults)? (0 0)?
Could that be a solution to get /dev to another partition:
- copy /dev and /dev-state to other partition, say hda6
- change to other lfs-system and delete original /dev and /dev-state
- change scripts to (I feel there is a thinking mistake in it)
- mount --bind /dev/hda6 /dev-state
- mount -t devfs none /dev
Thanks for your suggestions.
Unsubscribe: send email to lfs-apps-request at linuxfromscratch.org
and put unsubscribe in the subject header of the message
More information about the blfs-support