LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 08-24-2022, 03:47 PM   #1
littlekatana
Member
 
Registered: Oct 2021
Posts: 53

Rep: Reputation: Disabled
Broken HDD


Recently I dropped my backup laptop while my external HDD was attached via usb cord. The laptop was fine, but the HDD seems to have been incorrectly disconnected and now is no longer functional.

I have been trying to problem solve this on Windows and been getting further than on Linux, so I will report discoveries on both systems.

On linux, the drive is simply not recognized at all. It doesn't populate in the file system. I haven't got further than that. However, I know it's plugged in, as the tiny light goes on and the disk starts spinning, so there isn't a connectivity or port problem.

On windows, plugging it in nearly crashes the explorer! It takes forever to attempt to read the drive, but eventually I get a message that says either "the drive needs to be formatted before using it" or "device inaccessible; the parameter is incorrect." I attempted to use a data recovery tool to recover the files, even though they weren't actually deleted. After setting a program called Recuva to sense non-deleted files for recovery, it gave an error message that the file system could not be detected. To fix this, I was directed to reformat the disk (as windows had previously suggested) but the native windows disk format tool said the format could not be completed. I don't know why.

So I can't detect the drive, and if I can detect it, options to recover the files fail because the it can't be formatted and the file system is corrupted. It's a vicious cycle. I will probably try a different disk formatting tool on Windows, but I can use gparted to format the disk if I can get it recognized by linux. A recommendation for a file recovery tool for linux would also be much appreciated.

The HDD is a seagate 2 TB model-something-or-other
 
Old 08-24-2022, 04:37 PM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 26,758

Rep: Reputation: 6319Reputation: 6319Reputation: 6319Reputation: 6319Reputation: 6319Reputation: 6319Reputation: 6319Reputation: 6319Reputation: 6319Reputation: 6319Reputation: 6319
There are three parts to the drive i.e. the USB -> SATA bridge, the drives electronics board and the actual physical disk. If the drive is not recognized at all via the lsblk command or dmesg output then probably the connector on the drive is broken, maybe one of the data lines since you can feel the drive spinning.

Typically the USB -> SATA bridge is soldered directly to the electronics board these days so it isn't as simple as removing the drive from the case and plugging it in to another USB adapter. If the drive is recognized via dmesg the laptop is communicating with the USB bridge but not the electronics or maybe if the drive was still powered the heads crashed or maybe just jarred so they do not move correctly anymore.

I would guess if Windows takes a long time but then suggests the drive needs formatting then either the heads crashed or the USB -> SATA bridge broke at the electronics board. Without more information I would guess there isn't anything you can do from an operating system standpoint.
 
1 members found this post helpful.
Old 08-25-2022, 09:56 AM   #3
TenTenths
Senior Member
 
Registered: Aug 2011
Location: Dublin
Distribution: Centos 5 / 6 / 7 / 8
Posts: 3,565

Rep: Reputation: 1601Reputation: 1601Reputation: 1601Reputation: 1601Reputation: 1601Reputation: 1601Reputation: 1601Reputation: 1601Reputation: 1601Reputation: 1601Reputation: 1601
If the external HDD fell too then it could be any number of physical damage, head crashes, etc. that have happened.

You could try opening it up and trying the drive itself in a separate caddy and pull the data off it that way.

If that's successful there are a few replacement enclosures around. I recently re-cased an old 2.5" spinner that was in a USB2 case in to a USB3.0 enclosure.
 
Old 08-25-2022, 11:36 AM   #4
computersavvy
Senior Member
 
Registered: Aug 2016
Posts: 3,345

Rep: Reputation: 1486Reputation: 1486Reputation: 1486Reputation: 1486Reputation: 1486Reputation: 1486Reputation: 1486Reputation: 1486Reputation: 1486Reputation: 1486
Quote:
Originally Posted by TenTenths View Post
If the external HDD fell too then it could be any number of physical damage, head crashes, etc. that have happened.

You could try opening it up and trying the drive itself in a separate caddy and pull the data off it that way.

If that's successful there are a few replacement enclosures around. I recently re-cased an old 2.5" spinner that was in a USB2 case in to a USB3.0 enclosure.
That is one way, but only would work if the drive is a standard sata interface. If it has the soldered in USB-SATA interface then doing the replacement to a different caddy would likely not work.

If the drive is not working then no harm in trying anything.

Last edited by computersavvy; 08-25-2022 at 11:58 AM.
 
Old 08-25-2022, 11:42 AM   #5
TenTenths
Senior Member
 
Registered: Aug 2011
Location: Dublin
Distribution: Centos 5 / 6 / 7 / 8
Posts: 3,565

Rep: Reputation: 1601Reputation: 1601Reputation: 1601Reputation: 1601Reputation: 1601Reputation: 1601Reputation: 1601Reputation: 1601Reputation: 1601Reputation: 1601Reputation: 1601
Quote:
Originally Posted by computersavvy View Post
That is one way, but only would work if the drive is a standard sata interface. If it has the soldered in USB-SATA interface then doing the replacement to a different caddy would likely not work.
Indeed, but if the drive is dead anyway there's no harm in opening the case for a look.
 
Old 08-28-2022, 11:34 PM   #6
mrmazda
LQ Guru
 
Registered: Aug 2016
Location: SE USA
Distribution: openSUSE 24/7; Debian, Knoppix, Mageia, Fedora, OS/2, others
Posts: 6,502
Blog Entries: 1

Rep: Reputation: 2232Reputation: 2232Reputation: 2232Reputation: 2232Reputation: 2232Reputation: 2232Reputation: 2232Reputation: 2232Reputation: 2232Reputation: 2232Reputation: 2232
Quote:
Originally Posted by littlekatana View Post
So I can't detect the drive, and if I can detect it, options to recover the files fail because the it can't be formatted
Formatting the disk effectively removes any options to recover files. One of the expensive data recovery services might be able to get some files after formatting, but formatting is basically antithetical to file recovery. Your problem seems to be about basic access, as already noted. With any luck, the drive can be removed from its USB case and connected directly via SATA port to find it accessible. Likely the fall irreparably damaged it mechanically.
 
Old 08-29-2022, 09:08 AM   #7
littlekatana
Member
 
Registered: Oct 2021
Posts: 53

Original Poster
Rep: Reputation: Disabled
I did not realize that. I'm not sure how that's much different... isn't data recovery a read of faded magnetic imprints on disks? Why is deletion different than formatting?

I formatted it using diskpart on windows. A data recovery program was able to recover a few jpgs but nothing that I wanted. Wow that sucks.
 
Old 08-29-2022, 09:37 AM   #8
michaelk
Moderator
 
Registered: Aug 2002
Posts: 26,758

Rep: Reputation: 6319Reputation: 6319Reputation: 6319Reputation: 6319Reputation: 6319Reputation: 6319Reputation: 6319Reputation: 6319Reputation: 6319Reputation: 6319Reputation: 6319
When a file is deleted only metadata that points to the file is deleted not the actual data unless you a specific utility to erase it. Formatting a filesystem does the same thing, it initializes all the metadata to zero but does not actually erase or zero the rest of the partition unless specifically done by another utility. Depending on the filesystem some data at the beginning of the partition may be overwritten. Basically data recovery programs scrub the disk looking for specific signatures to find files on the disk.
 
Old 08-29-2022, 09:53 AM   #9
computersavvy
Senior Member
 
Registered: Aug 2016
Posts: 3,345

Rep: Reputation: 1486Reputation: 1486Reputation: 1486Reputation: 1486Reputation: 1486Reputation: 1486Reputation: 1486Reputation: 1486Reputation: 1486Reputation: 1486
There are utilities that are able to recover some (possibly fragmented) of the data from a disk that has had the metadata wiped. Ddrescue is one of those that may assist.

Using windows to format a disk that was previously linux makes things even more problematic.

The thing to remember going forward is that you should NEVER use utilities that write to the disk until AFTER the recovery has been attempted & completed so that you avoid causing more issues.
 
  


Reply


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
Cannot fix broken package using "sudo apt --fix-broken install" to fix XFCE packages for Zorin OS 16 Core AltFantasy Zorin OS 8 09-25-2021 06:51 AM
Recovery broken OS after broken drive DangerSchwob Debian 6 11-02-2020 02:38 AM
Run customised HDD driver for external HDD while generic HDD driver for bootable purpose sonia49 Linux - Newbie 1 09-28-2016 08:52 PM
HDD broken ? mala fide Linux - Hardware 5 12-01-2006 09:24 PM
Broken GRUB on primary HDD? d4w50n Linux - Newbie 1 04-09-2006 12:04 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

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