Results 1 to 8 of 8

Thread: Question about dd-rescue (sorry, this may be a re-post...)

  1. #1
    Junior Member registered user
    Join Date
    Sep 2004
    Posts
    12

    Question about dd-rescue (sorry, this may be a re-post...)

    Hi,

    Does anyone know what dd-rescue does with the "holes" -- i.e. does it fill them with junk and preserve the offset of the readable data that follows?

    Basically, I'm using Knoppix to rescue my wife's damaged NTFS partition. Her operating system won't even boot, but I'm able to view the files with Knoppix and copy them to another system over a network or just burn them directly with k3b.

    However -- some of the files can't be read (I/O errors -- presumably why her operating system can't mount the partition). More specifically -- _parts_ of those files can't be read. I would like to try to retrieve these files anyway. What I want to do is, for each file, to wind up with a file of the same length, along with any data that could be copied from the damaged file in its right offset. Granted, there would be "holes" in each file, for the parts that couldn't be read. But I don't think it would do me much good if the "holes" were dropped -- because then the offset would be wrong from anything after the first hole.

    Are there any other tools I should look at?

    Thanks,
    Yonatan

    Note: This may be a re-post; I fogot to enter a subject the 1st time and couldn't find my post on the forum.

  2. #2
    Junior Member registered user
    Join Date
    Sep 2004
    Posts
    12
    I think I found the answer in good old dd itself --

    "In 6.5 and beyond, use dd conv=ignerror, to have it do all the hard work itself, and also write zero's on the destination blocks that can't be read from the source."

    Can anyone confirm?

    Thanks,
    Yonatan

  3. #3
    Junior Member registered user
    Join Date
    Sep 2004
    Posts
    12

    Question about dd "ignerror" mode

    Yes, it's right there in the dd man page:

    ignerror Do not stop processing on an error at all. Unlike
    noerror, the read errors are skipped over if possible, by
    using lseek64(2), (if possible) and there is no limit on
    the number of errors. It is recommended that either ibs
    or bs be used, and set to the minimum size for the input
    device, in order to minimize the skipped data. This can
    sometimes allow disk drives to be copied even if they
    contain unreadable blocks, although the output copy will
    of course have blocks of missing (zero-filled) data.

    The quetion is, what number do I specify for bs for a hard drive (i.e. how do I know what the minimum size)?

  4. #4
    Senior Member registered user
    Join Date
    Jun 2004
    Posts
    788
    Since it's ntfs partition I would suggest you to try repair those bad sector first using xp cd. Boot to Recovery console and try chkdsk /f or chkdsk /r.

  5. #5
    Junior Member registered user
    Join Date
    Sep 2004
    Posts
    12

    Question about dd_rescue

    Thanks for the suggestion, but the first thing I did was to Google "Unmountable boot volume" and that came up with the Windows recovery console and CHKDSK. The problem is that CHKDSK failed with unrecoverable errors after 33 percent, and when I tried to Dir the C: drive from that so-called recovery console it said "failed to enumerate folders." Fortunately, Knoppix has no problem mounting the partition. Some files cannot be read because of I/O errors. I'm not sure if this means that there is a _physical_ problem with the drive or a _logical_ problem with the file system, but I'm afraid that it sounds like the former. Once I get all of the important data off of it, I'll need a way to try to figure out if there are physical problems with the drive. (I'll leave that exercise for a different post...)

    Anyway, the dd included in Knoppix 3.6 doesn't seem to have the ignerror feature (but just the noerror feature.) So that leaves me with dd_rescue.

  6. #6
    Senior Member registered user
    Join Date
    Jun 2004
    Posts
    788
    I personally use hd regenerator to recover bad blocks, and recently I tried a new salvationdata sector recovery utility to repair my dead maxtor hd. Amazingly that hd is back alive.
    http://www.salvationdata.com/

    By the way, you might want to try using dd_help. I never use dd_rescue, But from what is written, it will help you with dd_rescue.
    http://www.kalysto.org/utilities/dd_rhelp/index.en.html


  7. #7
    Junior Member registered user
    Join Date
    Sep 2004
    Posts
    12
    I tried dd_rescue and it worked great. I successfully recovered a 500 MB Outlook personal folders file. There were several i/o errors towards the end of the file, but Outlook opens it without trouble and the data is there.

    Anyway, thanks for those links, I'll need that info soon. BTW I am using a Maxtor.

  8. #8
    Oh hey, you guys seem to know HOW THE HELL this can be done, so please, I beg you because I'm really not good at those things - PLEASE HELP ME!

    My HDD crashed just a few minutes ago and WinXP doesn't boot anymore, saying that it can't initialize process1 (well, whatever that means...). So I tried CHKDSK, but it stops at 50% and doesn't even post an error message. After that, I tried Knoppix and now I'm here and don't know what to do - usually I don't use Linux, you know. However, I was able to mount drive c, but there are only two folders left (with nothing really important in them) - everything else, all my programs, system directories and work seem to be gone. When I accessed the same drive with the Midnight Commander, it posted an error message, saying that it couldn't show these directories because they didn't exists. Well, due to the fact that the MC knew about the names, I figure that there is an error within the file-allocation-table or something like that.

    This so far is my problem. I heard that I could recover such file losses with dd_rescue, but I have no idea how to use it. Could you give me something like an 'instruction-on-how-to-get-this-done-as-fast-as-possible'? Or is there a better method than using dd_rescue? Anything? Please, I beg you so much, I have to recover this data, heeeelp me.

Similar Threads

  1. help with win rescue
    By smokeyone in forum General Support
    Replies: 5
    Last Post: 10-14-2005, 07:24 PM
  2. Rescue
    By gum digger in forum Hardware & Booting
    Replies: 4
    Last Post: 03-27-2005, 12:15 PM
  3. Post Hdd install boot (lilo) question
    By bigjohn in forum Hdd Install / Debian / Apt
    Replies: 18
    Last Post: 10-04-2003, 06:43 PM
  4. Knoppix post-HD install question
    By dfield58 in forum Hdd Install / Debian / Apt
    Replies: 3
    Last Post: 04-19-2003, 06:30 PM
  5. Knoppix to the rescue!
    By aay in forum News
    Replies: 1
    Last Post: 03-31-2003, 09:59 PM

Posting Permissions

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


SUN Blade X6250 Server 8GB RAM DUAL PROCESSORS 594-4531-01 picture

SUN Blade X6250 Server 8GB RAM DUAL PROCESSORS 594-4531-01

$109.99



Dell PowerEdge FX2 FX2S Enclosure - 4x PowerEdge FC640 w/ 8x Gold 6132 112C 1TB picture

Dell PowerEdge FX2 FX2S Enclosure - 4x PowerEdge FC640 w/ 8x Gold 6132 112C 1TB

$2699.99



Dell PowerEdge M620 0F9HJC Blade Server 2*E5-2670 2.60GHz 192GB RAM 2*300GB SAS picture

Dell PowerEdge M620 0F9HJC Blade Server 2*E5-2670 2.60GHz 192GB RAM 2*300GB SAS

$103.99



HP ProLiant BL460c G9 (Gen9) 2x E5-2670V3 12 Core 3.1GHz No Ram or No Drives picture

HP ProLiant BL460c G9 (Gen9) 2x E5-2670V3 12 Core 3.1GHz No Ram or No Drives

$59.98



DELL M630 BLADE SERVER x2 XEON E5-2660V3 @ 2.6GH H730 PERC HDD CADDIES 16GB FC picture

DELL M630 BLADE SERVER x2 XEON E5-2660V3 @ 2.6GH H730 PERC HDD CADDIES 16GB FC

$50.00



HP ProLiant BL460c Server Blade (2 x  CPU) 24GB RAM/No Drives  picture

HP ProLiant BL460c Server Blade (2 x CPU) 24GB RAM/No Drives

$45.60



Dell PowerEdge M630 Blade Server 1x Xeon E5-2630 v4 CPU / Motherboard P/N 0R10KG picture

Dell PowerEdge M630 Blade Server 1x Xeon E5-2630 v4 CPU / Motherboard P/N 0R10KG

$69.99



Dell PowerEdge C6400 Blade Server Chassis w/ 2x 2400W PSUs - Preproduction Model picture

Dell PowerEdge C6400 Blade Server Chassis w/ 2x 2400W PSUs - Preproduction Model

$349.00



Dell PowerEdge FX2s CTO Blade 4 Slot 2U Chassis 2x 2000W picture

Dell PowerEdge FX2s CTO Blade 4 Slot 2U Chassis 2x 2000W

$399.00



Cisco UCS 5108 Blade Server Chassis Enclosure N20-C6508 4x PSU 8x Fans 2x Fabric picture

Cisco UCS 5108 Blade Server Chassis Enclosure N20-C6508 4x PSU 8x Fans 2x Fabric

$139.99