Re: root fs becomes ro after sleep!
On Sun, 12 Aug 2001, Wilhelm Fitzpatrick wrote:
> On Sat, 11 Aug 2001, Ethan Benson wrote:
> > On Sat, Aug 11, 2001 at 12:22:47PM -0700, Tom Rini wrote:
> > > Odd. Both of those imply that the kernel found the FS to be broken
> > > somehow and remounted it read-only to prevent further damage.
> >
> > debian always puts errors=remount-ro in the / filesystem mount option
> > in /etc/fstab. if /var was on / then syslog may not have had a chance
> > to log that message before it was made readonly.
>
> Mmmmm... yes, this is the case for me... And yes, it probably would be
> better to have var on a seperate partition for times like these...
But then you still have to remount it after a wake up.
> Incidently, I was wondering the other day if I moved /var /usr and /etc to
> their own partitions, is there any reason why / needs to get mounted rw at
/var and /usr is OK.
/etc on its own partition is a bad idea: e.g. mount -a uses /etc/fstab to find
our where to mount /etc from. And even /sbin/init looks for /etc/inittab.
If you would write your own /sbin/init that would mount /etc from a hardcoded
device first, it could work though.
> all?
So /etc is the reason why / must be mounted rw.
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org
In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds
Reply to: