[TriLUG] Lost Partition Table!

Sinner from the Prairy sinner_prairy at hotmail.com
Sat Sep 8 16:06:01 EDT 2001


Hi,

I have recently lost the partition table on my primary disk. My fault. It
has ext2, ReiserFS and LinuxSwap partitions. There are primary and logical
partitions on the disk. Now I'm running from a second disk.

No, I have no copy of the partition table (I had it, but I changed the
aprtitions because I was geting read errors -bad sectors? - so I moved data
around, emptied partiitiosn, created new partitions... and the partition
table was lost in the process.

I've tried gparted and rescuept . So far, no luck. Any other utility around?

gparted doesn't recognize extended partitions. rescuept doesn't work with
ReiserFS.

I just started using TestDisk, but I have no idea of how "good" it is.

Also, with gparted, I do not know how to interpret the results. Maybe is the 
pressure of having
all my data lost. Maybe I'm just another moron. Maybe.

Below you have the result of running both utilities on my system. If you
need more info, please ask.

Any help will be wellcome. Thanks in advance.

The disk:

[root at system home]# dmesg | grep hda
    ide0: BM-DMA at 0xd000-0xd007, BIOS settings: hda:DMA, hdb:DMA
hda: IBM-DTLA-307060, ATA DISK drive
hda: 120103200 sectors (61493 MB) w/1916KiB Cache, CHS=7476/255/63, UDMA(33
)
hda:

It has a max capacity of 60GB. It is (was) not fully used. There should be
something like 20Gb not used in the end of the disk (unpartitioned area).

[root at system home]# ./rescuept /dev/hda
# partition table of /dev/hda
unit: sectors
#    0 MB candidate ext pt (type  5): sectors      3156-     3156
#    0 MB extended part ok (type  5): sectors      3156-     3156
#    0 MB candidate ext pt (type  5): sectors      3168-     3168
#    0 MB extended part ok (type  5): sectors      3168-     3168
#    0 MB candidate ext pt (type  5): sectors      3180-     3180
#    0 MB extended part ok (type  5): sectors      3180-     3180
#    0 MB candidate ext pt (type  5): sectors      3592-     3592
#    0 MB extended part ok (type  5): sectors      3592-     3592
#    0 MB candidate ext pt (type  5): sectors      3604-     3604
#    0 MB extended part ok (type  5): sectors      3604-     3604
#    0 MB candidate ext pt (type  5): sectors      8552-     8552
#    0 MB extended part ok (type  5): sectors      8552-     8552
#    0 MB candidate ext pt (type  5): sectors      8988-     8988
#    0 MB extended part ok (type  5): sectors      8988-     8988
#    0 MB candidate ext pt (type  5): sectors      9000-     9000
#    0 MB extended part ok (type  5): sectors      9000-     9000
#    0 MB candidate ext pt (type  5): sectors     48195-    48195
#  243 MB     found in ept (type 82): sectors     48258-   546209
#  243 MB extended part ok (type  5): sectors     48195-   546209
#    0 MB candidate ext pt (type  5): sectors    546210-   546210
# 10613 MB     found in ept (type 83): sectors    546273- 22282154
# 467209 MB     found in ept (type e0): sectors 494971289-1451815459
# retracted
#    0 MB candidate ext pt (type  5): sectors  22282155- 22282155
# 5122 MB     found in ept (type 83): sectors  22282218- 32772599
# retracted
#    0 MB candidate ext pt (type  5): sectors  32772600- 32772600
# 2134 MB     found in ept (type 83): sectors  32772663- 37142279
# 2134 MB extended part ok (type  5): sectors  32772600- 37142279
#    0 MB candidate ext pt (type  5): sectors  37142280- 37142280
# 7201 MB     found in ept (type 83): sectors  37142343- 51889949
# 7201 MB extended part ok (type  5): sectors  37142280- 51889949
#    0 MB candidate ext pt (type  5): sectors  60067035- 60067035
# 3993 MB     found in ept (type 83): sectors  60067098- 68244119
# retracted
# 3993 MB   ext2 partition (type 83): sectors  60067098- 68244113
#    0 MB candidate ext pt (type  5): sectors  68244120- 68244120
#  996 MB     found in ept (type 83): sectors  68244183- 70284374
# retracted
#  996 MB   ext2 partition (type 83): sectors  68244183- 70284374
#    0 MB candidate ext pt (type  5): sectors  70284375- 70284375
# 7138 MB     found in ept (type 83): sectors  70284438- 84903524
# 7138 MB extended part ok (type  5): sectors  70284375- 84903524
/dev/hda0 : start=     3156, size=       1, Id= 5
/dev/hda0 : start=     3168, size=       1, Id= 5
/dev/hda0 : start=     3180, size=       1, Id= 5
/dev/hda0 : start=     3592, size=       1, Id= 5
/dev/hda0 : start=     3604, size=       1, Id= 5
/dev/hda0 : start=     8552, size=       1, Id= 5
/dev/hda0 : start=     8988, size=       1, Id= 5
/dev/hda0 : start=     9000, size=       1, Id= 5
/dev/hda0 : start=    48195, size=  498015, Id= 5
/dev/hda0 : start=    48258, size=  497952, Id=82
/dev/hda0 : start= 32772600, size= 4369680, Id= 5
/dev/hda0 : start= 32772663, size= 4369617, Id=83
/dev/hda0 : start= 37142280, size=14747670, Id= 5
/dev/hda0 : start= 37142343, size=14747607, Id=83
/dev/hda0 : start= 60067098, size= 8177016, Id=83
/dev/hda0 : start= 68244183, size= 2040192, Id=83
/dev/hda0 : start= 70284375, size=14619150, Id= 5
/dev/hda0 : start= 70284438, size=14619087, Id=83


[root at system home]# gpart /dev/hda

Begin scan...
Possible extended partition at offset(23mb)
   Possible partition(Linux swap), size(243mb), offset(23mb)
   Possible partition(Linux ext2), size(7200mb), offset(18135mb)
   Possible partition(Linux ext2), size(3992mb), offset(29329mb)
   Possible partition(Linux ext2), size(996mb), offset(33322mb)
   Possible partition(Linux ext2), size(7138mb), offset(34318mb)
End scan.

Checking partitions...

* Warning: more than one extended partition: 3.
   Partition(Linux swap or Solaris/x86): logical
Partition(Linux ext2 filesystem): invalid
Partition(Linux ext2 filesystem): invalid
Partition(Linux ext2 filesystem): invalid
Partition(Linux ext2 filesystem): primary
Ok.

Guessed primary partition table:
Primary partition(1)
   type: 015(0x0F)(Extended DOS, LBA)
   size: 25336mb #s(51889887) s(48195-51938081)
   chs:  (3/0/1)-(1023/254/63)d (3/0/1)-(3232/253/63)r

Primary partition(2)
   type: 131(0x83)(Linux ext2 filesystem)
   size: 7138mb #s(14619080) s(70284438-84903517)
   chs:  (1023/254/63)-(1023/254/63)d (4375/1/1)-(5284/254/56)r

Primary partition(3)
   type: 000(0x00)(unused)
   size: 0mb #s(0) s(0-0)
   chs:  (0/0/0)-(0/0/0)d (0/0/0)-(0/0/0)r

Primary partition(4)
   type: 000(0x00)(unused)
   size: 0mb #s(0) s(0-0)
   chs:  (0/0/0)-(0/0/0)d (0/0/0)-(0/0/0)r


[root at sal johnson]# gpart -E -f -v /dev/hda

dev(/dev/hda) mss(512) chs(7476/255/63)(LBA) #s(120101940) size(58643mb)
Primary partition(1)
   type: 000(0x00)(unused)
   size: 0mb #s(0) s(0-0)
   chs:  (0/0/0)-(0/0/0)d (0/0/0)-(0/0/0)r
   hex:  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

Primary partition(2)
   type: 000(0x00)(unused)
   size: 0mb #s(0) s(0-0)
   chs:  (0/0/0)-(0/0/0)d (0/0/0)-(0/0/0)r
   hex:  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

Primary partition(3)
   type: 000(0x00)(unused)
   size: 0mb #s(0) s(0-0)
   chs:  (0/0/0)-(0/0/0)d (0/0/0)-(0/0/0)r
   hex:  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

Primary partition(4)
   type: 000(0x00)(unused)
   size: 0mb #s(0) s(0-0)
   chs:  (0/0/0)-(0/0/0)d (0/0/0)-(0/0/0)r
   hex:  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00


Begin scan...
Possible partition(Linux swap), size(243mb), offset(23mb)
   type: 130(0x82)(Linux swap or Solaris/x86)
   size: 243mb #s(497952) s(48258-546209)
   chs:  (3/1/1)-(33/254/63)d (3/1/1)-(33/254/63)r
   hex:  00 01 01 03 82 FE 3F 21 82 BC 00 00 20 99 07 00

Possible partition(Linux ext2), size(7200mb), offset(18135mb)
   type: 131(0x83)(Linux ext2 filesystem)
   size: 7200mb #s(14747600) s(37142343-51889942)
   chs:  (1023/254/63)-(1023/254/63)d (2312/1/1)-(3229/254/56)r
   hex:  00 FE FF FF 83 FE FF FF 47 BF 36 02 D0 07 E1 00

Possible partition(Linux ext2), size(502mb), offset(23140mb)
   type: 131(0x83)(Linux ext2 filesystem)
   size: 502mb #s(1028096) s(47391813-48419908)
   chs:  (1023/254/63)-(1023/254/63)d (2950/1/1)-(3013/254/62)r
   hex:  00 FE FF FF 83 FE FF FF 45 24 D3 02 00 B0 0F 00


* Warning: short read near sector(48018978), 57856 bytes instead of 66048.
Skipping...

* Warning: short read near sector(48019091), 1024 bytes instead of 66048.
Skipping...

* Warning: short read near sector(48019093), 1024 bytes instead of 66048.
Skipping...

* Warning: read error (EIO) near sector(48019095), skipping...

* Warning: short read near sector(72382833), 60416 bytes instead of 66048.
Skipping...

* Warning: short read near sector(72382951), 1024 bytes instead of 66048.
Skipping...

* Warning: short read near sector(72382953), 1024 bytes instead of 66048.
Skipping...

* Warning: short read near sector(72382955), 1024 bytes instead of 66048.
Skipping...

* Warning: read error (EIO) near sector(72382957), skipping...
End scan.

Checking partitions...
Partition(Linux swap or Solaris/x86): primary
Partition(Linux ext2 filesystem): primary
Partition(Linux ext2 filesystem): primary
Number of inconsistencies found: 1.

Guessed primary partition table:
Primary partition(1)
   type: 130(0x82)(Linux swap or Solaris/x86)
   size: 243mb #s(497952) s(48258-546209)
   chs:  (3/1/1)-(33/254/63)d (3/1/1)-(33/254/63)r
   hex:  00 01 01 03 82 FE 3F 21 82 BC 00 00 20 99 07 00

Primary partition(2)
   type: 131(0x83)(Linux ext2 filesystem)
   size: 7200mb #s(14747600) s(37142343-51889942)
   chs:  (1023/254/63)-(1023/254/63)d (2312/1/1)-(3229/254/56)r
   hex:  00 FE FF FF 83 FE FF FF 47 BF 36 02 D0 07 E1 00

Primary partition(3)
   type: 131(0x83)(Linux ext2 filesystem)
   size: 502mb #s(1028096) s(47391813-48419908)
   chs:  (1023/254/63)-(1023/254/63)d (2950/1/1)-(3013/254/62)r
   hex:  00 FE FF FF 83 FE FF FF 45 24 D3 02 00 B0 0F 00

Primary partition(4)
   type: 000(0x00)(unused)
   size: 0mb #s(0) s(0-0)
   chs:  (0/0/0)-(0/0/0)d (0/0/0)-(0/0/0)r
   hex:  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00


_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp




More information about the TriLUG mailing list