LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 01-28-2014, 04:34 PM   #1
Nederjaard
LQ Newbie
 
Registered: Feb 2012
Location: Yerseke, The Netherlands
Distribution: Kubuntu 12.10
Posts: 17

Rep: Reputation: Disabled
Data recovery from external HDD


Dear Forum,

Although I've been using Kubuntu now for some three years, I still consider myself a rookie, so here goes...
I have an external Freecom HDD of 300 GB of almost 10 years old. It still functioned well until some weeks ago. All of a sudden, Dolphin would not open the disk anymore, although the percentage of the disk that was used (shown in a little blue bar underneath the disk label) did show. I have all sorts of data on it, and would like to create an image on another external HDD to rescue what I need and see if a good format would make it usable again (is this a correct train of thought ?)

A quick search on the web showed me that ddrescue, or gddrescue as it is called, was the place to be.
I tried following the advice on https://help.ubuntu.com/community/Da...ystem_or_drive

So I freed up a lotof space on another external of 1 TB (My Book). My damaged FREECOM HDD is 300 GB, and about 50% occupied. On the 1 TB HDD, I have about 240 GB free, so that should work.
The syntax I used is:
Code:
sudo ddrescue -r 3 /media/FREECOM HDD /media/My Book/Backups/freecom/image /media/My Book/Backups/freecom/logfile
To which I got:
Code:
ddrescue: Too many files.
So, I resorted to:
Code:
sudo ddrescue --no-split /media/FREECOM HDD /media/My Book/Backups/freecom/image /media/My Book/Backups/freecom/logfile
Which resulted again in:
Code:
ddrescue: Too many files.
Now, I can tell you I've looked all over the place and more of that, but that's not true. I'm wondering if I'm doing fundamentally wrong, or that it something with ddrescue...

Any ideas ?
Thanks heaps in advance !

Last edited by Nederjaard; 01-28-2014 at 04:37 PM.
 
Old 01-28-2014, 06:50 PM   #2
/dev/random
Member
 
Registered: Aug 2012
Location: Ontario, Canada
Distribution: Slackware 14.1, LFS-current, NetBSD 6.1.3
Posts: 262

Rep: Reputation: 101Reputation: 101
Quote:
Originally Posted by Nederjaard View Post
Dear Forum,

Although I've been using Kubuntu now for some three years, I still consider myself a rookie, so here goes...
I have an external Freecom HDD of 300 GB of almost 10 years old. It still functioned well until some weeks ago. All of a sudden, Dolphin would not open the disk anymore, although the percentage of the disk that was used (shown in a little blue bar underneath the disk label) did show. I have all sorts of data on it, and would like to create an image on another external HDD to rescue what I need and see if a good format would make it usable again (is this a correct train of thought ?)

A quick search on the web showed me that ddrescue, or gddrescue as it is called, was the place to be.
I tried following the advice on https://help.ubuntu.com/community/Da...ystem_or_drive

So I freed up a lotof space on another external of 1 TB (My Book). My damaged FREECOM HDD is 300 GB, and about 50% occupied. On the 1 TB HDD, I have about 240 GB free, so that should work.
The syntax I used is:
Code:
sudo ddrescue -r 3 /media/FREECOM HDD /media/My Book/Backups/freecom/image /media/My Book/Backups/freecom/logfile
To which I got:
Code:
ddrescue: Too many files.
So, I resorted to:
Code:
sudo ddrescue --no-split /media/FREECOM HDD /media/My Book/Backups/freecom/image /media/My Book/Backups/freecom/logfile
Which resulted again in:
Code:
ddrescue: Too many files.
Now, I can tell you I've looked all over the place and more of that, but that's not true. I'm wondering if I'm doing fundamentally wrong, or that it something with ddrescue...

Any ideas ?
Thanks heaps in advance !
looks like you arent using escape characters when using spaces. indead of FREECOM HDD try FREECOM\ HDD and My\ Book
 
Old 01-28-2014, 07:02 PM   #3
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,332
Blog Entries: 55

Rep: Reputation: 3533Reputation: 3533Reputation: 3533Reputation: 3533Reputation: 3533Reputation: 3533Reputation: 3533Reputation: 3533Reputation: 3533Reputation: 3533Reputation: 3533
Additionally I should point out you shouldn't do that:
Quote:
Originally Posted by Nederjaard View Post
My damaged FREECOM HDD is 300 GB, and about 50% occupied. On the 1 TB HDD, I have about 240 GB free, so that should work.
ddrescue (as well as plain old dd, dcfldd, linen and dd_rescue) will just "nibble" the source disk and write to the target image, period. They have no concept of file systems (and therefore not of actual disk usage) so they'll write until they encounter an unrecoverable error, until all data is written or until the target file system is full.
*With plain old 'dd' you should be able to write to stdout and compress the output stream but you will only benefit from that if you know for sure (no "thinking", "guessing" or whatever else inaccurate assumption) the source disk contained a significant amount of repetitive data. Needless to say you would then either need a tool that can deal with compressed disk images or be forced to decompress the disk image anyway.
 
Old 01-28-2014, 07:08 PM   #4
metaschima
Senior Member
 
Registered: Dec 2013
Distribution: Slackware
Posts: 1,982

Rep: Reputation: 491Reputation: 491Reputation: 491Reputation: 491Reputation: 491
Because it is an external drive, you may want to mount it internally if possible before recovering. This is often faster in terms of read speed, and it may help exclude broken controllers that are part of the SATA to USB conversion.

If you can't mount it internally, then continue recovering files, but as said above ddrescue requires at least as much space as the entire disk you are recovering.
 
Old 01-30-2014, 10:19 AM   #5
Nederjaard
LQ Newbie
 
Registered: Feb 2012
Location: Yerseke, The Netherlands
Distribution: Kubuntu 12.10
Posts: 17

Original Poster
Rep: Reputation: Disabled
Hi all,

Thanks for all the advice. I first tried to mount the external hdd, using:
Code:
sudo mkdir /media/freecom
sudo mount -t ntfs-3g /dev/sdb /media/freecom
When that didn't work, I did a check:
Code:
sudo ntfsck /dev/sdb
Which gave me the following rather disturbing message:
Code:
Boot sector: Bad jump.
Boot sector: Bad NTFS magic.
Boot sector: Bytes per sector is not a multiple of 512.
sectors_per_cluster (190) is not a power of 2.
file record corrupted at offset 0 (0x0).
Loading $MFT runlist failed. Trying $MFTMirr.
file record corrupted at offset 0 (0x0).
Loading $MFTMirr runlist failed too. Aborting.
NTFS signature is missing.
This sounds like it sucks, right ? Any ideas what to do next ? Should I continue using ddrescue or is this senseless ?

Many thanks, much appreciated !
 
Old 01-30-2014, 12:47 PM   #6
qlue
Member
 
Registered: Aug 2009
Location: Umzinto, South Africa
Distribution: Crunchbangified Debian 8 (Jessie)
Posts: 747
Blog Entries: 1

Rep: Reputation: 172Reputation: 172
You have a few different options.
As ntfs is a Microsoft file system, it is potentially possible that Microsoft's own file system repair tools may be more successful. (sorry, I can't help their as I've never used them)

You could try Photorec, part of TestDisk, to recover the data files. But keep in mind that Photorec will use generic numbered file names and figuring out which file is which is half the challenge/nightmare.

You could try using TestDisk itself to recover the partition(s)

I don't think ddrescue will be much use here unless the 'corruption' is purely the result of read errors from a damaged drive. If the file system is actually corrupted, both dd and ddrescue will simply copy the corrupted bits as-is.

In data recovery and forensics, it is standard practice to make an as-is copy of the source drive onto a 'work' drive and then proceed to recover onto a third 'recovery' drive. However this assumes that you have at least two large drives each with more space available than the source drive.

Your next step depends on how valuable the lost data is to you as recovering data can be a lot more work than it's worth for more trivial data.
 
Old 01-30-2014, 05:23 PM   #7
Nederjaard
LQ Newbie
 
Registered: Feb 2012
Location: Yerseke, The Netherlands
Distribution: Kubuntu 12.10
Posts: 17

Original Poster
Rep: Reputation: Disabled
I'm recovering files using Photorec at the moment, and it's looking good !
Thanks again people, I hope I can take it from here and actually access my files tomorrow (14 h recovery to go)

All the best !
 
  


Reply

Tags
ddrescue, externalharddrive


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
New HDD install w/data recovery from old HDD w/different distro w/encrypted /home forbinproject Linux - Laptop and Netbook 1 02-27-2012 11:18 PM
[SOLVED] Data Recovery for External HDD Novatian Linux - Software 1 11-19-2010 09:49 AM
Data Recovery on HDD djrobg Linux - Newbie 2 02-12-2010 12:21 AM
Data recovery from a formatted hdd drsa2 Linux - General 2 02-10-2010 03:57 PM
Data recovery on HDD TwinsDad9901 Linux - Hardware 4 08-30-2009 01:09 PM


All times are GMT -5. The time now is 02:48 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration