LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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-24-2024, 04:17 PM   #1
luca89
LQ Newbie
 
Registered: Feb 2024
Location: Italia
Posts: 1

Rep: Reputation: 0
Question HDD detected as 0 bytes


Hi all!
I have a problem with and external USB 3.0 hard disk.
If connected to my pc this is what is shown in the dmesg:

Code:
[268998.150728] usb 5-2.4.4.4: new high-speed USB device number 13 using xhci_hcd
[268998.351536] usb 5-2.4.4.4: New USB device found, idVendor=0480, idProduct=a200, bcdDevice= 0.00
[268998.351544] usb 5-2.4.4.4: New USB device strings: Mfr=2, Product=3, SerialNumber=1
[268998.351549] usb 5-2.4.4.4: Product: External USB 3.0
[268998.351554] usb 5-2.4.4.4: Manufacturer: TOSHIBA
[268998.351558] usb 5-2.4.4.4: SerialNumber: 20170325021274F
[268998.352223] usb-storage 5-2.4.4.4:1.0: USB Mass Storage device detected
[268998.352439] scsi host4: usb-storage 5-2.4.4.4:1.0
[268999.375860] scsi 4:0:0:0: Direct-Access     TOSHIBA  External USB 3.0 0    PQ: 0 ANSI: 6
[268999.376099] sd 4:0:0:0: Attached scsi generic sg1 type 0
[269006.286222] sd 4:0:0:0: [sdb] Media removed, stopped polling
[269006.287208] sd 4:0:0:0: [sdb] 0 512-byte logical blocks: (0 B/0 B)
[269006.287218] sd 4:0:0:0: [sdb] 0-byte physical blocks
[269006.288090] sd 4:0:0:0: [sdb] Test WP failed, assume Write Enabled
[269006.289085] sd 4:0:0:0: [sdb] Asking for cache data failed
[269006.289092] sd 4:0:0:0: [sdb] Assuming drive cache: write through
[269006.289861] sd 4:0:0:0: [sdb] Attached SCSI disk
[269029.191103] sd 4:0:0:0: [sdb] Media removed, stopped polling
As you can see it seems the disk has a size of 0 bytes... so I can't even try to dd_rescue it.
I have also bought a new PCB, replaced it and still 0 bytes.
Do you have any suggestiong for trying to fix the problem to, at least, try to recover its content?

P.s.: the same happens with different cables (USB 2 or USB 3), on different PCs, with different OSes (linux or not).
 
Old 02-25-2024, 09:42 AM   #2
wpeckham
LQ Guru
 
Registered: Apr 2010
Location: Continental USA
Distribution: Debian, Ubuntu, RedHat, DSL, Puppy, CentOS, Knoppix, Mint-DE, Sparky, VSIDO, tinycore, Q4OS,Manjaro
Posts: 5,638

Rep: Reputation: 2697Reputation: 2697Reputation: 2697Reputation: 2697Reputation: 2697Reputation: 2697Reputation: 2697Reputation: 2697Reputation: 2697Reputation: 2697Reputation: 2697
If the electronics are fried, that may be all you get in the best case.
 
Old 02-25-2024, 11:35 AM   #3
lvm_
Member
 
Registered: Jul 2020
Posts: 931

Rep: Reputation: 337Reputation: 337Reputation: 337Reputation: 337
Nearly 7-second delay indicates that this is probably mechanical. SMART could be helpful.
 
Old 02-25-2024, 12:48 PM   #4
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Virginia, USA
Distribution: Debian 12
Posts: 8,337

Rep: Reputation: 548Reputation: 548Reputation: 548Reputation: 548Reputation: 548Reputation: 548
In a similar situation about two years ago I bought a new drive and restored my backup to my new drive. Then I used a sledge hammer to destroy the bad drive before I threw it into the dump.
 
Old 02-28-2024, 06:29 AM   #5
beachboy2
Senior Member
 
Registered: Jan 2007
Location: Wild West Wales, UK
Distribution: Linux Mint 21 MATE, EndeavourOS, antiX, MX Linux
Posts: 3,972
Blog Entries: 32

Rep: Reputation: 1465Reputation: 1465Reputation: 1465Reputation: 1465Reputation: 1465Reputation: 1465Reputation: 1465Reputation: 1465Reputation: 1465Reputation: 1465
luca89,

Welcome to LQ forums.

I appreciate that you wish to recover data from this drive, but you could carry out a SMART test as recommended by lvm_.

https://www.linuxquestions.org/quest...to-fail-39072/

You could use your distro's installation media to try to recover data, but it may be a forlorn task:
https://www.linuxquestions.org/quest...al-data-38094/
 
Old 02-28-2024, 07:00 AM   #6
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,857

Rep: Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311
probably the disk is ok, just the external usb enclosure is dead.
Did you try it on another host?
 
Old 02-28-2024, 09:39 AM   #7
wpeckham
LQ Guru
 
Registered: Apr 2010
Location: Continental USA
Distribution: Debian, Ubuntu, RedHat, DSL, Puppy, CentOS, Knoppix, Mint-DE, Sparky, VSIDO, tinycore, Q4OS,Manjaro
Posts: 5,638

Rep: Reputation: 2697Reputation: 2697Reputation: 2697Reputation: 2697Reputation: 2697Reputation: 2697Reputation: 2697Reputation: 2697Reputation: 2697Reputation: 2697Reputation: 2697
Quote:
Originally Posted by pan64 View Post
probably the disk is ok, just the external usb enclosure is dead.
Did you try it on another host?
At the bottom of the original post the OP states the behavior is the same on different PCs.
Enclosure or drive, something there smells!
 
Old 02-28-2024, 11:28 AM   #8
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,306

Rep: Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324
Quote:
Originally Posted by luca89
[269006.286222] sd 4:0:0:0: [sdb] Media removed, stopped polling
That seems the pertinent line to me (a little past half way down your log snippet. It would indicate a loss of communication, which of course would set the system off bellyaching about the disk. But it may not actually be the disk.

USB drives are sata drives. Can you try it in a pc, or in another usb drive case? Ideally use nothing from the previous setup to check. If the drive works, check the old usb case piece by piece. Otherwise, use the wisdom in the previous answers.
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
gpg: do_plaintext(): wrote 1210414045 bytes but expected 822504068 bytes MensaWater Linux - Software 6 02-27-2018 08:48 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
Is it okay if my sector size is "512 bytes / 4096 bytes" Altiris Slackware 5 07-31-2015 03:19 AM
TX bytes vs. httpd bytes ovrload Linux - Networking 3 10-12-2005 04:19 PM
Ethernet Card detected in one kernel is not detected in the other?? ashishuttarwar Linux - Hardware 14 06-15-2004 10:06 PM

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

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