LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
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

Reply
 
Search this Thread
Old 02-18-2013, 11:10 PM   #1
the dsc
Member
 
Registered: May 2009
Distribution: Debian
Posts: 136
Blog Entries: 65

Rep: Reputation: 33
Question Should I prefer some specific sort of backup tool in a dying hard drive situation?


I currently have an HDD that's disabled/turned off because it was receiving a SMART warning "BAD, backup and replace".

I was wondering if some backup strategies are better/safer than others in this sort of situation. Such as simply mounting the HDD, searching for the most important stuff and copying it just as if it was a normal drive, versus using something like dd or fsarchiver.

I thought that dd-type things would be superior as they would (I guess) access the disk in a more crude manner that would perhaps require less mechanical action than searching and copying files as a mounted filesystem, even though it would copy everything rather than just a selection. And by requiring less mechanical action I guess it reduces the odds of the disk actually dying during backup.

In the other hand I've read in some forum, maybe even here, someone recommending to do a backup (I guess it was in a similar situation, failing disk) with the mounted filesystem, but I don't recall the reasoning behind it, nor could I find anything relevant yet.

A semi-unrelated question is whether copying stuff on a mounted file system can be done in significantly different ways, with different software. I've once used grsync for some copying of this sort and I had the impression that it was copying way faster (the same disk, partition type, and mounting options) than with a file manager (the one I use more regularly is Konqueror). But it could well be just an "illusion" from the different progress displays.
 
Old 02-19-2013, 12:36 AM   #2
EDDY1
Guru
 
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 5,077

Rep: Reputation: 448Reputation: 448Reputation: 448Reputation: 448Reputation: 448
If it's a pc & not server then I would get a new hdd & install new OS then mount & copy important docs & whatever I thought was important to me, then possible checking for other alternatives of backing up or trying to preserve existing OS. Just my personal opinion.
 
1 members found this post helpful.
Old 02-19-2013, 06:06 AM   #3
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Hanover, Germany
Distribution: Gentoo
Posts: 15,403
Blog Entries: 2

Rep: Reputation: 3993Reputation: 3993Reputation: 3993Reputation: 3993Reputation: 3993Reputation: 3993Reputation: 3993Reputation: 3993Reputation: 3993Reputation: 3993Reputation: 3993
It depends on the type of failure and the amount of data you have to recover. If you have to recover only 500MB of data on a 2TB disk the file-based approach may put much less stress on the disk (in the case that bad blocks aren't preventing this approach). With larger amounts of data and the possibility of bad blocks preventing a file-based copy I would recommend to use specialized tools, like ddrescue, dd_rescue or other forensic tools, for the recovery of your data.

Quote:
Originally Posted by the dsc View Post
I was wondering if some backup strategies are better/safer than others in this sort of situation.
You may have noticed that I didn't use the word backup in the above paragraph, just because what you are doing is not a backup. A backup is done on known good data, not on failing disks with possibly corrupted data. The best backup strategy is making backups while your hardware works, for the case that in the future it possibly doesn't work anymore.
Making "backups" when the hardware is already failing is like fastening the seatbelt after your car crashed into a wall.
 
1 members found this post helpful.
Old 02-19-2013, 12:12 PM   #4
the dsc
Member
 
Registered: May 2009
Distribution: Debian
Posts: 136
Blog Entries: 65

Original Poster
Rep: Reputation: 33
Thanks, EDDY1 and TobiSGD. I was thinking about doing something like that, try copy "normally" whatever I find the most interesting to keep, and then try another approach for a more careful analysis of "everything". Regardless of the "best strategy" regarding the odds of ultimate hdd failure, it's perhaps safer as I've never used anything like dd or other stuff, so I could simply fail at my first attempt.


Quote:
Originally Posted by TobiSGD View Post
IThe best backup strategy is making backups while your hardware works, for the case that in the future it possibly doesn't work anymore.
Making "backups" when the hardware is already failing is like fastening the seatbelt after your car crashed into a wall.
Yeah, I'm seriously considering buying 2 new hdds instead of just one right away, and leave one always nearly empty, just swap and readily stuff I don't really care much. Funny that after 20 years of having PCs with hdds, only in the last few years I've had two hard disk failures/warnings, both from new hdds. It used to be that the hdds would outlive the PCs, and I'd just replace them when they were just too small for current standards. I guess my power supply and/or energy grid of my current location are probably the culprit(s).
 
  


Reply

Tags
backup, hdd


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
How to know if hard drive is dying? alan_ri Linux - Hardware 26 05-28-2008 12:11 PM
Hard drive dying? Lindy Linux - Hardware 2 11-25-2006 03:03 AM
My hard drive is dying... what to do? terence8888 Linux - Software 6 11-23-2006 03:58 PM
Is this hard drive dying? newmoon Linux - Hardware 5 11-14-2005 02:46 PM
Hard drive dying, good backup method cadj Linux - Software 3 12-14-2004 07:28 PM


All times are GMT -5. The time now is 12:39 PM.

Main Menu
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