[parted-devel] Suspend2 partition being shown as unknown: Update
David Cantrell
dcantrell at redhat.com
Wed Nov 8 15:45:07 CET 2006
Debarshi 'Rishi' Ray wrote:
> Ref: http://bugzilla.gnome.org/show_bug.cgi?id=334569
>
> Whenever a system is hibernated or suspended, the swap area which
> contains the suspend information has a signature S1SUSPEND[0x00]
> instead of the usual SWAPSPACE2, which occupies the last 10 bytes of
> the first page of the swap area. If it is a 'old-style' swap then the
> original signature is SWAP_SPACE.
>
>> From `man mkswap`:
> "Linux knows about two styles of swap areas, old style and new
> style. The last 10 bytes of the first page of the swap area
> distinguishes them: old style has 'SWAP_SPACE', new style has
> 'SWAPSPACE2' as signature."
>
> We are investigating this further...
I had to add support to anaconda recently to detect suspended laptops
that people booted up an install CD in. Difficult problem. S1SUSPEND
is easy to detect, the sig is S1SUSPEND where SWAP-SPACE or SWAPSPACE2
would be.
For software suspend 2, the problem gets trickier. The sig is now
S2SUSPEND, but the partition data can be compressed. I have not found a
good way around this, but it shouldn't be too hard.
--
David Cantrell
Red Hat / Westford, MA
More information about the parted-devel
mailing list