LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-27-2009, 03:47 AM   #1
vijay_babu1981
Member
 
Registered: Nov 2004
Location: india
Distribution: fedora 10
Posts: 82

Rep: Reputation: 19
Backup of disk using ddrescue


Hi

I plan to make a backup of my USB flash of size 8GB and copy the total contents on another 8GB flash.

I intend to use ddrescue for this purpose.

But I noticed that the destination disk is slightly smaller in size (may be 1 cylinder less). Can I still run ddrescue successfully or there is a chance of failure?

Regards
 
Old 10-28-2009, 08:03 AM   #2
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,831
Blog Entries: 15

Rep: Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669
I haven't used ddrescue but its name implies it relies on dd. The dd command is doing a byte for byte copy without caring whether there is anything on a specific sector or not so I'd expect this to fail if the target was smaller than the source.
 
Old 10-28-2009, 08:25 AM   #3
vijay_babu1981
Member
 
Registered: Nov 2004
Location: india
Distribution: fedora 10
Posts: 82

Original Poster
Rep: Reputation: 19
Quote:
Originally Posted by jlightner View Post
I haven't used ddrescue but its name implies it relies on dd. The dd command is doing a byte for byte copy without caring whether there is anything on a specific sector or not so I'd expect this to fail if the target was smaller than the source.
Dear jlightner,

Thanks for the reply. I took the chance and ran the ddrescue using smaller destination disk.

It worked fine. I have fedora linux operating system installed on the source disk (not live). After making the copy, I am able to boot using the destination disk and have not seen any problems yet. I hope it will keep on working.

Regards
 
Old 11-18-2009, 10:50 AM   #4
pokemaster
Member
 
Registered: Apr 2005
Location: Massachusetts, USA
Distribution: debian,ubuntu,slackware
Posts: 110

Rep: Reputation: 17
ddrescue is a separate tool, and only copies the necessary blocks. So long as you have no data on the "excess" space of your source drive, it will continue to work. You could shrink the FAT partition by a bit to make them the same size.
 
Old 11-18-2009, 11:25 AM   #5
kdelover
Member
 
Registered: Aug 2009
Posts: 311

Rep: Reputation: 36
there is a ubercool dd command tutorial check that out :-)
 
Old 05-31-2012, 02:39 PM   #6
gabthetech
LQ Newbie
 
Registered: May 2012
Posts: 3

Rep: Reputation: Disabled
Using DDRESCUE to recover HD

Hello, I have a question. I have a hard drive with some bad sectors, so I'm running DDRESCUE -d -f /dev/sda /dev/sdb...The two drives in question are both 40GB hard drives, but the source drive is 0.02GB larger than the destination drive. How do I tell DDRESCUE to truncate the data to fit onto the 40GB destination drive without failing. The fail message I get is "Write Error: No space left on device." I've actually already resized the partition on the source drive, leaving about 3-4GB of unused space, thinking that would be sufficient. But, it still returned the same error.

Thanks in advance,
Gabe
 
Old 05-31-2012, 03:07 PM   #7
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
Just ignore the error, I you have no data on the part it can't copy then no harm is done and it will work.
 
Old 05-31-2012, 04:07 PM   #8
gabthetech
LQ Newbie
 
Registered: May 2012
Posts: 3

Rep: Reputation: Disabled
Wink

Quote:
Originally Posted by TobiSGD View Post
Just ignore the error, I you have no data on the part it can't copy then no harm is done and it will work.
Thanks, I probably should have checked the partition table after the 2nd "fail", but I didn't cause I thought it had failed like the first one did.

Thanks for your help.
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
clone hard disk with: cat /dev/sda >/media/disk/backup deathalele Linux - Security 3 04-17-2009 12:29 AM
backup a failing disk to a larger disk gfem Linux - General 8 07-13-2007 07:19 PM
Advice needed: data recovery from NTFS disk using ddrescue and Ubuntu afzal_b Linux - Newbie 10 09-20-2006 09:14 AM
disk to disk backup for debian/Mempis on bootable cd-- advice loninappleton Linux - Software 3 05-27-2005 01:00 AM
can I backup a root disk and boot from the new backup disk linuxbkp Linux - Enterprise 3 10-15-2004 06:42 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:41 PM.

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