[wellylug] Fsck'd Partitions... help?

Cliff Pratt enkidu at cliffp.com
Fri Apr 21 13:14:14 NZST 2006


Jo Booth wrote:
> 
> On 20/04/2006, at 22:14 , David Antliff wrote:
> 
>> Jo Booth wrote:
>>
>>> Anyone have any bright ideas about how to recover partition tables?
>>
>>
>> It's actually not too hard to do manually if you know where the  start 
>> sectors are meant to be (Linux is easy, DOS is harder). Even  
>> rebuilding extended partitions is possible if you know roughly  where 
>> they start (you can search for the signature if you know  where to look).
>>
>> Are you sure you didn't lose anything other than the partition  table? 
>> Or are you asking how to recover after a mke2fs (which is  something 
>> different entirely...)?
> 
> 
> 
> Not too sure what's lost... i just can't find two of my partitions  that 
> used to be there.
> 
> hdb1 is a small "boot" partition of 518 mb
> hdb2 is an extended partition with (28,106 Mb)
>       hdb5 (the old linux partition) unknown type (9,193 MB)
>     hdb6 is an 86 Mb swap partition
> Then we have 18,826 mb of "unallocated space"  where I used to have  two 
> drives, both with "important" stuff on them
> 
> I haven't "formatted" any of the partitions, and I don't think i've  
> resized anything (windows diskpart doesn't do much)
> 
> I'd be keen on fixing it - even if I have to scroll through MBs of  data 
> to find the ends of the disks ;)  I know all three partitions  are about 
> 10 gig anyways.
> So -- how does one rewrite partition tables by hand using an Ubunutu  
> 5.1 live cd.. :)
> 
mmmm. The partition numbers make me think that the missing partition 
should be hdb3 and hdb4. The extended partition probably should include 
both hdb5 and hdb6 so should be 9 + 86 = 95Mb shouldn't it?

Here's mine:

root at honeybee:~ # fdisk -l /dev/hda

Disk /dev/hda: 122.9 GB, 122942324736 bytes
255 heads, 63 sectors/track, 14946 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

    Device Boot      Start         End      Blocks   Id  System
/dev/hda1   *           1         810     6506293+   7  HPFS/NTFS
/dev/hda2             811       14946   113547420    f  W95 Ext'd (LBA)
/dev/hda5             811        5523    37857141    7  HPFS/NTFS
/dev/hda6            5524       10234    37841076    7  HPFS/NTFS
/dev/hda7           10235       10265      248976   82  Linux swap / Solaris
/dev/hda8           10266       14946    37600101   83  Linux

Note that /dev/hda2 is an extended partition and contains hda5, hda6, etc.

hda3 and hda4 are nowhere to be seen because they would be primary 
partitions and I didn't allocated them. hda5 is the first logical 
partition inside the extended partition.

What does fdisk -l /dev/hdx make of your disk?

Cheers,

Cliff

-- 

http://barzoomian.blogspot.com




More information about the wellylug mailing list