[Suspend2-devel] hibernate: remounting filesystems read-only
Bernard Blackham
bernard at blackham.com.au
Sat Jul 22 08:39:55 UTC 2006
Hi Jens,
On Sat, 2006-07-22 at 10:17 +0200, Jens Gustedt wrote:
> (1) remount where possible read-only
> I implemented (1) as a hook for the hibernate scripts, you find a
> patch below. Any testing and comments would be apreciated.
>
> This can be simply used by adding something like
>
> Remount /mnt/ROOT /usr
>
> to your hibernate configs.
It's funny you mention this - the Debian maintainer of hibernate, Martin
Krafft, implemented a similar thing for a different reason (modifying
GRUB's menu.lst on an xfs /boot would never get written back to disk
before the suspend started, no matter what sync invocations you
performed).
As this is (somewhat) a superset of the current functionality, I'm
inclined to merge something like this (and Debian can include a
backward-compatibility option if desired). What are your thoughts,
Martin?
> + AddConfigHelp "Remount <mount point> [...]" "If you have filesystems that should be mounted read-only during suspending and read-write afterwards, list them here."
Can we call it "RemountRO" or something more specific?
Otherwise the patch looks okay. I'll wait for Martin's input.
> I will be also thinking of implementing (2) with a similar hook. If
> anybody has ideas...
This I think is fraught with danger, at least if it's going to be
editing fs's directly. I'm also not entirely sure how it would work
either. The scripts that do required fsck'ing on boot don't get called
upon resume. Or am I missing something else?
Thanks,
Bernard.
More information about the TuxOnIce-devel
mailing list