GNOME Bugzilla – Bug 334569
Swap partition is detected as "unknown", when a hibernation signature is on it
Last modified: 2013-10-08 20:33:53 UTC
Please describe the problem: First to say, I found this when trying the gparted livecd 0.2.2-3: On my machine I use hibernation with the software-suspend2 inplementation (http://suspend2.net) and data is stored on a swap partition I created specially for this purpose. When I have done a suspend and then start the gparted livecd, the "hibernation swap partition" is detected as of type "unknown". When I start gparted livecd after a normal system shutdown, the swap partition is detected correctly as "linux swap". But: I'm not sure if this is an error or if this is intended; I only wanted you to know. Steps to reproduce: 1. start my normal debian installation 2. suspend the system with software-suspend2 implementation 3. start laptop with gparted livecd 4. look for detected swap partitions Actual results: Swap partition is not detected as such, is detected as of type unknown Expected results: Not sure (see above) Does this happen every time? Yes. Other information:
thanks for reporting! Could you provide the output of: 'fdisk -lu' and 'parted <device> (press 'p' once inside parted)' for both situations? thanks!
> Could you provide the output of: > 'fdisk -lu' and 'parted <device> (press 'p' once inside parted)' for both > situations? =========================================================================== Here is output with a clean swap partition /dev/hda7: root@GParted:~# parted /dev/hda GNU Parted 1.6.25.1 Copyright (C) 1998 - 2005 Free Software Foundation, Inc. This program is free software, covered by the GNU General Public License. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. Using /dev/hda (parted) p Disk geometry for /dev/hda: 0kB - 30GB Disk label type: msdos Number Start End Size Type File system Flags 1 32kB 8998MB 8998MB primary ext2 boot 2 8998MB 30GB 21GB extended 5 8998MB 18GB 8998MB logical ext3 6 18GB 29GB 11GB logical ext3 8 29GB 29GB 502MB logical linux-swap 7 29GB 30GB 510MB logical linux-swap (parted) quit Information: Don't forget to update /etc/fstab, if necessary. root@GParted:~# fdisk -lu Disk /dev/hda: 30.0 GB, 30005821440 bytes 255 heads, 63 sectors/track, 3648 cylinders, total 58605120 sectors Units = sectors of 1 * 512 = 512 bytes Device Boot Start End Blocks Id System /dev/hda1 * 63 17575109 8787523+ 83 Linux /dev/hda2 17575110 58605119 20515005 5 Extended /dev/hda5 17575173 35150219 8787523+ 83 Linux /dev/hda6 35150283 56629124 10739421 83 Linux /dev/hda7 57609153 58605119 497983+ 82 Linux swap /dev/hda8 56629188 57609089 489951 82 Linux swap Partition table entries are not in disk order root@GParted:~# ============================================================================= And here is output after doing a software-suspend on /dev/hda7: root@GParted:~# parted /dev/hda GNU Parted 1.6.25.1 Copyright (C) 1998 - 2005 Free Software Foundation, Inc. This program is free software, covered by the GNU General Public License. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. Using /dev/hda (parted) p Disk geometry for /dev/hda: 0kB - 30GB Disk label type: msdos Number Start End Size Type File system Flags 1 32kB 8998MB 8998MB primary ext2 boot 2 8998MB 30GB 21GB extended 5 8998MB 18GB 8998MB logical ext3 6 18GB 29GB 11GB logical ext3 8 29GB 29GB 502MB logical 7 29GB 30GB 510MB logical linux-swap (parted) (parted) quit Information: Don't forget to update /etc/fstab, if necessary. root@GParted:~# fdisk -lu Disk /dev/hda: 30.0 GB, 30005821440 bytes 255 heads, 63 sectors/track, 3648 cylinders, total 58605120 sectors Units = sectors of 1 * 512 = 512 bytes Device Boot Start End Blocks Id System /dev/hda1 * 63 17575109 8787523+ 83 Linux /dev/hda2 17575110 58605119 20515005 5 Extended /dev/hda5 17575173 35150219 8787523+ 83 Linux /dev/hda6 35150283 56629124 10739421 83 Linux /dev/hda7 57609153 58605119 497983+ 82 Linux swap /dev/hda8 56629188 57609089 489951 82 Linux swap Partition table entries are not in disk order root@GParted:~# Greetings Holger
thanks! This seems to be a libparted problem, i'll look into asap or forward it to the libparted devs. please standby as i might need more information.
Please provide the output of hexdump -C /dev/hdX | head -n 50 where hdX is your suspend2 partition.
> Please provide the output of > > hexdump -C /dev/hdX | head -n 50 > > where hdX is your suspend2 partition. Here comes output while having hibernation signature on partition: 00000000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| * 00000400 01 00 00 00 76 de 01 00 00 00 00 00 00 00 00 00 |....v...........| 00000410 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| * 00000ff0 00 00 00 00 00 00 5a 07 00 30 00 08 c0 ac 00 00 |......Z..0......| 00001000 c9 01 2a 1e e1 84 b9 b6 eb b3 f8 e5 36 c6 c3 e7 |..*.........6...| 00001010 f8 d0 fd b6 a3 31 b9 5f 9a 39 25 7f df e0 59 c7 |.....1._.9%...Y.| 00001020 ec e2 e9 e1 ef ad 5d 87 0f 30 fa 9d fa b9 cc 53 |......]..0.....S| 00001030 11 04 20 24 f0 71 45 9b 80 22 0c 42 0d cc f6 04 |.. $.qE..".B....| 00001040 fa 54 f9 57 7a c1 97 de b7 2f 64 bb 8b ff 2a fc |.T.Wz..../d...*.| 00001050 2b 10 49 92 b4 6c 12 85 a1 57 f5 b6 9d 68 5e e8 |+.I..l...W...h^.| 00001060 c7 6f ff b0 c7 23 75 ef 8a 29 ee 30 28 25 93 0e |.o...#u..).0(%..| 00001070 c5 5c a7 19 6d cf fa 11 c5 02 13 9c 46 50 16 14 |.\..m.......FP..| 00001080 97 28 f4 57 4e 52 2e c5 bc 9e 73 6e 59 db fe 37 |.(.WNR....snY..7| 00001090 fa 61 5a a8 ff f3 82 64 c3 0b c4 d3 7a fb 24 43 |.aZ....d....z.$C| 000010a0 5c 92 32 02 e6 34 30 8a d4 59 68 a3 99 06 b6 9c |\.2..40..Yh.....| 000010b0 47 2f ee 98 53 ea df a6 53 28 5c 47 dc c5 9b 4a |G/..S...S(\G...J| 000010c0 08 28 77 d6 1c 99 f5 fb 33 fc f9 27 fe 8e f9 4e |.(w.....3..'...N| 000010d0 03 d5 a1 3f 64 3e d4 4f 36 3f 6d 9b f2 b5 7f fe |...?d>.O6?m.....| 000010e0 77 fa 6c 57 b2 2d 34 d5 0a 2e 04 49 7b 00 68 00 |w.lW.-4....I{.h.| 000010f0 aa 10 15 0a ed 5c 19 2a 4e b9 51 49 3a 5f 0b 0f |.....\.*N.QI:_..| 00001100 d5 1b ed 4b 48 e0 5f a6 45 2e 06 5f f0 e6 d9 5c |...KH._.E.._...\| 00001110 e9 56 4f fc 33 b0 b1 95 62 42 08 1c 3c 06 0d 98 |.VO.3...bB..<...| 00001120 85 77 a9 35 74 8a fb 65 a5 68 6d 80 20 f5 79 83 |.w.5t..e.hm. .y.| 00001130 67 2d 1e ea 55 a4 80 0d 4b 2c 3f 34 60 90 33 6b |g-..U...K,?4`.3k| 00001140 e9 d2 02 05 29 b7 5c 3e 3b d7 7d f2 f9 18 cf ba |....).\>;.}.....| 00001150 c9 11 58 59 49 ee be 8a 76 7b b4 50 cc 7f fa 82 |..XYI...v{.P....| 00001160 85 7f e2 11 10 ff f3 82 64 d8 0b fd ab 72 a2 18 |........d....r..| 00001170 62 9e 91 d9 36 de ac 62 46 14 ea 0e 0e a2 53 f7 |b...6..bF.....S.| 00001180 58 02 8a ca 11 c5 03 78 42 a4 27 d2 c4 bf d3 ff |X......xB.'.....| 00001190 ab 98 b8 1d 56 33 be 9e a4 10 c8 6d cc b8 6b 76 |....V3.....m..kv| 000011a0 d7 18 83 a1 1d 8f 9e 7f 73 3d 92 f9 23 52 95 e6 |........s=..#R..| 000011b0 54 c8 e4 c9 a2 59 2b 00 83 b6 e1 8c 40 a1 00 12 |T....Y+.....@...| 000011c0 a4 00 80 0a 10 07 6e a8 5e 3c 34 e6 30 b6 4d 82 |......n.^<4.0.M.| 000011d0 dc 89 e6 a3 b4 4d 3c 6f cc 44 88 97 f1 b1 a9 33 |.....M<o.D.....3| 000011e0 fd ed e3 55 79 b5 30 e2 e9 d9 3f ec 43 21 6d 2a |...Uy.0...?.C!m*| 000011f0 1b c8 33 3a b0 6a 31 48 b3 fa 5f a2 c2 32 ea 48 |..3:.j1H.._..2.H| 00001200 15 62 10 b9 92 40 f8 50 32 2b 75 28 d3 eb ff d8 |.b...@.P2+u(....| 00001210 d6 06 25 e8 79 ae 78 d1 ed 9b 85 94 da 56 e1 b1 |..%.y.x......V..| 00001220 33 f7 a3 de 69 8a 26 da f3 a6 e2 ec e9 97 79 ad |3...i.&.......y.| 00001230 cf 3b bf bc f7 fa ff f3 82 64 ec 0e 45 b3 70 f2 |.;.......d..E.p.| 00001240 24 c3 3c 94 f1 62 de d6 4b 10 04 f3 54 7e 6d f3 |$.<..b..K...T~m.| 00001250 36 b9 7a 72 31 22 94 c8 1a 00 4c 42 7d 69 66 72 |6.zr1"....LB}ifr| 00001260 90 e5 a6 42 8f e0 2a d1 59 bf f1 61 7b fe 7f c7 |...B..*.Y..a{...| 00001270 be 5f 90 88 b4 a4 ed 3c c8 f7 33 86 d4 ce c3 53 |._.....<..3....S| 00001280 21 a5 5e 22 88 43 81 72 f0 40 95 a5 a5 1b 68 e5 |!.^".C.r.@....h.| 00001290 25 cf 6f 53 bf 6b 2d 90 b7 25 74 a9 cc b2 0f 4d |%.oS.k-..%t....M| 000012a0 b4 7e 83 96 2a 0e 99 75 cd 1d 03 ca 92 51 f7 d0 |.~..*..u.....Q..| 000012b0 48 e4 d2 e8 8d eb 74 53 a3 e7 f7 7f bc 81 a2 8f |H.....tS........| And this is with a clean partition (wasn't sure if this was needed too) 00000000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| * 00000400 01 00 00 00 76 de 01 00 00 00 00 00 00 00 00 00 |....v...........| 00000410 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| * 00000ff0 00 00 00 00 00 00 53 57 41 50 53 50 41 43 45 32 |......SWAPSPACE2| 00001000 c9 01 2a 1e e1 84 b9 b6 eb b3 f8 e5 36 c6 c3 e7 |..*.........6...| 00001010 f8 d0 fd b6 a3 31 b9 5f 9a 39 25 7f df e0 59 c7 |.....1._.9%...Y.| 00001020 ec e2 e9 e1 ef ad 5d 87 0f 30 fa 9d fa b9 cc 53 |......]..0.....S| 00001030 11 04 20 24 f0 71 45 9b 80 22 0c 42 0d cc f6 04 |.. $.qE..".B....| 00001040 fa 54 f9 57 7a c1 97 de b7 2f 64 bb 8b ff 2a fc |.T.Wz..../d...*.| 00001050 2b 10 49 92 b4 6c 12 85 a1 57 f5 b6 9d 68 5e e8 |+.I..l...W...h^.| 00001060 c7 6f ff b0 c7 23 75 ef 8a 29 ee 30 28 25 93 0e |.o...#u..).0(%..| 00001070 c5 5c a7 19 6d cf fa 11 c5 02 13 9c 46 50 16 14 |.\..m.......FP..| 00001080 97 28 f4 57 4e 52 2e c5 bc 9e 73 6e 59 db fe 37 |.(.WNR....snY..7| 00001090 fa 61 5a a8 ff f3 82 64 c3 0b c4 d3 7a fb 24 43 |.aZ....d....z.$C| 000010a0 5c 92 32 02 e6 34 30 8a d4 59 68 a3 99 06 b6 9c |\.2..40..Yh.....| 000010b0 47 2f ee 98 53 ea df a6 53 28 5c 47 dc c5 9b 4a |G/..S...S(\G...J| 000010c0 08 28 77 d6 1c 99 f5 fb 33 fc f9 27 fe 8e f9 4e |.(w.....3..'...N| 000010d0 03 d5 a1 3f 64 3e d4 4f 36 3f 6d 9b f2 b5 7f fe |...?d>.O6?m.....| 000010e0 77 fa 6c 57 b2 2d 34 d5 0a 2e 04 49 7b 00 68 00 |w.lW.-4....I{.h.| 000010f0 aa 10 15 0a ed 5c 19 2a 4e b9 51 49 3a 5f 0b 0f |.....\.*N.QI:_..| 00001100 d5 1b ed 4b 48 e0 5f a6 45 2e 06 5f f0 e6 d9 5c |...KH._.E.._...\| 00001110 e9 56 4f fc 33 b0 b1 95 62 42 08 1c 3c 06 0d 98 |.VO.3...bB..<...| 00001120 85 77 a9 35 74 8a fb 65 a5 68 6d 80 20 f5 79 83 |.w.5t..e.hm. .y.| 00001130 67 2d 1e ea 55 a4 80 0d 4b 2c 3f 34 60 90 33 6b |g-..U...K,?4`.3k| 00001140 e9 d2 02 05 29 b7 5c 3e 3b d7 7d f2 f9 18 cf ba |....).\>;.}.....| 00001150 c9 11 58 59 49 ee be 8a 76 7b b4 50 cc 7f fa 82 |..XYI...v{.P....| 00001160 85 7f e2 11 10 ff f3 82 64 d8 0b fd ab 72 a2 18 |........d....r..| 00001170 62 9e 91 d9 36 de ac 62 46 14 ea 0e 0e a2 53 f7 |b...6..bF.....S.| 00001180 58 02 8a ca 11 c5 03 78 42 a4 27 d2 c4 bf d3 ff |X......xB.'.....| 00001190 ab 98 b8 1d 56 33 be 9e a4 10 c8 6d cc b8 6b 76 |....V3.....m..kv| 000011a0 d7 18 83 a1 1d 8f 9e 7f 73 3d 92 f9 23 52 95 e6 |........s=..#R..| 000011b0 54 c8 e4 c9 a2 59 2b 00 83 b6 e1 8c 40 a1 00 12 |T....Y+.....@...| 000011c0 a4 00 80 0a 10 07 6e a8 5e 3c 34 e6 30 b6 4d 82 |......n.^<4.0.M.| 000011d0 dc 89 e6 a3 b4 4d 3c 6f cc 44 88 97 f1 b1 a9 33 |.....M<o.D.....3| 000011e0 fd ed e3 55 79 b5 30 e2 e9 d9 3f ec 43 21 6d 2a |...Uy.0...?.C!m*| 000011f0 1b c8 33 3a b0 6a 31 48 b3 fa 5f a2 c2 32 ea 48 |..3:.j1H.._..2.H| 00001200 15 62 10 b9 92 40 f8 50 32 2b 75 28 d3 eb ff d8 |.b...@.P2+u(....| 00001210 d6 06 25 e8 79 ae 78 d1 ed 9b 85 94 da 56 e1 b1 |..%.y.x......V..| 00001220 33 f7 a3 de 69 8a 26 da f3 a6 e2 ec e9 97 79 ad |3...i.&.......y.| 00001230 cf 3b bf bc f7 fa ff f3 82 64 ec 0e 45 b3 70 f2 |.;.......d..E.p.| 00001240 24 c3 3c 94 f1 62 de d6 4b 10 04 f3 54 7e 6d f3 |$.<..b..K...T~m.| 00001250 36 b9 7a 72 31 22 94 c8 1a 00 4c 42 7d 69 66 72 |6.zr1"....LB}ifr| 00001260 90 e5 a6 42 8f e0 2a d1 59 bf f1 61 7b fe 7f c7 |...B..*.Y..a{...| 00001270 be 5f 90 88 b4 a4 ed 3c c8 f7 33 86 d4 ce c3 53 |._.....<..3....S| 00001280 21 a5 5e 22 88 43 81 72 f0 40 95 a5 a5 1b 68 e5 |!.^".C.r.@....h.| 00001290 25 cf 6f 53 bf 6b 2d 90 b7 25 74 a9 cc b2 0f 4d |%.oS.k-..%t....M| 000012a0 b4 7e 83 96 2a 0e 99 75 cd 1d 03 ca 92 51 f7 d0 |.~..*..u.....Q..| 000012b0 48 e4 d2 e8 8d eb 74 53 a3 e7 f7 7f bc 81 a2 8f |H.....tS........| Greets Holger
Scheduled for 1.7.1.
This bug is fixed in vers 0.2.3-1 of the live-cd. Thanks
sorry, overlooked this one. I just heard this issue isn't fixed yet (from a guy who heard it from Leslie). Are you sure it's fixed Holger?
http://bugzilla.gnome.org/show_bug.cgi?id=342369 that one seems to have the 'reversed problem' :) 'The hibernation partition gets misreported as Linux Swap'. I guess there is a relation and all this comes down to fixing/improving ped_file_system_probe() Debarshi told me he is working on this (or at least investigating it), so there is hope :)
I am a bit confused. Could anyone clear these: a. Is this one fixed? b. What should the partion being tagged 'unknown' be?
Hi debarshi, well, according to Holger it's fixed (comment #7) or at least it works for him, but according to you it isn't (Heard from Leslie). That why i asked Holger to confirm this.
(In reply to comment #8) > sorry, overlooked this one. I just heard this issue isn't fixed yet (from a guy > who heard it from Leslie). Are you sure it's fixed Holger? > Hmm, I'm a little bit confused. In fact the bug is not fixed. Don't know what happened that day to let me think it is ... (I tried today with version 0.2.3 + 0.2.5 + 0.3.1 of the livecd: bug not fixed in all that versions) Sorry for the trouble Holger
(In reply to comment #5) > > Please provide the output of > > > > hexdump -C /dev/hdX | head -n 50 > > > > where hdX is your suspend2 partition. > > Here comes output while having hibernation signature on partition: > > 00000000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| > * > 00000400 01 00 00 00 76 de 01 00 00 00 00 00 00 00 00 00 |....v...........| > 00000410 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| > * > 00000ff0 00 00 00 00 00 00 5a 07 00 30 00 08 c0 ac 00 00 |......Z..0......| > > [snip] > > And this is with a clean partition (wasn't sure if this was needed too) > > 00000000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| > * > 00000400 01 00 00 00 76 de 01 00 00 00 00 00 00 00 00 00 |....v...........| > 00000410 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| > * > 00000ff0 00 00 00 00 00 00 53 57 41 50 53 50 41 43 45 32 |......SWAPSPACE2| Are you sure about the hexdump output with the hibernation signature on? Each time I did `hexdump -C /dev/hdaX | grep -n 50` on the hibernation partition, I got 'S1SUSPEND[0x00]' as the hibernation signature. The signature starts 10 bytes before the end of the first page on the swap area. The exact location from which the clean swap partition's signature, 'SWAPSPACE2', also starts. 00000ff6 is the location in this case. I used the 'hibernate' option on Ubuntu 6.06 Dapper Drake, and Fedora Core 6 Zod systems running the GNOME desktop. Which distribution were you on?
(In reply to comment #13) > Are you sure about the hexdump output with the hibernation signature on? Each > time I did `hexdump -C /dev/hdaX | grep -n 50` on the hibernation partition, I > got 'S1SUSPEND[0x00]' as the hibernation signature. The signature starts 10 > bytes before the end of the first page on the swap area. The exact location > from which the clean swap partition's signature, 'SWAPSPACE2', also starts. > 00000ff6 is the location in this case. > > I used the 'hibernate' option on Ubuntu 6.06 Dapper Drake, and Fedora Core 6 > Zod systems running the GNOME desktop. Which distribution were you on? Yes, I am sure about the signature! Please read the initial report. I was referring to that what is known as "suspend2", which is *not* the in-kernel suspend functionality from the vanilla kernel, but an alternative software-suspend implementation (see http://suspend2.net). Thus it's not that important, which distribution you use, I use Debian Sarge. But you can get suspend2 running with each distribution I think. There has been a discussion about the structure of the signature on the suspend2-devel list (initialized by this bug report): see http://lists.suspend2.net/lurker/message/20060328.191659.edd7358e.en.html Greetings Holger
(In reply to comment #14) > Yes, I am sure about the signature! > Please read the initial report. I was referring to that what is known as > "suspend2" Oh, I am so sorry! The problem is there even if you use the 'swsusp' facility provided in the Linux kernel (echo shutdown > /sys/power/disk; echo disk > /sys/power/state), and hence I got a bit carried away and missed that you had mentioned Suspend2. Any way the 'swsusp' problem has been resolved to the extent that 'print' works fine. Other commands might not work as expected. However it will improve soon. Suspend2 support will also be there soon.
Support for swsusp partitions is now available in the 'master' branch of the GNU Parted Git repository. The following commands can be used to checkout the Git repository. git clone git+ssh://git.debian.org/git/parted/parted.git parted git clone http://git.debian.org/git/parted/parted.git parted Support for suspend2 paritions is next in line.
Hello Holger, Is this problem still present with the latest version of Parted (either 1.8.8 or unofficial 1.8.9)?
(In reply to comment #17) > Is this problem still present with the latest version of Parted (either 1.8.8 > or unofficial 1.8.9)? Yes, this problem still exists in libparted 1.8.8 (tested with gparted live cd 0.3.9) Holger
Thank you Holger for confirming the problem. Hi Debarshi, Do you know if a bug was logged with the Parted team for this problem? Also do you know if anyone is actively working on it?
Hi Holger, Would you be able to test this with the latest parted release (1.9.0)? If it is more convenient to use a Live CD, parted-1.9.0 is packaged with gparted-0.4.6 on the System Rescue CD: To download SystemRescueCd-x86-1.2.3, visit: http://www.sysresccd.org/Download If the problem still persists, would you be able to re-raise the problem on the bug-parted mailing list (bug-parted@gnu.org)?
(In reply to comment #20) Hello, I tested this with parted 1.9.0. The short answer: Problem still (or again?) exists. The long description: The swap partition with suspend2 hibernation signature on it is detected by parted as type "unknown". "fdisk -lu" detects the partition as "Swap linux / Solaris". Here comes the output of "hexdump -C /dev/sda5 | head -n 50" while /dev/sda5 is clean swap space: 00000000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| * 00000400 01 00 00 00 7a d9 02 00 00 00 00 00 00 00 00 00 |....z...........| 00000410 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| * 00000fe0 00 00 00 00 00 10 00 00 00 00 00 00 53 57 41 50 |............SWAP| 00000ff0 53 50 41 43 45 32 53 57 41 50 53 50 41 43 45 32 |SPACE2SWAPSPACE2| 00001000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| * 00001020 01 00 00 00 66 aa 00 00 00 00 00 00 00 00 00 00 |....f...........| 00001030 03 00 00 00 00 00 00 00 01 00 00 00 ea d4 00 00 |................| 00001040 a0 29 40 cf 05 00 30 00 03 00 00 00 01 00 00 00 |.)@...0.........| 00001050 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| * 000012c0 d2 dc 00 00 02 00 00 00 01 00 00 00 00 61 00 00 |.............a..| 000012d0 af 61 00 00 80 dd 00 00 00 00 00 00 00 00 00 00 |.a..............| 000012e0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| * 000013d0 4c 69 6e 75 78 00 00 00 00 00 00 00 00 00 00 00 |Linux...........| 000013e0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| * 00001410 00 64 65 62 69 61 6e 00 00 00 00 00 00 00 00 00 |.debian.........| 00001420 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| * 00001450 00 00 32 2e 36 2e 32 39 2e 36 2d 68 77 34 00 00 |..2.6.29.6-hw4..| 00001460 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| * 00001490 00 00 00 23 31 20 53 4d 50 20 54 75 65 20 41 75 |...#1 SMP Tue Au| 000014a0 67 20 31 38 20 32 31 3a 32 34 3a 31 32 20 43 45 |g 18 21:24:12 CE| 000014b0 53 54 20 32 30 30 39 00 00 00 00 00 00 00 00 00 |ST 2009.........| 000014c0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| 000014d0 00 00 00 00 69 36 38 36 00 00 00 00 00 00 00 00 |....i686........| 000014e0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| * 00001510 00 00 00 00 00 28 6e 6f 6e 65 29 00 00 00 00 00 |.....(none).....| 00001520 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| * 00001550 00 00 00 00 00 00 00 00 1d 06 02 00 60 ff 00 00 |............`...| 00001560 00 00 00 00 00 00 00 00 01 00 00 00 00 10 00 00 |................| 00001570 00 00 00 00 00 00 00 00 60 a9 00 00 00 00 00 00 |........`.......| 00001580 08 30 0a 00 00 00 00 00 01 00 00 00 00 00 00 00 |.0..............| 00001590 00 00 00 00 00 00 00 00 00 00 00 00 ce d3 00 00 |................| 000015a0 e4 0c 00 00 00 00 00 00 00 00 00 00 01 00 00 00 |................| 000015b0 6e 2a 00 00 00 00 00 00 01 00 30 00 00 b0 33 cf |n*........0...3.| 000015c0 75 73 6d 00 00 00 00 00 00 00 00 00 00 00 00 00 |usm.............| 000015d0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| 000015e0 01 00 00 00 02 00 00 00 01 00 00 00 6e 2a 00 00 |............n*..| 000015f0 60 a9 00 00 00 00 00 00 6c 6f 77 6c 65 76 65 6c |`.......lowlevel| 00001600 20 69 2f 6f 00 00 00 00 00 00 00 00 00 00 00 00 | i/o............| 00001610 00 00 00 00 00 00 00 00 01 00 00 00 03 00 00 00 |................| And here is the output of "hexdump -C /dev/sda5 | head -n 50" while having a suspend2 hibernate signature on the partition: 00000000 05 00 30 00 01 00 00 00 00 00 00 00 01 00 00 00 |..0.............| 00000010 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| * 00000400 01 00 00 00 7a d9 02 00 00 00 00 00 00 00 00 00 |....z...........| 00000410 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| * 00000fe0 00 00 00 00 00 10 00 00 00 00 00 00 53 57 41 50 |............SWAP| 00000ff0 53 50 41 43 45 32 ed c3 02 e9 53 50 41 43 45 32 |SPACE2....SPACE2| 00001000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| * 00001020 00 00 00 00 0b 62 00 00 00 00 00 00 00 00 00 00 |.....b..........| 00001030 03 00 00 00 00 00 00 00 00 00 00 00 cc 8b 00 00 |................| 00001040 a0 29 40 cf 05 00 30 00 03 00 00 00 01 00 00 00 |.)@...0.........| 00001050 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| * 000012c0 47 94 00 00 01 00 00 00 01 00 00 00 47 94 00 00 |G...........G...| 000012d0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| * 000013c0 00 00 00 00 00 00 00 00 4c 69 6e 75 78 00 00 00 |........Linux...| 000013d0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| * 00001400 00 00 00 00 00 00 00 00 00 64 65 62 69 61 6e 00 |.........debian.| 00001410 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| * 00001440 00 00 00 00 00 00 00 00 00 00 32 2e 36 2e 32 39 |..........2.6.29| 00001450 2e 36 2d 68 77 34 00 00 00 00 00 00 00 00 00 00 |.6-hw4..........| 00001460 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| * 00001480 00 00 00 00 00 00 00 00 00 00 00 23 31 20 53 4d |...........#1 SM| 00001490 50 20 54 75 65 20 41 75 67 20 31 38 20 32 31 3a |P Tue Aug 18 21:| 000014a0 32 34 3a 31 32 20 43 45 53 54 20 32 30 30 39 00 |24:12 CEST 2009.| 000014b0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| 000014c0 00 00 00 00 00 00 00 00 00 00 00 00 69 36 38 36 |............i686| 000014d0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| * 00001500 00 00 00 00 00 00 00 00 00 00 00 00 00 28 6e 6f |.............(no| 00001510 6e 65 29 00 00 00 00 00 00 00 00 00 00 00 00 00 |ne).............| 00001520 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| * 00001550 1d 06 02 00 60 ff 00 00 00 00 00 00 00 00 00 00 |....`...........| 00001560 01 00 00 00 00 10 00 00 00 00 00 00 00 00 00 00 |................| 00001570 d7 61 00 00 00 00 00 00 08 30 0a 00 00 00 00 00 |.a.......0......| 00001580 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| 00001590 00 00 00 00 83 8b 00 00 2e 08 00 00 00 00 00 00 |................| 000015a0 00 00 00 00 01 00 00 00 ac 29 00 00 00 00 00 00 |.........)......| 000015b0 01 00 30 00 00 70 eb ce 75 73 6d 00 00 00 00 00 |..0..p..usm.....| 000015c0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| 000015d0 00 00 00 00 00 00 00 00 01 00 00 00 02 00 00 00 |................| 000015e0 01 00 00 00 ac 29 00 00 d7 61 00 00 00 00 00 00 |.....)...a......| 000015f0 6c 6f 77 6c 65 76 65 6c 20 69 2f 6f 00 00 00 00 |lowlevel i/o....| Comparing this output to that one I posted in Comment 5 of this bug, it seems that the suspend2 developers changed their hibernate signature in the meantime. That's very likely the reason, why the partition is still detected as unknown. The hexdump output provided today is from a hibernate signature created with suspend2 version 3.0.1. Holger
Thank you Holger for retesting this problem and confirming that it exists with the latest parted 1.9.0. Would you be able post this bug to the parted mailing list (bug-parted@gnu.org) so the parted developers can take a look at it? It might be useful to include a link back to this bug report so the parted developers can review the trail of comments. Thanks, Curtis Gedak
(In reply to comment #22) > Would you be able post this bug to the parted mailing list (bug-parted@gnu.org) > so the parted developers can take a look at it? Done. Holger
Thank you Holger for posting this bug upstream. For record keeping sake, the post can be found at: http://lists.gnu.org/archive/html/bug-parted/2009-08/msg00028.html
The following quote is from bug #709640 comment #3. ----- begin quote ----- Looking at bug #334569 software-suspend2 was being used for hibernation. As far as I can tell that is defunct. The current implementation included in the kernel is Linux Software Suspend and uses a different on disk signature, but both libparted and blkid recognise that signature. $ blkid /dev/sda10 /dev/sda10: ... TYPE="swsuspend" $ parted /dev/sda print ... Number Start End Size Type File system Flags ... 10 361GB 362GB 1074MB logical swsusp ----- end quote ----- In addition the Software Suspend 2 web site listed above (http://suspend2.net) no longer appears to contain content related to software suspend. As such I am closing this as INVALID as it appears that Software Suspend 2 is no longer used.