Help with FINDPART

  • Thread starter Thread starter Jerry Lindsey
  • Start date Start date
J

Jerry Lindsey

Hi,

I used Partition Magic v8 to move partitions
around on my hard drive and encounterd a
problem when 98% of my linux partition had
been moved. At that point I believe it came
up with a message that there was a bad
sector.

After that I couldn't access the partition.
Partition Magic still sees that the partition
but only the delete, info options are available.

I tried booting from a linux recovery disk
but e2fsck says that the partition has a
bad superblock. I am posting the findpart
output below.

I'd really appreciate it if someone can decipher
it for me and let me know if there is any
way to get the partition back.

The partitions were laid out like so:

Dell Utility
NTFS - Win2K
Extended
linux (ext3)
linux swap

The operation Parition Magic failed on was moving
the linux partition down within the Extended partition.

Here is the findpart output. Any help is
greatly appreciated!

Thanks.

Jerry Lindsey

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 7.10 All

Disk: 1 Cylinders: 2213 Heads: 255 Sectors: 63 MB: 17359

-PCyl N ID -----Rel -----Num ---MB -Start CHS- --End CHS-- BS CHS
0 - 06 63 64197 31 0 1 1 3 254 63 B OK
0 - 07 64260 8385930 4094 4 0 1 525 254 63 B OK
Fdisk F6 sector 496 1 1
0 - 83 8450190 8514450 4157 526 0 1 1055 254 63 B5 3 OK
526 2 05 12691413 12305727 6008 1023 1 1 1788*254 63 --- NB
Fdisk F6 sector 526 1 1
1056 2 05 63 13382082 6534 1023 1 1 1855*254 63 --- NB
1056+1 3C 63 16482564 8048 1056* 2 1 2081*254 63 OK
1056+2 05 24997140 2104515 1027 2082* 0 1 2212*254 63 526 OK
0 - 83 16964766 12305664 6008 1056 2 1 1821 254 63 B0 3 OK
1316+1 83 63 12305664 6008 1316* 2 1 2081*254 63 NB OK
1316+2 05 24997140 2104515 1027 2082* 0 1 2212*254 63 526 OK
1889 1 3C 63 5204997 2541 1889* 1 1 2212*254 63 OK
1952 1 82 63 4192902 2047 1952* 1 1 2212*254 63 OK
2082 1 82 63 2104452 1027 2082* 1 1 2212*254 63 OK
0 - 07 64260 35487585 17327 4 0 1 2212 254 63 BU OK

-----FAT CHS -Size Cl --Root -Good -Rep. Maybe --Bad YYMMDD DataMB
0 1 2 63 2 512 63 0 0 0 020410 7
0 2 2 Second FAT not found.
4 1 48 11520 6054 0 478 4988

Partitions according to partition tables on first harddisk:

-PCyl N ID -----Rel -----Num ---MB -Start CHS- --End CHS-- BS CHS
0 1 DE 63 64197 31 0 1 1 3 254 63 OK
0 2*07 64260 8385930 4094 4 0 1 525 254 63 OK OK
0 4 0F 8450190 27101655 13233 526 0 1 2212*254 63 OK

526 2 05 12691413 12305727 6008 1316* 1 1 2081*254 63 OK

1316+1 83 63 12305664 6008 1316* 2 1 2081*254 63 NB OK
1316+2 05 24997140 2104515 1027 2082* 0 1 2212*254 63 OK

2082 1 82 63 2104452 1027 2082* 1 1 2212*254 63 OK
 
Forgot to add some additional info.

First, this entry appears to be the old
linux partition I intentionally deleted.

0 - 83 8450190 8514450 4157 526 0 1 1055 254 63 B5 3 OK

The size of the linux partition I was moving
was reported in linux as 6.3GB so it appears
that this entry;

1056 2 05 63 13382082 6534 1023 1 1 1855*254 63 --- NB

was the original entry. Why it is a type 05 I'm not sure.
And this entry;

