parted should handle overlapping partitions more gracefully

Bug #235998 reported by Agostino Russo
6
Affects Status Importance Assigned to Milestone
parted (Ubuntu)
Fix Released
Undecided
Phillip Susi

Bug Description

When partitions overlap, (lib)parted throws an unrecoverable bug error. It should be a warning you can ignore.

Revision history for this message
Colin Watson (cjwatson) wrote :

This may be a duplicate of bug 232175, but I'll need to see the user's boot sector to be sure.

(Please do not make this a general bug about any case where libparted fails to detect partitions. I am only going to deal with such problems one at a time in separate bugs. Unless you're the "Chechuty" user on the forums whom Agostino has been helping, please do not comment here; open a new bug instead.)

Changed in parted:
status: New → Incomplete
Revision history for this message
Rosen (rosen1991) wrote :

This is the screen

Revision history for this message
Rosen (rosen1991) wrote :

000000 33 c0 8e d0 bc 00 7c fb 50 07 50 1f fc be 1b 7c
000010 bf 1b 06 50 57 b9 e5 01 f3 a4 cb bd be 07 b1 04
000020 38 6e 00 7c 09 75 13 83 c5 10 e2 f4 cd 18 8b f5
000030 83 c6 10 49 74 19 38 2c 74 f6 a0 b5 07 b4 07 8b
000040 f0 ac 3c 00 74 fc bb 07 00 b4 0e cd 10 eb f2 88
000050 4e 10 e8 46 00 73 2a fe 46 10 80 7e 04 0b 74 0b
000060 80 7e 04 0c 74 05 a0 b6 07 75 d2 80 46 02 06 83
000070 46 08 06 83 56 0a 00 e8 21 00 73 05 a0 b6 07 eb
000080 bc 81 3e fe 7d 55 aa 74 0b 80 7e 10 00 74 c8 a0
000090 b7 07 eb a9 8b fc 1e 57 8b f5 cb bf 05 00 8a 56
0000a0 00 b4 08 cd 13 72 23 8a c1 24 3f 98 8a de 8a fc
0000b0 43 f7 e3 8b d1 86 d6 b1 06 d2 ee 42 f7 e2 39 56
0000c0 0a 77 23 72 05 39 46 08 73 1c b8 01 02 bb 00 7c
0000d0 8b 4e 02 8b 56 00 cd 13 73 51 4f 74 4e 32 e4 8a
0000e0 56 00 cd 13 eb e4 8a 56 00 60 bb aa 55 b4 41 cd
0000f0 13 72 36 81 fb 55 aa 75 30 f6 c1 01 74 2b 61 60
000100 6a 00 6a 00 ff 76 0a ff 76 08 6a 00 68 00 7c 6a
000110 01 6a 10 b4 42 8b f4 cd 13 61 61 73 0e 4f 74 0b
000120 32 e4 8a 56 00 cd 13 eb d6 61 f9 c3 54 61 62 6c
000130 61 20 64 65 20 70 61 72 74 69 63 69 a2 6e 20 6e
000140 6f 20 76 a0 6c 69 64 61 00 45 72 72 6f 72 20 61
000150 6c 20 63 61 72 67 61 72 20 65 6c 20 73 69 73 74
000160 65 6d 61 20 6f 70 65 72 61 74 69 76 6f 00 46 61
000170 6c 74 61 20 65 6c 20 73 69 73 74 65 6d 61 20 6f
000180 70 65 72 61 74 69 76 6f 00 00 00 00 00 00 00 00
000190 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
*
0001b0 00 00 00 00 00 2c 49 6e 26 a3 26 a3 00 00 00 20
0001c0 21 00 27 59 1a bf 00 08 00 00 00 e0 2e 00 80 00
0001d0 01 c0 07 fe ff ff c0 10 2f 00 8b 10 59 0b 00 fe
0001e0 ff ff 0f fe ff ff 00 40 88 0b c1 f7 70 02 00 00
0001f0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 55 aa
000200

Revision history for this message
Colin Watson (cjwatson) wrote :

Rosen: Thanks for this. Are you the same person as Chechuty on the forums, who posted http://www.sendspace.com/file/i8oyeb earlier?

This partition table seems to be fine in and of itself, but unfortunately I also need to get the contents of the extended partition table in order to reproduce this accurately. It's quite some distance into the disk. This additional command should retrieve it:

  sudo dd if=/dev/sda bs=512 skip=193478656 count=1 status=noxfer | od -tx1 -Ax

(Be sure to type this in accurately! The skip= number is the sector offset of your extended partition table into the disk.)

Revision history for this message
Rosen (rosen1991) wrote :

Yes I Chechuty

The output of the command sudo dd if=/dev/sda bs=512 skip=193478656 count=1 status=noxfer | od -tx1 -Ax

1+0 registros de entrada
1+0 registros de salida
000000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
*
0001b0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fe
0001c0 ff ff 07 fe ff ff 00 08 00 00 00 f8 70 02 00 00
0001d0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
*
0001f0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 55 aa
000200

Revision history for this message
Colin Watson (cjwatson) wrote :

"Error: Cannot have overlapping partitions." says parted, so not the same as bug 232175. Will investigate.

Changed in parted:
status: Incomplete → Confirmed
Revision history for this message
Rosen (rosen1991) wrote :

Ok!

If you need something tell me ;)

Revision history for this message
protoman (protomank) wrote :

I'm having the same problem on my machine:

iuri@Satellite:/arquivos/downloads/emule/temp$ sudo fdisk -l

Disco /dev/sda: 320.0 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders
Units = cilindros of 16065 * 512 = 8225280 bytes
Disk identifier: 0x1549f232

Dispositivo Boot Início Fim Blocos Id Sistema
/dev/sda2 1 34330 275755693+ 5 Estendida
/dev/sda3 10016 34330 195310237+ 83 Linux
/dev/sda4 34331 38099 30274492+ 83 Linux
/dev/sda5 1 9772 78493527 83 Linux
/dev/sda6 9773 10014 1943802 82 Linux swap / Solaris

Phillip Susi (psusi)
summary: - Libparted fails to detect partitions on disk
+ parted should handle overlapping partitions more gracefully
Changed in parted (Ubuntu):
assignee: nobody → Phillip Susi (psusi)
status: Confirmed → In Progress
description: updated
Revision history for this message
Phillip Susi (psusi) wrote :

This was fixed some time ago; parted now just throws a warning that you can choose to ignore and try to repair the situation.

Changed in parted (Ubuntu):
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Bug attachments

Remote bug watches

Bug watches keep track of this bug in other bug trackers.