[parted-devel] Suspend2 partition being shown as unknown: Update

Debarshi 'Rishi' Ray debarshi.ray at gmail.com
Wed Nov 8 22:17:05 CET 2006


>> Ref: http://bugzilla.gnome.org/show_bug.cgi?id=334569

> 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.

The problem lies with the 'swap_open' function in
libparted/fs/linux_swap/linux_swap.c. It needs to be modified to
recognize the signature of the suspend/hibernate partitions.

Does anybody have an idea how I can test my changes? The only way you
can see whether Parted is able to recognize the suspend or hibernate
partitions is to use a LiveCD, or dual-boot the machine with two
GNU/Linux installations. Is there any other better way?

One thing to be noticed is that, in the above bugzilla link the output
of hexdump on the hibernate partition does not show the
'S[1/2]SUSPEND[0x00]' signature. I wonder if he posted the wrong
output. Any ideas?

Happy hacking,
Debarshi
-- 
"India is not, as people keep calling it, an underdeveloped country,
but rather a developed nation in an advanced state of decay."
--Shashi Tharoor



More information about the parted-devel mailing list