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/
pgpGFqy9cIDSJ.pgp
Description: PGP signature
_______________________________________________ parted-devel mailing list [email protected] http://lists.alioth.debian.org/mailman/listinfo/parted-devel

