LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 06-11-2005, 04:23 PM   #1
SDraconis
LQ Newbie
 
Registered: Apr 2005
Distribution: Debian Sarge, Gentoo
Posts: 16

Rep: Reputation: 0
dd retry on error?


I am trying to backup a hard drive partition with dd, but having very odd results. It stops with an Input/Output error, but not always on the same point. (Sometimes 300-some MB, sometimes after 1 or 2 GB). I know there's the sync and noerror options to keep reading after an error and just write 0's to the file, but that solution wouldn't be good for me since it seems that certain things are only unreadable sometimes. Is there any way to simply make dd retry a block if it fails? Alternatively, is there any other good util for making an image of total drive or drive partition (ideally such that I can mount the image as a loop device just like with a dd image)?

For more info on the weird drive: I am able to e2fsck the partition just fine. I haven't actually had any problems with it before. I just can't seem to back it up.

Last edited by SDraconis; 06-11-2005 at 04:26 PM.
 
Old 06-11-2005, 06:59 PM   #2
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Virginia, USA
Distribution: Debian 12
Posts: 8,347

Rep: Reputation: 552Reputation: 552Reputation: 552Reputation: 552Reputation: 552Reputation: 552
"I am trying to backup a hard drive partition with dd, but having very odd results."

Backing up and restoring with dd is a very error prone backup method. I highly recommend that you switch to a backup and restore method based on tar.

------------------------------
Steve Stites
 
Old 06-11-2005, 07:03 PM   #3
SDraconis
LQ Newbie
 
Registered: Apr 2005
Distribution: Debian Sarge, Gentoo
Posts: 16

Original Poster
Rep: Reputation: 0
Unfortunately, backing up with dd is the only way I know of to get an image that's mountable as a block device and also has bootsector info and such.
 
Old 06-12-2005, 12:43 AM   #4
zackarya
Member
 
Registered: Jul 2003
Distribution: OpenSuse 10, Debian
Posts: 152

Rep: Reputation: 30
The two drives have to be physically identical or you'll get some weird sync errors. You didn't
say if they were the same or not so I'm not sure if that'll help or not.

Zack
 
Old 06-12-2005, 01:20 AM   #5
SDraconis
LQ Newbie
 
Registered: Apr 2005
Distribution: Debian Sarge, Gentoo
Posts: 16

Original Poster
Rep: Reputation: 0
Oh, I should have mentioned that I am backing up to an image file and not to another drive. My intent was to mount it as a loop device and make changes if I needed to and/or then restore it later to the same drive if the development expiriment I was running on it happened to fail. (I suppose in this case since there were read errors on the drive that I would prob. restore it to a same sized partition later, but I still need to get it backed up to the image file first).
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Automount fails and doesn't retry asmithumd Linux - Networking 0 05-23-2005 10:16 AM
how to set a sshd retry limit Finlay Linux - Networking 6 08-27-2004 04:20 PM
how to retry after kernel panic Mike-BB Linux - Software 1 08-11-2004 02:03 AM
kbear/gftp and retry time delos Linux - Software 2 07-21-2004 01:08 AM
urpmi how to avoid some files missing error (tho works on retry) peb Linux - Newbie 0 01-09-2004 09:23 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 06:22 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration