LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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, 04: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, 09:03 AM   #2
MensaWater
Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 6,028
Blog Entries: 5

Rep: Reputation: 791Reputation: 791Reputation: 791Reputation: 791Reputation: 791Reputation: 791Reputation: 791
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, 09: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, 11: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, 12:25 PM   #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, 03: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, 04:07 PM   #7
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Hanover, Germany
Distribution: Main: Gentoo Others: What fits the task
Posts: 15,653
Blog Entries: 2

Rep: Reputation: 4095Reputation: 4095Reputation: 4095Reputation: 4095Reputation: 4095Reputation: 4095Reputation: 4095Reputation: 4095Reputation: 4095Reputation: 4095Reputation: 4095
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, 05: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


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 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 01:29 AM
backup a failing disk to a larger disk gfem Linux - General 8 07-13-2007 08:19 PM
Advice needed: data recovery from NTFS disk using ddrescue and Ubuntu afzal_b Linux - Newbie 10 09-20-2006 10:14 AM
disk to disk backup for debian/Mempis on bootable cd-- advice loninappleton Linux - Software 3 05-27-2005 02:00 AM
can I backup a root disk and boot from the new backup disk linuxbkp Linux - Enterprise 3 10-15-2004 07:42 PM


All times are GMT -5. The time now is 11:00 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration