The time now is Mon 23 Apr 2018, 02:10
All times are UTC - 4 |
Author |
Message |
labbe5
Joined: 13 Nov 2013 Posts: 1148 Location: Canada
|
Posted: Mon 24 Apr 2017, 11:53 Post subject:
ddrescue Subject description: using ddrescue for rescuing failing HD or partition |
|
ddrescue is not derived from dd. ddrescue uses an algorithm that copies data from failing hard drives if using ‘mapfiles’ or ‘logfiles’ only the needed blocks are read. Here is an example command.
ddrescue -d -r5 /dev/sdX test.img test.logfile
The -d is telling ddrescue to use the disk via direct access and to ignore the kernels cache.
-r5 tells it to try 5 times before giving up if your sure your drive is failing you may have to skip this option attempting ddrescue on a failing drive too many times may cause more trouble than it aims to solve.
/dev/sdX again replace the x for the drive your using ddrescue on with the help of lsblk if you wanted to use it on a specific partition you would make it /dev/sdX1 or /dev/sdX2 respectively.
Test.img – is the name of the file
test.logfile – in short always use a logfile it means you can start from where you left off if you need to or to retry some stubborn bad sectors on a HDD without this logfile you would have to start all over again.
This how-to is part of a website :
http://morpheusarch.co.uk/blog/2016/08/15/morpheusarch-linux-documentation/
|
Back to top
|
|
 |
Sylvander
Joined: 15 Dec 2008 Posts: 4327 Location: West Lothian, Scotland, UK
|
Posted: Mon 24 Apr 2017, 16:18 Post subject:
|
|
I tried it and liked it.
Here's my thread made at the time [2011]:
Anyone know how to use ddrescue [NOT dd_rescue]?
|
Back to top
|
|
 |
labbe5
Joined: 13 Nov 2013 Posts: 1148 Location: Canada
|
Posted: Tue 02 May 2017, 11:12 Post subject:
gddrescue Subject description: using ddrescue to rip DVD encrypted or not |
|
https://unix.stackexchange.com/questions/119823/ripping-dvd-in-debian-wheezy#119826
I use MakeMKV to rip DVD, and Handbrake to compress output files when needed, but there is another way to rip DVD using ddrescue.
If you don't care about the format, you can rip to an image of the DVD (as opposed to ripping to a video format, e.g. MKV, MP4, avi etc.).
For this I use GNU ddrescue -- it's available as gddrescue in Debian. Note that the binary is named ddrescue.
To rip, first install gddrescue and then use the following command:
ddrescue /dev/sr0 dvd_name.img dvd_name.log
The latter is the log file. If for some reason you need to halt the rip, having a log file enables you to start where you left off.
Using gddresue has the added benefit of the resulting image being as close as possible to the original. If you have two (or more) copies of the same DVD, but both are scratched, you may be able to make one perfect copy using gddrescue on both.
Supposedly, encrypted DVD can be ripped as well using ddrescue. See how with link above.
|
Back to top
|
|
 |
tallboy

Joined: 21 Sep 2010 Posts: 907 Location: Oslo, Norway
|
Posted: Wed 03 May 2017, 11:36 Post subject:
|
|
http://www.gnu.org/software/ddrescue/manual/ddrescue_manual.html wrote: | Never try to rescue a r/w mounted partition. The resulting copy may be useless. It is best that the device or partition to be rescued is not mounted at all, not even read-only.
Never try to repair a file system on a drive with I/O errors; you will probably lose even more data. |
Make sure that the drive is not mounted.
How can one find what type of errors there are, without doing more damage to a corrupt HD?
tallboy
_________________ True freedom is a live Puppy on a multisession CD/DVD.
|
Back to top
|
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|