Re: dd Partition Recovery Procedure?!?



ray <ray@xxxxxxxxxx> wrote:

On Fri, 28 Dec 2007 10:44:55 -0500, Doug Mitton wrote:

x0054 <x0054@xxxxxxxxx> wrote:

Doug Mitton <doug_mitton@xxxxxxxxxxxxx> wrote in
news:31p7n39gdii0pjh3kptoia4ug1lt5k583n@xxxxxxx:

There have been some threads in the past several months on how to
recover a hard drive installation using the `dd` command between to
mismatched drive sizes. I just can't seem to find them. Does anyone
have any links or a procedure?

What I'm referring to is ... `dd` the drive image from a smaller
partition to a larger partition ... now the problem is the larger
partition thinks it is the same size as the smaller one. There had
been a thread at one point of some commands to recover the lost space
... for both Linux and MSWin as I (seem to) remember.

Any pointers or comments would be appreciated. TIA!

What type of file system are you using? I believe that there are commands
to extend or grow most file systems. For instance, I know for sure that
it's possible with riserfs. Let us know which file system you are using and
I am sure some one can help, this is a pretty simple thing I believe,
though I never had to do it my self.

- Bogdan

I'm using ext3. I thought there were some "detailed" instructions to
do this but maybe I was mistaken. Thanks!

If I properly understand your question, there should really be no problem.
When I replaced the hard drive in my laptop with a larger one, I backed
the partitions up to an external drive using partimage from a live CD -
then I swapped drives - then I restored to the new drive using partimage
from a Live CD. At this point, all partitions were exactly the same as
they had been, so I used gparted from the Live CD to resize the ones I
wanted to.

There isn't really a problem ... I accomplished the task using
`\cp -a /sourcedir /destdir`

I was trying to find some old information that I had read once in one
of the "general" Linux groups about some "manual" method of "fixing" a
drive image created by `dd` between mismatched drive sizes. The `cp`
commands seems slower than `dd` so I was looking for alternatives for
a future recovery.

I'll have to experiment with `partimage`, I haven't used it for a VERY
long time. Thanks for the response.

--
------------------------------------------------
http://www3.sympatico.ca/dmitton
SPAM Reduction: Remove "x." from my domain.
------------------------------------------------
.



Relevant Pages

  • Re: OT: Computer Help
    ... I've been reading and it looks like it is hopeless to restore it now ... when I look at the drives something doesn't add up. ... that will recover things from NTFS, ... If the partition tables are intact, ...
    (rec.crafts.metalworking)
  • Re: Recovering lost or damaged partition
    ... Sometimes it costs if one wants to recover data, you paid a minimal price compared to what could have been. ... win98se on another box tried to "fix" the WD partition ... From the looks of it the drives partition table is damaged/corrupt. ...
    (microsoft.public.windowsxp.hardware)
  • Re: Stolen data by harddisk recovery?
    ... > story about how easy it is to recover data from a harddisk, ... drives with bigger drives. ... I had the operating system on partition1 and the data on partition 2, ... I used the Disk Manager to activate the second partition on the first ...
    (alt.computer.security)
  • Re: PLEASE HELP! LOST ALL DATA ON EXTERNAL DRIVE
    ... >actually have 3 external drives), ... command ran at all it will have formatted the *drive*, and not the partition. ... use a disc editor to search for and recover your most important data. ... The Linux Emporium - the source for Linux in the UK ...
    (comp.os.linux.misc)
  • Re: Recover Data
    ... Windows but says something about application trying to access hard disk. ... software has worked with other hard drives I have with partitions that ... try to recover the partition information. ... Meaning there no partition. ...
    (microsoft.public.windowsxp.general)