| |Download for Linux| | |Download source| | |Home| | |License| |
./findpart /source/device file_to_save_old_partition_table [begin_track [end_track]]/source/device -- e.g. /dev/hda -- for first IDE HDD, /dev/sda -- for first SATA HDD, etc..
You must direct the name for file_to_save_old_partition_table If in next, you make a changes, then you may return all back with command: cat file_to_save_old_partition_table > /source/device
To minimize search time you may direct first and last cylinder betwen that the program will be search.
./findpart /dev/hda old_parts(In this example we try to recover primary IDE hard disk /dev/hda
Extended partition found at cyl 2048:
type: B; start at 63 (cyl 0) size: 41945652 (20481 Mb)
type: 5; start at 41945715 (cyl 2611) size: 144585 (70 Mb)
type: 0; start at 0 (cyl 0) size: 0 (0 Mb)
type: 0; start at 0 (cyl 0) size: 0 (0 Mb)
Next action:
n,f,v,l,b) recovery partition table (this will be extended partition, before this will by one primary partition)
f -- set primary as FAT
v -- set primary as FAT32
l -- set primary as Linux
b -- set primary as FreeBSD
n -- set primary as NTFS
1,2,3,4) change entry 1..4 in current partition table to point to this extended partition
c) continue search
q) quit
There you may look the extended partition that has been found. If you see that
it isn't partition table (it may be if the same signature found occasionally;
the extended partition table must have one or two filed entry, usually start sector in first entry is 63, and if second entry is used this type must be five) press 'c' to continue search.
If type of your primary partition (Linux ext2/ext3,FAT,FAT32,FreeBSD,NTFS) chose it. In any case after do it run
fdisk /dev/hdaWith fdisk you may check your partition table (p - command) and make some changes. If you look that the partition table is wrong, then you may return all back with command:
cat old_parts > /dev/hda