LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 06-30-2019, 01:04 PM   #1
Yetoo
Member
 
Registered: Dec 2015
Distribution: Fedora, Debian, Ubuntu, couldn't install gentoo
Posts: 44

Rep: Reputation: 5
When is it fine to cancel ddrescue?


Here's the situation:

I tried using a Clonezilla live usb to clone a failing hard drive to a backup drive. Just for clarity, the failing hard drive is in an external enclosure (sdc) and the backup drive is a solid state connected via sata (sda). sdc contained a Windows 8.1 installation. When I tried the clone, it cloned all the partitions except for sdc4 successfully. sdc4 is the parition with the OS installation. I tried cloning the sdc4 partition with clonezilla, but it failed there. I decided to eventually use ddrescue on the same livecd to clone just the partition as the rest of the partitions were able to copy over fine from the clonezilla clone. The command I ran was
Code:
sudo ddrescue /dev/sdc4 /dev/sda4 --verbose -f
. It's at a point where it says 99.99% rescued but it's scraping bad-blocks. It also indicates that there is 0 non-tried data left. I don't have a lot of time at the moment to wait for the scrapping to complete.

My question is whether it is fine to cancel the clone at this point. The data lost at this point is very little and I can recover anything if there are discrepancies. What are the processes that occur after the scraping procedure? I'm a little nervous because I didn't set a logfile to log badblocks so I could restart where I left off.

Last edited by Yetoo; 06-30-2019 at 01:06 PM. Reason: changed /dev/sda to /dev/sda4 in the command I used.
 
Old 06-30-2019, 01:33 PM   #2
Keruskerfuerst
Senior Member
 
Registered: Oct 2005
Location: Horgau, Germany
Distribution: Manjaro KDE, Win 10
Posts: 2,199

Rep: Reputation: 164Reputation: 164
When /dev/sdc4 contained the root partiton, then it might be the best to install the OS on the SSD again.
 
Old 06-30-2019, 01:42 PM   #3
Yetoo
Member
 
Registered: Dec 2015
Distribution: Fedora, Debian, Ubuntu, couldn't install gentoo
Posts: 44

Original Poster
Rep: Reputation: 5
Quote:
Originally Posted by Keruskerfuerst View Post
When /dev/sdc4 contained the root partiton, then it might be the best to install the OS on the SSD again.
I was trying to avoid that. My goal is to be able to run chkdsk from a Windows 8.1 recovery environment usb and to not to take forever due to unreadable blocks. The problem is the computer the ssd is supposed to go into was initially preinstalled with Windows 8 but updated to 8.1. I'm just paranoid that reinstalling 8.1 won't accept the license. Now that I'm writing it, I think it should, but I just want to avoid reinstall at the moment.
 
Old 06-30-2019, 02:45 PM   #4
rknichols
Senior Member
 
Registered: Aug 2009
Distribution: Rocky Linux
Posts: 4,779

Rep: Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212
You can cancel ddrescue at any time. The destination will contain everything that has been successfully read, and the blocks corresponding to unreadable source blocks will be left unchanged from whatever they contained before ddrescue was run. If you like, you can examine the mapfile to see what blocks were not successfully read, and then use techniques in the Bad Block HOWTO to determine which, if any, files might be affected.

Last edited by rknichols; 06-30-2019 at 02:46 PM.
 
1 members found this post helpful.
Old 06-30-2019, 03:39 PM   #5
Yetoo
Member
 
Registered: Dec 2015
Distribution: Fedora, Debian, Ubuntu, couldn't install gentoo
Posts: 44

Original Poster
Rep: Reputation: 5
Just as an update, I cancelled ddrescue and it looks like the automatic repair checked and repaired the drives with the ssd plugged in. There seems to be some corruption with system and program files and I am investigating whether this is the case for user data.
 
Old 07-06-2019, 12:40 PM   #6
Yetoo
Member
 
Registered: Dec 2015
Distribution: Fedora, Debian, Ubuntu, couldn't install gentoo
Posts: 44

Original Poster
Rep: Reputation: 5
I checked the user data and it looked like everything was there. I fixed the broken programs but either reinstall or updating. Some system utilities like dism and the backup system files in the win store seemed to be corrupted, but I think it was like that before I cloned.
 
1 members found this post helpful.
  


Reply

Tags
clonezilla, data integrity, ddrescue



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
Same user is fine on shell, not fine from Apache, weird.. demia Linux - Server 4 04-30-2009 01:09 AM
LXer: Why Microsoft's New EU Fine is Just Fine LXer Syndicated Linux News 0 02-28-2008 04:50 PM
smbclient fine, smbmount NOT fine hyllplan Linux - Software 4 07-01-2005 07:45 AM
can not cancel printer job? heero82 Linux - Hardware 4 07-20-2003 07:49 PM
cancel shutdown kc8tbe Linux - General 3 06-02-2003 08:39 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 02:07 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
Open Source Consulting | Domain Registration