Results 1 to 6 of 6

Thread: write image of bad hdd to new one with dd

  1. #1
    Join Date
    Dec 2007
    Location
    The last place I look
    Beans
    Hidden!
    Distro
    Ubuntu 10.04 Lucid Lynx

    Exclamation write image of bad hdd to new one with dd

    howdy all,

    one of my users turned up with a very dead ntfs partition on a failing drive. I need to try to recover some files off it, but the partition is in pretty bad shape.
    I made an image of the affected drive with
    Code:
    dd if=/dev/sdd1 of=/media/external_disk/backup.iso conv=noerrors
    (I know, it's not actually an ISO but I hate not having extensions.)

    so now that I have an image, i want to write it out to another hdd, but that is where i'm getting stuck.

    I've tried using dd to write it to /dev/sdc (just another hdd) with:
    Code:
    sudo dd if=/media/external_disk/backup.iso of=/dev/sdc
    but after writing it failed to mount (mount said volume did not have partition table, after writing the image).

    I created a partition table and a single partition (larger than the source one) as an unformatted type on sdc and , with
    Code:
    sudo dd if=/media/external_disk/backup.iso of=/dev/sdc1
    tried to write it off again, but I got a message that it does not recognize the partition on the drive as NTFS. fdisk says the type is "Linux"


    so any idea what I'm doing wrong with dd? or should i assume the image is correctly written and concentrate on fixing the partition itself now that the media is mutable?

    thanks folks!
    Last edited by doas777; August 6th, 2009 at 12:27 AM.

  2. #2
    Join Date
    Dec 2007
    Location
    The last place I look
    Beans
    Hidden!
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: write image of bad hdd to new one with dd

    bump

  3. #3
    Join Date
    Oct 2008
    Location
    Cambrils (Tarragona)
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: write image of bad hdd to new one with dd

    maybe the partition is so damaged it won't mount?
    Busques ajuda? Comença pel wiki de l'equip català!

  4. #4
    Join Date
    Dec 2007
    Location
    The last place I look
    Beans
    Hidden!
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: write image of bad hdd to new one with dd

    Quote Originally Posted by PatrickVogeli View Post
    maybe the partition is so damaged it won't mount?
    very possible, but there are intact files that photorec can see. unfortunately it (photorec) won't look for the filetypes I needs(.aspx, .cs, .vb, etc). I just rewrote it with ddrescue, so tomorrow I can see if there is anything to be done about recovering the partition table.

    Thanks

  5. #5
    Join Date
    Aug 2008
    Beans
    Hidden!

    Re: write image of bad hdd to new one with dd

    Have you defined the new partition on the target disk, e.g. using gparted?
    harmless

  6. #6
    Join Date
    Dec 2007
    Location
    The last place I look
    Beans
    Hidden!
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: write image of bad hdd to new one with dd

    I did, on the second attempt. but alas, no luv. I did try working on the partition itself with some linux and windows tools (ntfsfix, dti-partition editor, and a couple file scourers), but it looks like no tools I've found seem to be able to parse the begining and end of .net source files. needless to say, my first response to this issue was to train him on sourcesafe, but I digress.

    I've had to give up on this sucker for now, but i'm keeping the image arround, just because it has presented me a challenge, so if anyone has any ideas on raw data recovery, please post.

    thanks everyone,
    franklin

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •