[plug] partition recovery - stupid fdisk mistake

Bernd Felsche bernie at innovative.iinet.net.au
Thu May 18 10:28:42 WST 2006


"Timothy White" <weirdit at gmail.com> writes:
>On 5/17/06, Mike Holland <myk.list at westnet.com.au> wrote:
>> philC wrote:

>> > In attempting to reformat a ext3 to fat partition I ran the fdisk o
>> > option then the w write to disk -Big mistake! I've now got only one

>> Try  "cat /proc/partitions" and save/write the result. That will tell
>> you their size, from which you can calculate the number of cylinders,
>> and rebuild the table by hand.  Also 'df' will give sizes and other
>> useful info.

>> If the computer is shut down, you can still boot off floppy or cdrom and
>> repair it.  If you have lost the partition sizes, there is probably
>> a utility which will scan the disk looking for partition headers.

>gpart

>Description: Guess PC disk partition table, find lost partitions
> Gpart is a tool which tries to guess the primary partition table of a
> PC-type disk in case the primary partition table in sector 0 is
> damaged, incorrect or deleted.
>....

>I don't know any other way to extract the data, once you have rebooted.

>You can use gpart while things are still running IIRC. And it's in
>Debian ;-)

And SuSE. You can run it in "rescue" mode from the first CD/DVD
-- 
/"\ Bernd Felsche - Innovative Reckoning, Perth, Western Australia
\ /  ASCII ribbon campaign | "Laws do not persuade just because
 X   against HTML mail     |  they threaten."
/ \  and postings          | Lucius Annaeus Seneca, c. 4BC - 65AD.




More information about the plug mailing list