1316+1 83 63 12305664 6008 1316* 2 1 2081*254 63 NB OK

appears to be where the partition was being moved to
except the size is wrong. Also there are several entries
that have the size of 6008 so I'm not sure which is being
used as the current.

Any help would be greatly appreciated! Even if I can only
recover my netscape email that would be great.

Svend, are you around? Help!!!

Jerry
 
Svend, are you around? Help!!!

Jerry

I am, but I have to be awake too. From the original output:

Disk: 1 Cylinders: 2213 Heads: 255 Sectors: 63 MB: 17359

0 - 83 16964766 12305664 6008 1056 2 1 1821 254 63 B0 3 OK

Before the partition tables are edited, it should be verified that the
integrity of the partition is OK. You could initially try this using
ReadExt2:

readext2 1 1056 1056

But of course the partition table can be edited, and the partition
examined read only.
 
Findpart, version 4.36.
Copyright Svend Olaf Mikkelsen, 2003.
OS: DOS 7.10 All

Disk: 1 Cylinders: 2213 Heads: 255 Sectors: 63 MB: 17359

-PCyl N ID -----Rel -----Num ---MB -Start CHS- --End CHS-- BS CHS
0 - 06 63 64197 31 0 1 1 3 254 63 B OK
0 - 07 64260 8385930 4094 4 0 1 525 254 63 B OK
Fdisk F6 sector 496 1 1
0 - 83 8450190 8514450 4157 526 0 1 1055 254 63 B5 3 OK
526 2 05 12691413 12305727 6008 1023 1 1 1788*254 63 --- NB
Fdisk F6 sector 526 1 1
1056 2 05 63 13382082 6534 1023 1 1 1855*254 63 --- NB
1056+1 3C 63 16482564 8048 1056* 2 1 2081*254 63 OK
1056+2 05 24997140 2104515 1027 2082* 0 1 2212*254 63 526 OK
0 - 83 16964766 12305664 6008 1056 2 1 1821 254 63 B0 3 OK
1316+1 83 63 12305664 6008 1316* 2 1 2081*254 63 NB OK
1316+2 05 24997140 2104515 1027 2082* 0 1 2212*254 63 526 OK
1889 1 3C 63 5204997 2541 1889* 1 1 2212*254 63 OK
1952 1 82 63 4192902 2047 1952* 1 1 2212*254 63 OK
2082 1 82 63 2104452 1027 2082* 1 1 2212*254 63 OK
0 - 07 64260 35487585 17327 4 0 1 2212 254 63 BU OK

-----FAT CHS -Size Cl --Root -Good -Rep. Maybe --Bad YYMMDD DataMB
0 1 2 63 2 512 63 0 0 0 020410 7
0 2 2 Second FAT not found.
4 1 48 11520 6054 0 478 4988

Partitions according to partition tables on first harddisk:

-PCyl N ID -----Rel -----Num ---MB -Start CHS- --End CHS-- BS CHS
0 1 DE 63 64197 31 0 1 1 3 254 63 OK
0 2*07 64260 8385930 4094 4 0 1 525 254 63 OK OK
0 4 0F 8450190 27101655 13233 526 0 1 2212*254 63 OK

526 2 05 12691413 12305727 6008 1316* 1 1 2081*254 63 OK

1316+1 83 63 12305664 6008 1316* 2 1 2081*254 63 NB OK
1316+2 05 24997140 2104515 1027 2082* 0 1 2212*254 63 OK

2082 1 82 63 2104452 1027 2082* 1 1 2212*254 63 OK

To remove the partition table entries at cylinder 1316, and add
entries for the 6008 MB ext3 partition at cylinder 1056, you can
download lindsey2.bat in

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

and run lindsey2.bat, which contains:

set findpart=edit
findpart 1 526 2 - 05 1056 0 1 1821 254 63 526 2213 255 63 26
findpart 1 1056 1 - 83 1056 2 1 1821 254 63 1056 2213 255 63 26
findpart 1 1056 2 - 05 2082 0 1 2212 254 63 526 2213 255 63 26
set findpart=
findpart 1 table fp1-2.txt

