[YLUG] recovering partition table
Patrick Dupre
pd520 at york.ac.uk
Sat Jul 25 13:46:53 UTC 2009
On Sat, 25 Jul 2009, Roger Leigh wrote:
> On Sat, Jul 25, 2009 at 02:20:09PM +0100, Patrick Dupre wrote:
>> Thank for the advice.
>>
>> I guess that the partitions are still OK.
>> I run testdisk
>> et fdisk gives:
>> /dev/sdd1 1 305 2449881 82 Linux swap /
>> Solaris
>> /dev/sdd2 306 9726 75674182+ f W95 Ext'd (LBA)
>> /dev/sdd5 306 732 3429846 83 Linux
>> /dev/sdd6 733 1733 8040501 83 Linux
>> /dev/sdd7 1734 2342 4891761 83 Linux
>> /dev/sdd8 2343 2953 4907826 83 Linux
>> /dev/sdd9 2954 3318 2931831 83 Linux
>> /dev/sdd10 3319 3499 1453851 83 Linux
>> /dev/sdd11 3500 5900 19286001 83 Linux
>> /dev/sdd12 5901 6901 8040501 83 Linux
>> /dev/sdd13 6902 8102 9647001 83 Linux
>> /dev/sdd14 8103 9726 13044748+ 83 Linux
>
> This is meaningless. That could be correct or incorrect and we
> could not tell. It's just a bunch of numbers. It might be
> technically correct, but if it changed from your previous setup,
> then you will have lost your old partitions.
This should be correct. I did not change any number.
As I said it has been recovered by testdisk.
It is not easy to explain what I have done, but my understanding is that
anaconda deleted the partition table which then has been recovered by
testdisk.
>
> How are your "guessing" that they are OK? What have you done to
> verify the fact?
>
>> fsck -r /dev/sdd5 gives:
>>
>> fsck 1.41.4 (27-Jan-2009)
>> e2fsck 1.41.4 (27-Jan-2009)
>> fsck.ext2: Superblock invalid, trying backup blocks...
>
> So /dev/sda5 doesn't contain a valid filesystem (no superblock). There
> are two possibilities:
>
> 1) Your filesystem is badly corrupted
> 2) Your partition table is incorrect
>
>> So, I think that the best would be to make a dd if=/dev/sdd5 of=/tmp/sdd5
>> (and so on for each partitions), but I failed in dd because I guess
>> that I am do giving the right count !
>
> *NO* *NO* If your partition table is screwed you cannot copy the partitions,
> only the whole disk. The point being, you're not backing up the original
> partition, just a random chunk of your disc.
>
>> Than I could do either a mount of the file (if it recognize the type)
>> or a fsck of the file ?
>
> You haven't told us what you did to break it, nor done what I asked in
> my other mail (file -s), so advising you further is not possible until
> you do so.
>
>
> Regards,
> Roger
>
>
--
---
==========================================================================
Patrick DUPRÉ | |
Department of Chemistry | | Phone: (44)-(0)-1904-434384
The University of York | | Fax: (44)-(0)-1904-432516
Heslington | |
York YO10 5DD United Kingdom | | email: pd520 at york.ac.uk
==========================================================================
More information about the York
mailing list