Swap partition mysteriously disappears

Derek Broughton news at pointerstop.ca
Tue Sep 12 14:55:44 UTC 2006


David Abrahams wrote:

> Derek Broughton <news at pointerstop.ca> writes:
> 
>> Does anybody have a clue how/why a swap could quietly disappear?
>>
>> Fairly often (enough that I'm going to put a "swapon -a" in the resume
>> sequence after hibernation) it happens when I hibernate and resume -
> 
> Yeah, that happens with me; my swap is an LVM2 volume, though.

oops.  Just got a new /etc/powersave/sleep config file in an edgy upgrade,
and was comparing the new version to mine, and discovered that I really
should NOT have the swap device named in SUSPEND2DISK_RESUME_DEVICE.  It
was there because an upgrade to mkinitrd/mkinitramfs caused it to think I
didn't have a hibernate partition named, but that's really for using
something _other_ than the standard swap partition, and deactivates it as a
swap device on resume.

That will eliminate one of my problems, but I'm fairly certain it's still
dropping the partition at other times.
-- 
derek





More information about the ubuntu-users mailing list