Since it is not known if the ext3 partition is internally OK, the
partition should initially only be mounted read only.

It is assumed that the partition tables were not changed since
Findpart was run.

If the partition tables looks similar in Windows 2000, you can run the
batch file using Findpart for Windows, and have the option to post the
content from fp1-2.txt for confirmation before reboot.
 
Hi Svend,

Thanks for the reply! Your help is really appreciated.

I will move the drive to a system with windows on
it so that I can run readext2. Then I'll post the
results from the command you suggested.

Thanks!

Jerry
 
Svend,

You are a genius! I cloned the disk using diskpatch(it took
about 8-9 hours but it worked) and ran the find/editpart
script you put together for me.

I can't boot from the disk yet, but when I boot from
a recovery CD I can mount the 6008MB ext3 partition
and see all my files!

grub complains that it can't mount the partition (/dev/sda5)
though because it is a type 05. If you could take one
more look at the current findpart output below I'd
really appreciate it.

Thanks!

Jerry

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 7.10 All

Disk: 1 Cylinders: 2231 Heads: 255 Sectors: 63 MB: 17500

-PCyl N ID -----Rel -----Num ---MB -Start CHS- --End CHS-- BS CHS
0 - 06 63 64197 31 0 1 1 3 254 63 B OK
0 - 07 64260 8385930 4094 4 0 1 525 254 63 B OK
Fdisk F6 sector 496 1 1
0 - 83 8450190 8514450 4157 526 0 1 1055 254 63 B5 3 OK
526 2 05 8514450 12305790 6008 1056 0 1 1821 254 63 526 OK
Fdisk F6 sector 526 1 1
1056 1 83 126 12305664 6008 1056 2 1 1821 254 63 OK 3 OK
1056 2 05 24997140 2104515 1027 2082 0 1 2212 254 63 526 OK
1056+1 3C 63 16482564 8048 1056* 2 1 2081*254 63 OK
1056+2 05 24997140 2104515 1027 2082* 0 1 2212*254 63 526 OK
0 - 83 16964766 12305664 6008 1056 2 1 1821 254 63 B0 3 OK
1316+1 83 63 12305664 6008 1316* 2 1 2081*254 63 NB OK
1316+2 05 24997140 2104515 1027 2082* 0 1 2212*254 63 526 OK
1889 1 3C 63 5204997 2541 1889* 1 1 2212*254 63 OK
1952 1 82 63 4192902 2047 1952* 1 1 2212*254 63 OK
2082 1 82 63 2104452 1027 2082* 1 1 2212*254 63 OK
0 - 07 64260 35487585 17327 4 0 1 2212 254 63 BU OK

-----FAT CHS -Size Cl --Root -Good -Rep. Maybe --Bad YYMMDD DataMB
0 1 2 63 2 512 63 0 0 0 020410 7
0 2 2 Second FAT not found.
4 1 48 11520 6054 0 478 4988

Partitions according to partition tables on first harddisk:

-PCyl N ID -----Rel -----Num ---MB -Start CHS- --End CHS-- BS CHS
0 1 DE 63 64197 31 0 1 1 3 254 63 OK
0 2*07 64260 8385930 4094 4 0 1 525 254 63 OK OK
0 4 0F 8450190 27101655 13233 526 0 1 2212*254 63 OK

526 2 05 8514450 12305790 6008 1056 0 1 1821 254 63 OK

1056 1 83 126 12305664 6008 1056 2 1 1821 254 63 OK 3 OK
1056 2 05 24997140 2104515 1027 2082 0 1 2212 254 63 OK

2082 1 82 63 2104452 1027 2082* 1 1 2212*254 63 OK
 
Svend,

You are a genius! I cloned the disk using diskpatch(it took
about 8-9 hours but it worked) and ran the find/editpart
script you put together for me.

I can't boot from the disk yet, but when I boot from
a recovery CD I can mount the 6008MB ext3 partition
and see all my files!

