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

leslie.polzer at gmx.net leslie.polzer at gmx.net
Wed Nov 8 22:34:59 CET 2006


On Wed, Nov 08, 2006 at 09:17:05PM +0000, Debarshi 'Rishi' Ray wrote:

> >>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?
You can suspend/hibernate once and then copy the signature part or the
whole thing over to a file.  Parted, pointed to this file, will read it
as 'loop' disk label.

> 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?
You might want to read this:

  http://lists.suspend2.net/lurker/message/20060328.191659.edd7358e.en.html

  Leslie

-- 
gpg --keyserver pgp.mit.edu --recv-keys DD4EBF83
http://nic-nac-project.de/~skypher/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.alioth.debian.org/pipermail/parted-devel/attachments/20061108/49445cde/attachment.pgp


More information about the parted-devel mailing list