Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux? |
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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
 |
|
04-03-2022, 01:00 PM
|
#16
|
LQ Guru
Registered: Aug 2016
Location: SE USA
Distribution: openSUSE 24/7; Debian, Knoppix, Mageia, Fedora, OS/2, others
Posts: 6,501
|
Quote:
Originally Posted by ondoho
dd the complete drive to a file on a healthy drive with sufficient space, and work on that copy, NOT the physical drive itself.
|
ddrescue should create a more complete file.
|
|
|
04-03-2022, 02:18 PM
|
#17
|
Senior Member
Registered: Jan 2007
Location: Wild West Wales, UK
Distribution: Linux Mint 22 MATE, Peppermint OS-Devuan, EndeavourOS, antiX
Posts: 4,359
|
mrokii,
One link for using ddrecue to clone a hard drive:
https://datarecovery.com/rd/how-to-c...with-ddrescue/
|
|
|
04-04-2022, 11:59 AM
|
#18
|
LQ Addict
Registered: Dec 2013
Posts: 19,872
|
Quote:
Originally Posted by mrmazda
ddrescue should create a more complete file.
|
How can it be more complete than dd'ing the whole drive?
|
|
|
04-04-2022, 12:29 PM
|
#19
|
Senior Member
Registered: Feb 2007
Location: UK
Distribution: Debian
Posts: 3,918
|
Quote:
Originally Posted by ondoho
How can it be more complete than dd'ing the whole drive?
|
Apparently it has logic to skip bad/erroring parts, so it can potentially get more data before a drive fails completely.
https://www.gnu.org/software/ddrescue/
Quote:
Originally Posted by https://www.gnu.org/software/ddrescue/manual/ddrescue_manual.html#Algorithm
GNU ddrescue is not a derivative of dd, nor is related to dd in any way except in that both can be used for copying data from one device to another. The key difference is that ddrescue uses a sophisticated algorithm to copy data from failing drives causing them as little additional damage as possible.
...
Ddrescue manages efficiently the status of the rescue in progress and tries to rescue the good parts first, scheduling reads inside bad (or slow) areas for later. This maximizes the amount of data that can be finally recovered from a failing drive.
The standard dd utility can be used to save data from a failing drive, but it reads the data sequentially, which may wear out the drive without rescuing anything if the errors are at the beginning of the drive.
|
Shame that explanation isn't more up-front/explicit in the man page.
|
|
|
04-04-2022, 12:40 PM
|
#20
|
LQ Guru
Registered: Aug 2016
Location: SE USA
Distribution: openSUSE 24/7; Debian, Knoppix, Mageia, Fedora, OS/2, others
Posts: 6,501
|
Quote:
Originally Posted by ondoho
How can it be more complete than dd'ing the whole drive?
|
Have you no familiarity with ddrescue? dd retries are limited (non-existent?). ddrescue retries are configurable, IIRC up to unlimited. It compares multiple tries before deciding whether a sector has been successfully read. Difficult reads are postponed until after first pass is complete, then going back to try again later, in order to preserve whatever life may remain. ddrescue also (optionally) logs and provides continually updated status.
|
|
|
04-04-2022, 01:02 PM
|
#21
|
LQ Addict
Registered: Dec 2013
Posts: 19,872
|
Thanks both. I'd have phrased it differently, but I see what you mean now. I rarely clone disks so no, I'm not familiar with it.
|
|
|
All times are GMT -5. The time now is 02:47 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|