Restoring my partition table.

  • Thread starter Thread starter Jim Wiedman
  • Start date Start date
J

Jim Wiedman

I was testing a custom RedHat installation and blew away my partition
table. Not the brightest thing I've ever done.

If anyone could give me some pointers before I try to restore it,
I will be forever in your debt.

I've read Svend Olaf Mikkelsen's pages on partitions which is
extremely helpful, but there is quite a bit I do not understand.


Here's the result of Findpart:

************************************
Findpart, version 4.36.
Copyright Svend Olaf Mikkelsen, 2003.

Searches for partitions type 01, 04, 06, 07, 0B, 0C, 0E, 82, 83,
plus Fdisk F6 and Lilo sectors. Information based on bootsectors
is marked B. If the disk is larger than supported by BIOS, the
supported part of the disk is examined. Disks are numbered from 1.

OS: DOS 6.22

Disk: 1 Cylinders: 1559 Heads: 240 Sectors: 63 MB: 11510

-PCyl N ID -----Rel -----Num ---MB -Start CHS- --End CHS-- BS CHS
0 - 07 63 10236177 4998 0 1 1 676 239 63 B OK
0 - 83 10236240 211680 103 677 0 1 690 239 63 B0 3 OK
0 - 83 10342080 2661120 1299 684 0 1 859 239 63 B0 3 OK
860 1 83 63 2041137 996 860 1 1 994 239 63 OK 3 OK
860 2 05 2041200 1028160 502 995 0 1 1062*239 63 860 OK
995 1 04 63 1028097 502 995 1 1 1062*239 63 NB OK
995 2 05 3069360 529200 258 1063# 0 1 1097*239 63 860 OK
995+- 06 0 1028096 502 995 1 1 1062 239 62 B OK
1063 1 82 63 529137 258 1063# 1 1 1097*239 63 OK
1063 2 05 3598560 6970320 3403 1098# 0 1 1558*239 63 860 OK

-----FAT CHS -Size Cl --Root -Good -Rep. Maybe --Bad YYMMDD DataMB
995 1 2 251 8 512 251 0 0 0 020419 112
1098 0 33 Second FAT not found.

Partitions according to partition tables on first harddisk:

None.

************************************

Can I repair this partition table? I'm most interested in
getting at the NTFS partition, but I'd really like to restore the
whole thing.

I'd appreciate any suggestions you can make.

Thanks,

Jim
 
Findpart, version 4.36.
Copyright Svend Olaf Mikkelsen, 2003.
OS: DOS 6.22

Disk: 1 Cylinders: 1559 Heads: 240 Sectors: 63 MB: 11510

-PCyl N ID -----Rel -----Num ---MB -Start CHS- --End CHS-- BS CHS
0 - 07 63 10236177 4998 0 1 1 676 239 63 B OK
0 - 83 10236240 211680 103 677 0 1 690 239 63 B0 3 OK
0 - 83 10342080 2661120 1299 684 0 1 859 239 63 B0 3 OK
860 1 83 63 2041137 996 860 1 1 994 239 63 OK 3 OK
860 2 05 2041200 1028160 502 995 0 1 1062*239 63 860 OK
995 1 04 63 1028097 502 995 1 1 1062*239 63 NB OK
995 2 05 3069360 529200 258 1063# 0 1 1097*239 63 860 OK
995+- 06 0 1028096 502 995 1 1 1062 239 62 B OK
1063 1 82 63 529137 258 1063# 1 1 1097*239 63 OK
1063 2 05 3598560 6970320 3403 1098# 0 1 1558*239 63 860 OK

-----FAT CHS -Size Cl --Root -Good -Rep. Maybe --Bad YYMMDD DataMB
995 1 2 251 8 512 251 0 0 0 020419 112
1098 0 33 Second FAT not found.

Partitions according to partition tables on first harddisk:

None.

To add some of the partitions found to the partition tables, you can
download wiedman1.bat in

http://inet.uni2.dk/~svolaf/wiedman1.zip

and run wiedman1.bat, which contains:

set findpart=edit
findpart 1 0 1 * 07 0 1 1 676 239 63 0 1559 240 63 26
findpart 1 0 3 - 83 684 0 1 859 239 63 0 1559 240 63 26
findpart 1 0 4 - 85 860 0 1 1558 239 63 0 1559 240 63 26
findpart 1 995 1 - 06 995 1 1 1062 239 63 995 1559 240 63 26
findpart 1 1063 2 - 00 0 0 0 0 0 0 0 1559 240 63 26
set findpart=
findpart 1 table fp1-1.txt

Only one of the primary ext3 partitions can be restored, since they
overlap. I assume the 1299 MB partition is the current partition.

No partitions were located at the end of the disk. If partitions are
missing, ask again, and if possible give more details about what is
missing, including file system information.

The extended partition is made Linux extended (ID 85). When it is
verified that the logical partitions are OK, it can be made type 0F to
allow Windows to access the FAT partition.

You have the option to post the content from the fp-1.txt file for
confirmation, before you proceed.
 
(e-mail address removed)2.dk (Svend Olaf Mikkelsen) wrote in message
set findpart=edit
findpart 1 0 1 * 07 0 1 1 676 239 63 0 1559 240 63 26
findpart 1 0 3 - 83 684 0 1 859 239 63 0 1559 240 63 26
findpart 1 0 4 - 85 860 0 1 1558 239 63 0 1559 240 63 26
findpart 1 995 1 - 06 995 1 1 1062 239 63 995 1559 240 63 26
findpart 1 1063 2 - 00 0 0 0 0 0 0 0 1559 240 63 26
set findpart=
findpart 1 table fp1-1.txt

Svend,

THANK YOU!!!!!

You restored all of my critical partitions! I owe you big.

May I ask some questions so I'll understand this better the next
time?

How did you know thta the first three partitions were numbered 1, 3
and 4? They were blank in the findpart output. Where does the "26"
version number come from at the end? I expected it to be 42,
matching the version number of editpart.

Once again, thank you very much. I can't begin to tell you how much
time this saved me.

Jim
 
Svend,

THANK YOU!!!!!

You restored all of my critical partitions! I owe you big.

You are welcome.
May I ask some questions so I'll understand this better the next
time?

How did you know thta the first three partitions were numbered 1, 3
and 4? They were blank in the findpart output. Where does the "26"
version number come from at the end? I expected it to be 42,
matching the version number of editpart.

I did not know that, but usually the primary partitions are in
physical order. Entry 2 is unused, because there is free space after
partition 1.

I use 26 as version number for convenience, when no specific option of
a later version is needed.
 
Back
Top