Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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?
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.
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.
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.