LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 06-30-2017, 12:03 PM   #1
anon091
Senior Member
 
Registered: Jun 2009
Posts: 1,795

Rep: Reputation: 49
Bad NTFS or FAT32 drive, badblocks and fsck to the rescue?


Have a bad hard drive, was used on a Windows machine so probably NTFS or maybe FAT32. I think it may have been throwing CRC errors previously. Is there any combination of badblocks, fsck, or anything else I could use to try to rescue the data on there?

Right now on sdc, it easily mounts and shows data on 2 of the 3 partitions, and of course the third partition is the one with the data this person needs. blkid doesn't even show the partition either I don't believe, so it must be in real bad shape.
 
Old 06-30-2017, 12:08 PM   #2
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 21 MATE
Posts: 8,048
Blog Entries: 5

Rep: Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925
Before you attempt any data recovery, I would suggest that you first clone the disk so that you can revert to it if any of the data recovery attempts cause more damage.
 
Old 06-30-2017, 12:09 PM   #3
anon091
Senior Member
 
Registered: Jun 2009
Posts: 1,795

Original Poster
Rep: Reputation: 49
Should I just use dd or something to do the entire sdc? if that one partition is really hosed will it even back that up?
 
Old 06-30-2017, 12:25 PM   #4
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 21 MATE
Posts: 8,048
Blog Entries: 5

Rep: Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925
dd doesn't care about partitions - https://wiki.archlinux.org/index.php/disk_cloning - but you could also consider using gddrescue which "copies data from one file or block device (hard disc, cdrom, etc) to another, trying hard to rescue data in case of read errors." - https://datarecovery.com/rd/how-to-c...with-ddrescue/ (ignore the marketing).

Last edited by hydrurga; 06-30-2017 at 12:26 PM.
 
1 members found this post helpful.
Old 06-30-2017, 12:39 PM   #5
anon091
Senior Member
 
Registered: Jun 2009
Posts: 1,795

Original Poster
Rep: Reputation: 49
gddrescue sound intriguing, I might give that a shot, thanks.
 
Old 06-30-2017, 01:03 PM   #6
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 21 MATE
Posts: 8,048
Blog Entries: 5

Rep: Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925
Quote:
Originally Posted by rjo98 View Post
gddrescue sound intriguing, I might give that a shot, thanks.
Please let us know how you get on. And of course, come back to the thread once you're ready to launch into data recovery proper.
 
Old 06-30-2017, 01:15 PM   #7
anon091
Senior Member
 
Registered: Jun 2009
Posts: 1,795

Original Poster
Rep: Reputation: 49
haha, will do. just downloaded and installed the deb for gddrescue, trying to figure out how to actually use it now
 
Old 06-30-2017, 02:07 PM   #8
anon091
Senior Member
 
Registered: Jun 2009
Posts: 1,795

Original Poster
Rep: Reputation: 49
ddrescue has begun. i couldn't find a gddrescue command anywhere, so i'm must be missing something or misunderstanding even though it installed right. but i'll see where this gets me and post back when it finishes, or if it ever does
 
Old 06-30-2017, 02:26 PM   #9
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 21 MATE
Posts: 8,048
Blog Entries: 5

Rep: Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925
It's useful to remember that a package name is not necessarily reflected in the name(s) of the command(s) provided by that package. In this case, the package is gddrescue but the principal command supplied is ddrescue.

Just to muddy the waters (purely for info - skip this bit if you don't want to get confused), there are actually two parallel but separately-developed packages - dd_rescue and GNU ddrescue (gddrescue) - see https://askubuntu.com/questions/2115...-and-dd-rescue

Perhaps you could go and watch some flowers grow while the cloning is taking place.
 
1 members found this post helpful.
Old 06-30-2017, 02:40 PM   #10
anon091
Senior Member
 
Registered: Jun 2009
Posts: 1,795

Original Poster
Rep: Reputation: 49
Yeah, i guess I assumed gddrescue would give a gui or something extra on top of ddrescue, but looks like it just installed that. ah well.

At the rate it's going, I could plant a tree and watch it grow to be taller than me before this will finish
 
Old 07-05-2017, 01:08 PM   #11
anon091
Senior Member
 
Registered: Jun 2009
Posts: 1,795

Original Poster
Rep: Reputation: 49
to give an update, ddrescue is now on the "splitting failed blocks" phase. of the 500GB drive it says it rescued about 499.5GB with about half a GB of errors. It's going on 16 hours since time of last successful read though. I guess I can keep letting it run, but what should my next steps be once it finishes?
 
Old 07-05-2017, 01:21 PM   #12
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 21 MATE
Posts: 8,048
Blog Entries: 5

Rep: Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925
Quote:
Originally Posted by rjo98 View Post
to give an update, ddrescue is now on the "splitting failed blocks" phase. of the 500GB drive it says it rescued about 499.5GB with about half a GB of errors. It's going on 16 hours since time of last successful read though. I guess I can keep letting it run, but what should my next steps be once it finishes?
I would say back up the recovered data to another device asap. Then check the data to determine what has actually been recovered, randomly checking that files are valid by opening them. If you feel that there are any missing files which are absolutely crucial then you can try other recovery procedures on the original disk but you may not be successful. After you've gone as far as you can go, throw the old hard disk away and take some photos of the tree you planted in a previous post.
 
1 members found this post helpful.
Old 07-05-2017, 01:23 PM   #13
anon091
Senior Member
 
Registered: Jun 2009
Posts: 1,795

Original Poster
Rep: Reputation: 49

thanks for all the help with this.
 
Old 07-05-2017, 02:22 PM   #14
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 10,659
Blog Entries: 4

Rep: Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941
The first thing that I would do with any modern device is to check the SMART logs. This is firmware on-board the device itself which is constantly watching for problems, and which can perform various operations such as swapping-out bad sectors (invisibly to the host).
 
Old 07-05-2017, 03:44 PM   #15
anon091
Senior Member
 
Registered: Jun 2009
Posts: 1,795

Original Poster
Rep: Reputation: 49
thanks
 
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Using LinuxDefender Live To Rescue Your Windows NTFS Drive LXer Syndicated Linux News 0 09-24-2008 03:11 PM
Software RAID, fsck and badblocks acerola Linux - Newbie 1 03-15-2005 06:16 PM
Madrake Rescue - Badblocks command not found ggard Mandriva 0 01-26-2005 02:04 AM
Can't format drive as fat32 in Linux - stays NTFS insectile Linux - General 1 07-20-2004 05:38 PM
Cannot Copy Files From Network FAT32/NTFS Drive to My Local Linux Drive michaelh Linux - Networking 3 10-29-2002 10:27 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 07:22 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