-
Junior Member
registered user
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.
-
Junior Member
registered user
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
-
Junior Member
registered user
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)?
-
Senior Member
registered user
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.
-
Junior Member
registered user
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.
-
Senior Member
registered user
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
-
Junior Member
registered user
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.
-
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
-
By smokeyone in forum General Support
Replies: 5
Last Post: 10-14-2005, 07:24 PM
-
By gum digger in forum Hardware & Booting
Replies: 4
Last Post: 03-27-2005, 12:15 PM
-
By bigjohn in forum Hdd Install / Debian / Apt
Replies: 18
Last Post: 10-04-2003, 06:43 PM
-
By dfield58 in forum Hdd Install / Debian / Apt
Replies: 3
Last Post: 04-19-2003, 06:30 PM
-
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
-
Forum Rules

16GB KIT (2x8GB) DDR3 Gamer Desktop RAM PC3 MIXED BRANDS VIPER VENGEANCE FURY
$10.00

Netac DDR4 32GB 16GB DDR4 3200MHz UDIMM C16 Desktop Internal Memory RAM Kit
$99.99

Samsung 128GB (4x32GB) DDR4 PC4-2666V ECC Server RAM 288-Pin M393A4K40CB2-CTD6Y
$699.99

Major Brand 16GB (2x8GB) PC3-12800U DDR3-1600MHz DDR3-12800 DESKTOP RAM NON-ECC
$29.99

A-Tech 8GB DDR3 1600 PC3-12800 Laptop SODIMM 204-Pin Memory RAM PC3L DDR3L 1x 8G
$21.68

DDR4 Laptop RAM 4GB 8GB 16GB 32GB 2400 2666 3200 Samsung Hynix
$66.00

G.SKILL FLARE X5 64GB (2 x 32GB) 6000 MT/s DDR5 (AMD EXPO + INTEL XMP) *CL30*
$785.00

RAMAXEL Lenovo 32GB LPDDR5X CAMM2 7500MHz Laptop RAM | UNTESTED
$445.00

Crucial Ballistix Tracer 2GB (2x1GB) DDR2-800 PC2-6400 240-Pin DIMM
$145.00

Dell 16GB PC4-21300 (DDR4-2666) Memory (SNPPWR5TC16G)
$89.99