--- Guillaume Cottenceau <[EMAIL PROTECTED]> wrote: > pascal <[EMAIL PROTECTED]> writes: > > > If you or a system configuration application put a > 'rw' option in /etc/fstab > > on the ROOT Filesystem '/' by mistake then you do > a mkinitrd, then lilo > > then you are in big troubles at next boot with the > logic in /etc/rc.sysinit > > because at boot the ROOTFS is already mounted RW > and Fsck cannot be done. It > > returns the error : > > > > " /dev/hda7 is mounted. e2fsck: Cannot continue, > aborting. > > Failed to check filesystem. Do you want to > repair the errors? (Y/N) > > (beware, > you can loose data)" > > > > and then you are trapped in an endless reboot > cycle because sysinit will > > always ask to repair an error that does not exist > ... :) > > Yes, you're in trouble. The same as if you "dd > if=/dev/zero > of=/dev/hda", etc. You can do a lot of bad things > touching to > your system... > > > The solutions are one or more of the following : > > > > * dont let mkinitrd create initrd images with > ROOTFS option rw in /etc/fstab > > by default and give an option to do it > > I'm not gonna add a check for that situation, we'd > need to add > another hundred of checks for errors that could > happen with the > same frequency..
You might reconsider this one since it is failry easy for a relative newbie to make that mistake. I know I did. The reason it is so easy is that...when you are learning it is reasonable to try to copy from something that is already there and most other hd settings will have the rw option. It is also not that uncommon that, when testing some things out to see how they are working, that you forget every move you made, esp if one of your mistakes "looks right". This might be an exception to your rule. I understand you cannot make this idiot proof when people start poking around without an understanding as to what they are doing while running as root, but I feel this item can be an exception because the settings are different than most of the rest of the partition mounts. ===== SI Reasoning [EMAIL PROTECTED] A requirement of creativity is that it contributes to change. Creativity keeps the creator alive. -FRANK HERBERT, unpublished notes __________________________________________________ Do You Yahoo!? Yahoo! Greetings - Send FREE e-cards for every occasion! http://greetings.yahoo.com
