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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
|
03-30-2022, 06:37 PM
|
#1
|
LQ Newbie
Registered: Mar 2022
Posts: 7
Rep:
|
data recovery from a disappeared partition
Hi there,
I have an hdd (platter, not ssd) that got put into read-only state suddenly. After a restart (which I probably shouldn't have done), the drive is shown as containing no partitions. I tried testdisk to find the partition but to no avail. So, I guess I can't use that to recover files to another disk, right?
smartctl shows the drives' information (type and such) but when it comes to smart data these all fail with "input/output error".
I have a spare drive available, so I wondered if it would help to use ddrescue to clone the drive and then to work with the image. I actually started it as a test and let it run for a while, but it showed thousands of read errors in its output.
So, any suggestions what I could try to get that "lost" partition back or access its files to recover them as a whole or selectively would be greatly appreciated.
Tia.
|
|
|
03-31-2022, 07:13 AM
|
#2
|
LQ Guru
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 17,213
|
Hello, mrokii & welcome to LQ.
99.999% chance your drive is dud.Going on the information you give, it just may be an electronic failure rather than a platter failure.
I had success in the past restoring a Seagate drive replacing the pcb by buying new from the manufacturer. But they were only 15 miles away and electronics and indeed costs were different then. It might be worth a shot.
That aside, the more you mess with it, the worse it gets and the more you waste time. I keep a usb backup disk. Get one.
|
|
1 members found this post helpful.
|
03-31-2022, 07:24 AM
|
#3
|
LQ Veteran
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,314
|
Quote:
Originally Posted by mrokii
I have a spare drive available, so I wondered if it would help to use ddrescue to clone the drive and then to work with the image. I actually started it as a test and let it run for a while, but it showed thousands of read errors in its output.
|
Seems you've done the sensible things, but ddrescue is more robust than almost anything else you can get FOSS - if it's not processing the disk, it looks like a lost cause.
|
|
|
04-01-2022, 03:28 AM
|
#4
|
LQ Guru
Registered: Aug 2016
Location: SE USA
Distribution: openSUSE 24/7; Debian, Knoppix, Mageia, Fedora, OS/2, others
Posts: 6,303
|
Quote:
Originally Posted by mrokii
I have a spare drive available, so I wondered if it would help to use ddrescue to clone the drive and then to work with the image. I actually started it as a test and let it run for a while, but it showed thousands of read errors in its output.
|
It might succeed in spite of read errors if you give it enough time. A better estimation could follow from us seeing the output from when you tried. Don't get your hopes up too high though.
|
|
1 members found this post helpful.
|
04-01-2022, 07:38 AM
|
#5
|
Member
Registered: Apr 2019
Location: Esbjerg
Distribution: Windows 7...
Posts: 773
|
Quote:
Originally Posted by mrokii
So, any suggestions...
|
Yeah... don't waste time. Just get a new platter, restore your backup to it and - Voila!
Or are you saying you don't do backups?
|
|
|
04-01-2022, 12:39 PM
|
#6
|
LQ Guru
Registered: Feb 2003
Location: Virginia, USA
Distribution: Debian 12
Posts: 8,370
|
I had a house fire in April, 2016 where I lost my computer, my in-house backup drives, and my wife's Windows computer which was not backed up. All of these had both smoke and heat damage. I still had my off-site backup in my detached garage. The insurance company paid to have all of the damaged items sent to a data recovery company whose contact information I have lost. They recovered all of my wife's files.
The data recovery company recovered substantial parts of each of my hard drives to where I had every file at least twice although some of the recovered copies were up to a month old. Combining those with my garage backups which were 2 days old and 9 days old, I recovered everything up to the date of the fire.
The point of all this is that if your lost data is valuable enough then it may be worth your while to pay a data recovery company to try to recover your files.
|
|
1 members found this post helpful.
|
04-02-2022, 02:27 AM
|
#7
|
LQ Addict
Registered: Dec 2013
Posts: 19,872
|
Step 0: dd the complete drive to a file on a healthy drive with sufficient space, and work on that copy, NOT the physical drive itself.
Quote:
Originally Posted by mrokii
I tried testdisk to find the partition but to no avail. So, I guess I can't use that to recover files to another disk, right?
|
testdisk/photorec can do MUCH more than find files on partitions.
Please read their wiki, it's not exactly intuitive to use.
|
|
1 members found this post helpful.
|
04-02-2022, 03:22 AM
|
#8
|
Member
Registered: Apr 2019
Location: Esbjerg
Distribution: Windows 7...
Posts: 773
|
For the price of one (1) data recovery service, you can...
- buy a usb/esata docking station
- buy 3 nice 2TB (my preferred size, ymmv) bulk drives
- get a very nice holiday with family for weeks
Morale? HDDs are ridiculously cheap. When you buy one, do get two.
|
|
|
04-02-2022, 03:52 AM
|
#9
|
Senior Member
Registered: Jan 2007
Location: Wild West Wales, UK
Distribution: Linux Mint 22 MATE, Peppermint OS-Devuan, EndeavourOS
Posts: 4,275
|
mrokii,
It all depends on how valuable the data is to you.
Can you simply write it off and make backups in the future or is it vital for it to be recovered?
Before you dig yourself a deeper hole, I would advise finding a reputable, professional data recovery company which has very positive customer feedback such as Essential Data Recovery:
http://www.essentialdatarecovery.co.uk/
http://www.essentialdatarecovery.co....de_drives.html
There are so many charlatans in this line of work, so do proceed carefully.
|
|
|
04-03-2022, 07:52 AM
|
#10
|
LQ Newbie
Registered: Mar 2022
Posts: 7
Original Poster
Rep:
|
Quote:
Originally Posted by business_kid
Hello, mrokii & welcome to LQ.
99.999% chance your drive is dud.Going on the information you give, it just may be an electronic failure rather than a platter failure.
I had success in the past restoring a Seagate drive replacing the pcb by buying new from the manufacturer. But they were only 15 miles away and electronics and indeed costs were different then. It might be worth a shot.
That aside, the more you mess with it, the worse it gets and the more you waste time. I keep a usb backup disk. Get one.
|
Thanks, that's an interesting take, but replacing the pcb is beyond my capabilities.
|
|
|
04-03-2022, 07:53 AM
|
#11
|
LQ Newbie
Registered: Mar 2022
Posts: 7
Original Poster
Rep:
|
Quote:
Originally Posted by Jan K.
Yeah... don't waste time. Just get a new platter, restore your backup to it and - Voila!
Or are you saying you don't do backups?
|
Usually I would say, yes, I do backups. But life during Covid is difficult and my mind has been on a lot of other things than doing a backup. So yeah, the last backup was from about three years ago.
|
|
|
04-03-2022, 07:55 AM
|
#12
|
LQ Newbie
Registered: Mar 2022
Posts: 7
Original Poster
Rep:
|
Quote:
Originally Posted by mrmazda
It might succeed in spite of read errors if you give it enough time. A better estimation could follow from us seeing the output from when you tried. Don't get your hopes up too high though.
|
I've given up for the moment, might try it again in a few days. But losing so much data (last backup is years old, tbh) has drained my energy further down. Can't bring myself to try that again now, with so little chance of success.
|
|
|
04-03-2022, 07:57 AM
|
#13
|
LQ Newbie
Registered: Mar 2022
Posts: 7
Original Poster
Rep:
|
Quote:
Originally Posted by jailbait
The point of all this is that if your lost data is valuable enough then it may be worth your while to pay a data recovery company to try to recover your files.
|
I get what you mean, but that is out of the picture for me at the moment, due to Covid-related money constraints.
|
|
|
04-03-2022, 08:00 AM
|
#14
|
LQ Newbie
Registered: Mar 2022
Posts: 7
Original Poster
Rep:
|
Quote:
Originally Posted by beachboy2
mrokii,
It all depends on how valuable the data is to you.
Can you simply write it off and make backups in the future or is it vital for it to be recovered?
|
Thanks for the advice. Some of the lost data hurts, but in the end it's not life-threatening or existential to have it back. And I don't have the money at the moment for recovery-services. Thanks for the suggestions though.
|
|
|
04-03-2022, 08:01 AM
|
#15
|
LQ Newbie
Registered: Mar 2022
Posts: 7
Original Poster
Rep:
|
Quote:
Originally Posted by ondoho
Step 0: dd the complete drive to a file on a healthy drive with sufficient space, and work on that copy, NOT the physical drive itself.
testdisk/photorec can do MUCH more than find files on partitions.
Please read their wiki, it's not exactly intuitive to use.
|
Thanks for the suggestions, I'll take a look.
|
|
|
All times are GMT -5. The time now is 05:15 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|