[plug] partition recovery - stupid fdisk mistake

Phil C philcal2001 at hotmail.com
Thu May 18 12:15:17 WST 2006


Thanks Tim, Mike

I have recovered table info using Mikes suggestions so it is just a matter 
of manually entering partitions.

This is a good oportunity to try the gpart idea and see if it comes up with 
sametable info currently in /proc/partitions. If it doesnt I'll let group 
know for future ref.

R

Phil C



>From: "Timothy White" <weirdit at gmail.com>
>Reply-To: plug at plug.org.au
>To: plug at plug.org.au
>Subject: Re: [plug] partition recovery - stupid fdisk mistake
>Date: Thu, 18 May 2006 08:50:44 +0800
>MIME-Version: 1.0
>Received: from tara2.wa.amnet.net.au ([203.161.126.21]) by 
>bay0-mc6-f18.bay0.hotmail.com with Microsoft SMTPSVC(6.0.3790.1830); Wed, 
>17 May 2006 17:51:11 -0700
>Received: (qmail 1020 invoked by uid 89); 18 May 2006 00:51:09 -0000
>Received: by simscan 1.1.0 ppid: 1010, pid: 1011, t: 1.0378s         
>scanners: attach: 1.1.0 clamav: 0.88/m:36/d:1310 spam: 3.1.0
>Received: from unknown (HELO shameless.plug.org.au) (202.89.160.37)  by 
>tara2.wa.amnet.net.au with SMTP  for <trevor.phillips at gmail.com>; 18 May 
>2006 00:51:08 -0000
>Received: from shameless.plug.org.au (localhost.localdomain [127.0.0.1])by 
>shameless.plug.org.au (Postfix) with ESMTP id 1BB0E466CE;Thu, 18 May 2006 
>08:50:59 +0800 (WST)
>Received: from shameless.plug.org.au (localhost.localdomain [127.0.0.1])by 
>shameless.plug.org.au (Postfix) with ESMTP id 1D3A9466C6;Thu, 18 May 2006 
>08:50:57 +0800 (WST)
>Received: from shameless.plug.org.au (localhost.localdomain [127.0.0.1])by 
>shameless.plug.org.au (Postfix) with ESMTP id 7EE8F466C8for 
><plug at plug.org.au>; Thu, 18 May 2006 08:50:49 +0800 (WST)
>Received: from nz-out-0102.google.com (nz-out-0102.google.com 
>[64.233.162.195])by shameless.plug.org.au (Postfix) with ESMTP id 
>6BEAD451BEfor <plug at plug.org.au>; Thu, 18 May 2006 08:50:47 +0800 (WST)
>Received: by nz-out-0102.google.com with SMTP id n1so201405nzffor 
><plug at plug.org.au>; Wed, 17 May 2006 17:50:44 -0700 (PDT)
>Received: by 10.37.18.28 with SMTP id v28mr1650517nzi;Wed, 17 May 2006 
>17:50:44 -0700 (PDT)
>Received: by 10.36.250.47 with HTTP; Wed, 17 May 2006 17:50:44 -0700 (PDT)
>X-Message-Info: LsUYwwHHNt22EJKPCEqAqOe85PWBpUtIfImx1aBAxos=
>X-Spam-Checker-Version: SpamAssassin 3.1.0 (2005-09-13) on 
>tara2.wa.amnet.net.au
>X-Spam-Level: X-Spam-Status: No, score=-1.8 required=5.0 tests=AWL,BAYES_00 
>autolearn=ham version=3.1.0
>X-Envelope-To: trevor.phillips at gmail.com
>X-Original-To: plug at plug.org.au
>Delivered-To: plug at plug.org.au
>DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; 
>d=gmail.com;h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references;b=ghDdkVrVK+i5BBSgfHs4VSJNfejdfr8+LHUCNN/6IWpoSjGTI1Z+pjLfb2KhjIqiJ1ZQYrTFhzyd2pqtARqI/ODRfvVElQ8gBta+hn6UBTXwvpacf4Kdv1+UhrNSF3hwpOyfXhh81jNDKnXS4eRUqaaiqdprG2Xne0NcNw6zo/w=
>References: 
><BAY12-DAV84F74F2D8B9B9EAF97AD3BFA10 at phx.gbl><hiqrj3x56h.ln2 at shameless.plug.org.au>
>X-BeenThere: plug at plug.org.au
>X-Mailman-Version: 2.1.5
>Precedence: list
>List-Id: Perth Linux Users' Group mailing list <plug.plug.org.au>
>List-Unsubscribe: 
><http://www.plug.org.au/mailman/listinfo/plug>,<mailto:plug-request at plug.org.au?subject=unsubscribe>
>List-Archive: <http://www.plug.org.au/archives>
>List-Post: <mailto:plug at plug.org.au>
>List-Help: <mailto:plug-request at plug.org.au?subject=help>
>List-Subscribe: 
><http://www.plug.org.au/mailman/listinfo/plug>,<mailto:plug-request at plug.org.au?subject=subscribe>
>Errors-To: plug-bounces at plug.org.au
>X-DSPAM-Result: Whitelisted
>X-DSPAM-Confidence: 0.5816
>X-DSPAM-Probability: 0.0000
>X-DSPAM-Signature: 446bc4fb91931208918953
>Return-Path: plug-bounces at plug.org.au
>X-OriginalArrivalTime: 18 May 2006 00:51:11.0807 (UTC) 
>FILETIME=[28718CF0:01C67A15]
>
>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
>>
>>Phil,
>>don't turn that computer off!! :-)
>>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.
>.
>It is also good at finding and listing the types, locations, and
>sizes of inadvertently-deleted partitions, both primary and logical.
>It gives you the information you need to manually re-create them
>(using fdisk, cfdisk, sfdisk, etc.).
>.
>The guessed table can also be written to a file or (if you firmly
>believe the guessed table is entirely correct) directly to a disk
>device.
>....
>
>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 
>;-)
>
>Tim
>
>
>--
>Linux Counter user #273956
>_______________________________________________
>PLUG discussion list: plug at plug.org.au
>http://www.plug.org.au/mailman/listinfo/plug
>Committee e-mail: committee at plug.linux.org.au

_________________________________________________________________
FREE pop-up blocking with the new MSN Toolbar - get it now! 
http://toolbar.msn.click-url.com/go/onm00200415ave/direct/01/




More information about the plug mailing list