grub complains that it can't mount the partition (/dev/sda5)
though because it is a type 05. If you could take one
more look at the current findpart output below I'd
really appreciate it.

Thanks!

Jerry

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 7.10 All

Disk: 1 Cylinders: 2231 Heads: 255 Sectors: 63 MB: 17500

-PCyl N ID -----Rel -----Num ---MB -Start CHS- --End CHS-- BS CHS
0 - 06 63 64197 31 0 1 1 3 254 63 B OK
0 - 07 64260 8385930 4094 4 0 1 525 254 63 B OK
Fdisk F6 sector 496 1 1
0 - 83 8450190 8514450 4157 526 0 1 1055 254 63 B5 3 OK
526 2 05 8514450 12305790 6008 1056 0 1 1821 254 63 526 OK
Fdisk F6 sector 526 1 1
1056 1 83 126 12305664 6008 1056 2 1 1821 254 63 OK 3 OK
1056 2 05 24997140 2104515 1027 2082 0 1 2212 254 63 526 OK
1056+1 3C 63 16482564 8048 1056* 2 1 2081*254 63 OK
1056+2 05 24997140 2104515 1027 2082* 0 1 2212*254 63 526 OK
0 - 83 16964766 12305664 6008 1056 2 1 1821 254 63 B0 3 OK
1316+1 83 63 12305664 6008 1316* 2 1 2081*254 63 NB OK
1316+2 05 24997140 2104515 1027 2082* 0 1 2212*254 63 526 OK
1889 1 3C 63 5204997 2541 1889* 1 1 2212*254 63 OK
1952 1 82 63 4192902 2047 1952* 1 1 2212*254 63 OK
2082 1 82 63 2104452 1027 2082* 1 1 2212*254 63 OK
0 - 07 64260 35487585 17327 4 0 1 2212 254 63 BU OK

-----FAT CHS -Size Cl --Root -Good -Rep. Maybe --Bad YYMMDD DataMB
0 1 2 63 2 512 63 0 0 0 020410 7
0 2 2 Second FAT not found.
4 1 48 11520 6054 0 478 4988

Partitions according to partition tables on first harddisk:

-PCyl N ID -----Rel -----Num ---MB -Start CHS- --End CHS-- BS CHS
0 1 DE 63 64197 31 0 1 1 3 254 63 OK
0 2*07 64260 8385930 4094 4 0 1 525 254 63 OK OK
0 4 0F 8450190 27101655 13233 526 0 1 2212*254 63 OK

526 2 05 8514450 12305790 6008 1056 0 1 1821 254 63 OK

1056 1 83 126 12305664 6008 1056 2 1 1821 254 63 OK 3 OK
1056 2 05 24997140 2104515 1027 2082 0 1 2212 254 63 OK

2082 1 82 63 2104452 1027 2082* 1 1 2212*254 63 OK

Nice so far.

There is no /dev/sda5, assuming Linux numbers the partitions in the
first extended partition table as 5. This is because there is free
partition space in the beginning of the extended partition. The ext3
partition then is partition number 6, and the swap partition number 7.

It would be possible to let the extended partition begin later on the
disk, and make the ext3 partition number 5, but I would say that is
outside the scope of recovery. The important thing is if the ext3
partition is internally OK after the PM failure.
 
Nice so far.

There is no /dev/sda5, assuming Linux numbers the partitions in the
first extended partition table as 5. This is because there is free
partition space in the beginning of the extended partition. The ext3
partition then is partition number 6, and the swap partition number 7.

It would be possible to let the extended partition begin later on the
disk, and make the ext3 partition number 5, but I would say that is
outside the scope of recovery. The important thing is if the ext3
partition is internally OK after the PM failure.

Well, I gave up on try to fix grub. Instead I dd'd the fixed partition
from the cloned disk to the original drive. grub then had no problem.
It's good to see my linux partition intact...

Thanks again Svend!

Jerry
 
Back
Top