[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: Resize journal on root filesystem



> Then in /etc/rc.oneshot, do something like this:
> 
> #!/bin/sh
> tune2fs -O ^has_journal /dev/hdXXXX
> tune2fs -j -J size=XXX /dev/hdXXXX
> rm -f /etc/rc.oneshot
> reboot
> 
> After you make these sorts of changes to the root filesystem, even
> though it's mounted read-only, you really do want to reboot
> immediately.  Hence the need for doing it as a rc script that only is
> run once.

Presumably /etc/rc.oneshot is on the (read-only) root file system so
unfortunately it can't be as straightforward as this.  

Mike Accetta
Laurel Networks, Inc.





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]