1 (edited by baze 2006-10-11 23:58:25)

Topic: [SOLVED] invalid partition table after growing an ext3 partition.

Hi

earlier today I wanted to delete an unused small partition and then grow a large partition to take the empty space:

/dev/sda10 was removed (~5GB) and /dev/sda11 (~160gb) was the one I wanted to grow.
removing /dev/sda10 worked fine and then I wanted to grow the new /dev/sda10 which took a pretty long time and ended with an error: http://www.mant1core.de/gparted_details.htm

now all partitions except the new /dev/sda10 work fine but they don't show in gparted anymore. all I see on /dev/sda is one big unallocated space.

I read in another thread about a similar problem and he fixed it with "a small tool to fix the MBR" but unfortunately he didn't say which tool it was hmm

# fdisk -lu /dev/sda
Warning: ignoring extra data in partition table 10
Warning: ignoring extra data in partition table 10
Warning: ignoring extra data in partition table 10
Warning: invalid flag 0x2b9e of partition table 10 will be corrected by w(rite)

Disk /dev/sda: 250.0 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders, total 488397168 sectors
Units = sectors of 1 * 512 = 512 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *          63     9992429     4996183+   7  HPFS/NTFS
/dev/sda2         9992430    10088819       48195   83  Linux
/dev/sda3        10088820    19984859     4948020   83  Linux
/dev/sda4        19984860   488392064   234203602+   5  Extended
/dev/sda5        19984923    20980889      497983+  82  Linux swap / Solaris
/dev/sda6        20980953    98880074    38949561   83  Linux
/dev/sda7        98880138   100984589     1052226   83  Linux
/dev/sda8       100984653   120985514    10000431    7  HPFS/NTFS
/dev/sda9       120985578   140986439    10000431    7  HPFS/NTFS
/dev/sda10  ?  2497259820  3663842205   583291193   e2  Unknown

I really hope I can repair this because I need some of the content of /dev/sda10 (damn, I'll never do anything like that without backing up again!! hmm )

perhaps some of you can help me, thanks.


edit:
I can't believe it big_smile
with testdisk I could recover everything!

2

Re: [SOLVED] invalid partition table after growing an ext3 partition.

testdisk is cool indeed smile

I'll report this incident, since it's not the first time it happened