[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

ped_geometry_destroy() bug (parted 1.6.6)

From: Laas Toom
Subject: ped_geometry_destroy() bug (parted 1.6.6)
Date: Mon, 23 Feb 2004 13:45:16 +0200
User-agent: Mutt/1.4.1i


I was researching the backgrounds of different methods of partition recovery 
(in case of partition table loss, deletion, etc) for an article and used a 32MB 
USB stick for the testground.

I created the following partitions on it with fdisk:
Disk /dev/sda: 33 MB, 33030144 bytes
2 heads, 32 sectors/track, 1008 cylinders
Units = cylinders of 64 * 512 = 32768 bytes

   Device Boot    Start       End    Blocks   Id  System
/dev/sda1             1       367     11728    7  HPFS/NTFS
/dev/sda2           368      1008     20512    5  Extended
/dev/sda5           368       673      9776    4  FAT16 <32M
/dev/sda6           674      1008     10704   83  Linux

As i wanted to be sure ntfs is also recovered, but my Windows XP Home did not 
let me format a partition on this stick (not even to FAT), i had to hack my 
way: created a fat partition with mkfs.msdos to sda1 and used MS convert to 
convert to ntfs. After that created the extended partition and sda5 and sda6, 
both using mkfs.

At this point parted printed this out:
(parted) print
Disk geometry for /dev/sda: 0.000-31.500 megabytes
Disk label type: msdos
Minor    Start       End     Type      Filesystem  Flags
1          0.016     11.468  primary   ntfs        type=07
2         11.469     31.500  extended              type=05
5         11.484     21.031  logical               type=04
6         21.047     31.500  logical   ext3        type=83

Then i deleted all partitions with fdisk, and wanted to recover them with 
parted's rescue command, but the following was printed out:

(parted) rescue
Start? 0.016
End? 11.468
Error: Can't have a partition outside the disk!
Error: Can't have a partition outside the disk!
Error: Can't have a partition outside the disk!
Error: Can't have a partition outside the disk!
Error: Can't have the end before the start!
You found a bug in GNU Parted.  Please email a bug report to address@hidden 
containing the version (1.6.6), and the following message:

Assertion (geom != NULL) at geom.c:90 in function ped_geometry_destroy() failed.

Then i was stuck with this message looping (had to kill parted, to get prompt 

I hope this is useful information to you.

Best regards,
Laas Toom

reply via email to

[Prev in Thread] Current Thread [Next in Thread]