Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

Debian cannot recognize External Hard Drive

Need help with peripherals or devices?
Message
Author
4joeyirosh1
Posts: 157
Joined: 2016-09-11 18:04
Been thanked: 3 times

Debian cannot recognize External Hard Drive

#1 Post by 4joeyirosh1 »

Hi!I have Debian 11 64 bit installed on my machine.For the last few days I have been unable to access contents of my Western Digital External Drive.The disk is viewable from command below

Code: Select all

# lsusb
Bus 002 Device 005: ID 1058:07a8 Western Digital Technologies, Inc. My Passport (WDBBEP), My Passport for Mac (WDBLUZ)
Also I can see it from disks menu as below as drive sdc but shows no media as below.It took over 10 minutes to be seen on disks menu after connecting the drive.Drive is also not recognized on gparted
Image

How can I access the contents of this drive.It has a lot of my data which I cannot afford to lose.

Thanks

steve_v
df -h | grep > 20TiB
df -h | grep > 20TiB
Posts: 1400
Joined: 2012-10-06 05:31
Location: /dev/chair
Has thanked: 79 times
Been thanked: 175 times

Re: Debian cannot recognize External Hard Drive

#2 Post by steve_v »

4joeyirosh1 wrote: 2022-01-06 06:54 How can I access the contents of this drive.
Dmesg output when from just after the drive is plugged in might be interesting... Or more interesting than a screenshot at any rate.

What makes you think it isn't the drive itself that is at fault?
This is fairly easy to test, I would:
1) Connect it to a different machine, and see if that can read it.
2) Remove the physical HDD from the case and plug it in directly.

If the drive works connected to another machine, we can investigate further from the debian side. If it does not, then it's almost certainly a hardware fault. Proceed to step 2.
If you've tried another PC (or more than one) and you still can't access it, there's a chance it's just the USB interface at fault, hence "shucking" the drive and plugging it in on its native (SATA presumably) interface. If that works, at least you might get your data off.
4joeyirosh1 wrote: 2022-01-06 06:54It has a lot of my data which I cannot afford to lose.
There are two kinds of computer users: those who have backups of important data, and those who have never had a hard drive fail.
If you really can't afford to loose the data on a drive then it must be worth something to you... Ask yourself this: Is it worth the price of a second drive to hold a backup?
Once is happenstance. Twice is coincidence. Three times is enemy action. Four times is Official GNOME Policy.

kedaha
Posts: 3521
Joined: 2008-05-24 12:26
Has thanked: 33 times
Been thanked: 77 times

Re: Debian cannot recognize External Hard Drive

#3 Post by kedaha »

Hi,
I think your External HD is recognized because it gets identified with lsusb.
You should try and enter the file system as root in the terminal.
If your user name is, for example, joey then:

Code: Select all

$ su -
Password: 
# cd /media/joey && ls
This will give you the directory name. For instance mine is:

Code: Select all

d7b06b6b-6b0b-4815-a6e1-7c5cc6df0aa1
So to read the contents I would proceed with:

Code: Select all

# cd d7b06b6b-6b0b-4815-a6e1-7c5cc6df0aa1
# ls
And change directory using cd to the files I wished to read.
Assuming all goes well, you will now be able to read using cat and copy files to your internal disk or wherever you like using the cp command.
DebianStable

Code: Select all

$ vrms

No non-free or contrib packages installed on debian!  rms would be proud.

User avatar
argentwolf
Posts: 201
Joined: 2021-09-05 23:21
Has thanked: 185 times
Been thanked: 15 times

Re: Debian cannot recognize External Hard Drive

#4 Post by argentwolf »

One can boot into a LiveCD to see whether the drive's contents are available. That would eliminate the installed OS as an issue and confirm the external USB drive has issues.

https://wiki.debian.org/LiveCD

If booting to a LiveCD confirms the drive having issues, then you might try Ultimate Boot CD (or something similar) and its HDD/Data Recovery resources to try and repair/recover the data...

https://www.ultimatebootcd.com/
Vanguard Debian, because nothing's worse than doing nothing, whimsically!
32-bit | 2 Duo T5270 @ 1.40GHz x 2 CPU | 3.9GiB RAM | NV86 117MiB GPU | 465.76GiB SSD
64-bit | i7-4790 @ 3.60GHz x 8 CPU | 15.6GiB RAM | NVD9 1.9GiB GPU | 931.51GiB SSD

4joeyirosh1
Posts: 157
Joined: 2016-09-11 18:04
Been thanked: 3 times

Re: Debian cannot recognize External Hard Drive

#5 Post by 4joeyirosh1 »

@steve_v.Thanks for replying.Please find output of dmesg

Code: Select all

[ 7292.628048] usb 2-1: New USB device found, idVendor=1058, idProduct=07a8, bcdDevice=10.33
[ 7292.628062] usb 2-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 7292.628067] usb 2-1: Product: My Passport 07A8
[ 7292.628071] usb 2-1: Manufacturer: Western Digital
[ 7292.628074] usb 2-1: SerialNumber: 5744432D524F4D20534E2320
[ 7292.723771] usb-storage 2-1:1.0: USB Mass Storage device detected
[ 7292.723920] scsi host3: usb-storage 2-1:1.0
[ 7292.723980] usbcore: registered new interface driver usb-storage
[ 7292.730197] usbcore: registered new interface driver uas
[ 7293.736199] scsi 3:0:0:0: Direct-Access     WD       My Passport 07A8 1033 PQ: 0 ANSI: 6
[ 7293.736551] scsi 3:0:0:1: Enclosure         WD       SES Device       1033 PQ: 0 ANSI: 6
[ 7293.738330] sd 3:0:0:0: Attached scsi generic sg2 type 0
[ 7293.739071] scsi 3:0:0:1: Attached scsi generic sg3 type 13
[ 7293.740208] sd 3:0:0:0: [sdb] Spinning up disk...
[ 7294.755583] .
[ 7299.973369] scsi 3:0:0:1: Failed to get diagnostic page 0x1
[ 7299.973399] scsi 3:0:0:1: Failed to bind enclosure -19
[ 7300.999601] ............
[ 7312.867731] usb 2-1: USB disconnect, device number 2
[ 7312.883658] ready
[ 7312.883683] sd 3:0:0:0: [sdb] Read Capacity(10) failed: Result: hostbyte=DID_ERROR driverbyte=DRIVER_OK
[ 7312.883688] sd 3:0:0:0: [sdb] Sense not available.
[ 7312.883693] sd 3:0:0:0: [sdb] 0 512-byte logical blocks: (0 B/0 B)
[ 7312.883695] sd 3:0:0:0: [sdb] 0-byte physical blocks
[ 7312.883699] sd 3:0:0:0: [sdb] Write Protect is off
[ 7312.883702] sd 3:0:0:0: [sdb] Mode Sense: 00 00 00 00
[ 7312.883706] sd 3:0:0:0: [sdb] Asking for cache data failed
[ 7312.883711] sd 3:0:0:0: [sdb] Assuming drive cache: write through
[ 7312.900188] sd 3:0:0:0: [sdb] Read Capacity(10) failed: Result: hostbyte=DID_ERROR driverbyte=DRIVER_OK
[ 7312.900196] sd 3:0:0:0: [sdb] Sense not available.
[ 7312.900210] sd 3:0:0:0: [sdb] Attached SCSI disk
[ 7312.900267] ses 3:0:0:1: Attached Enclosure device
[ 7415.675500] usb 2-1: new SuperSpeed USB device number 3 using xhci_hcd
[ 7415.700169] usb 2-1: New USB device found, idVendor=1058, idProduct=07a8, bcdDevice=10.33
[ 7415.700186] usb 2-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 7415.700193] usb 2-1: Product: My Passport 07A8
[ 7415.700199] usb 2-1: Manufacturer: Western Digital
[ 7415.700204] usb 2-1: SerialNumber: 5744432D524F4D20534E2320
[ 7415.701754] usb-storage 2-1:1.0: USB Mass Storage device detected
[ 7415.702126] scsi host3: usb-storage 2-1:1.0
[ 7416.708031] scsi 3:0:0:0: Direct-Access     WD       My Passport 07A8 1033 PQ: 0 ANSI: 6
[ 7416.708314] scsi 3:0:0:1: Enclosure         WD       SES Device       1033 PQ: 0 ANSI: 6
[ 7416.710055] sd 3:0:0:0: Attached scsi generic sg2 type 0
[ 7416.710401] ses 3:0:0:1: Attached Enclosure device
[ 7416.710664] ses 3:0:0:1: Attached scsi generic sg3 type 13
[ 7416.711252] sd 3:0:0:0: [sdb] Spinning up disk...
[ 7422.990390] ses 3:0:0:1: Failed to get diagnostic page 0x1
[ 7422.990415] ses 3:0:0:1: Failed to bind enclosure -19
[ 7424.007382] .ready
[ 7466.007283] usb 2-1: USB disconnect, device number 3
[ 7466.027255] sd 3:0:0:0: [sdb] Read Capacity(10) failed: Result: hostbyte=DID_ERROR driverbyte=DRIVER_OK
[ 7466.027267] sd 3:0:0:0: [sdb] Sense not available.
[ 7466.027277] sd 3:0:0:0: [sdb] 0 512-byte logical blocks: (0 B/0 B)
[ 7466.027282] sd 3:0:0:0: [sdb] 0-byte physical blocks
[ 7466.027291] sd 3:0:0:0: [sdb] Write Protect is off
[ 7466.027296] sd 3:0:0:0: [sdb] Mode Sense: 00 00 00 00
[ 7466.027303] sd 3:0:0:0: [sdb] Asking for cache data failed
[ 7466.027312] sd 3:0:0:0: [sdb] Assuming drive cache: write through
[ 7466.048256] sd 3:0:0:0: [sdb] Read Capacity(10) failed: Result: hostbyte=DID_ERROR driverbyte=DRIVER_OK
[ 7466.048268] sd 3:0:0:0: [sdb] Sense not available.
[ 7466.048288] sd 3:0:0:0: [sdb] Attached SCSI disk
[ 7471.463224] usb 2-1: new SuperSpeed USB device number 4 using xhci_hcd
[ 7471.484041] usb 2-1: New USB device found, idVendor=1058, idProduct=07a8, bcdDevice=10.33
[ 7471.484054] usb 2-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 7471.484068] usb 2-1: Product: My Passport 07A8
[ 7471.484072] usb 2-1: Manufacturer: Western Digital
[ 7471.484075] usb 2-1: SerialNumber: 5744432D524F4D20534E2320
[ 7471.485859] usb-storage 2-1:1.0: USB Mass Storage device detected
[ 7471.486176] scsi host3: usb-storage 2-1:1.0
[ 7472.519732] scsi 3:0:0:0: Direct-Access     WD       My Passport 07A8 1033 PQ: 0 ANSI: 6
[ 7472.520001] scsi 3:0:0:1: Enclosure         WD       SES Device       1033 PQ: 0 ANSI: 6
[ 7472.521877] sd 3:0:0:0: Attached scsi generic sg2 type 0
[ 7472.522173] ses 3:0:0:1: Attached Enclosure device
[ 7472.522429] ses 3:0:0:1: Attached scsi generic sg3 type 13
[ 7472.528987] sd 3:0:0:0: [sdb] Spinning up disk...
[ 7473.539089] .
[ 7478.777692] ses 3:0:0:1: Failed to get diagnostic page 0x1
[ 7478.777712] ses 3:0:0:1: Failed to bind enclosure -19
[ 7479.811030] .ready
[ 7659.814051] sd 3:0:0:0: tag#0 timing out command, waited 180s
1) Connect it to a different machine, and see if that can read it.
Same problem persists.
2) Remove the physical HDD from the case and plug it in directly.
Same problem persists.

Code: Select all

There are two kinds of computer users: those who have backups of important data, and those who have never had a hard drive fail.
If you really can't afford to loose the data on a drive then it must be worth something to you... Ask yourself this: Is it worth the price of a second drive to hold a backup?
My high priority data is always backed up in several locations including on cloud so I havent lost any of my extremely critical data but the HDD still had some videos and data thats of medium priority that I would like to recover.

4joeyirosh1
Posts: 157
Joined: 2016-09-11 18:04
Been thanked: 3 times

Re: Debian cannot recognize External Hard Drive

#6 Post by 4joeyirosh1 »

kedaha wrote: 2022-01-06 11:03 Hi,
I think your External HD is recognized because it gets identified with lsusb.
You should try and enter the file system as root in the terminal.
If your user name is, for example, joey then:

Code: Select all

$ su -
Password: 
# cd /media/joey && ls
This will give you the directory name. For instance mine is:

Code: Select all

d7b06b6b-6b0b-4815-a6e1-7c5cc6df0aa1
So to read the contents I would proceed with:

Code: Select all

# cd d7b06b6b-6b0b-4815-a6e1-7c5cc6df0aa1
# ls
And change directory using cd to the files I wished to read.
Assuming all goes well, you will now be able to read using cat and copy files to your internal disk or wherever you like using the cp command.
I cannot find the HDD when I type the following command

Code: Select all

cd /media/joey && ls

p.H
Global Moderator
Global Moderator
Posts: 3049
Joined: 2017-09-17 07:12
Has thanked: 5 times
Been thanked: 132 times

Re: Debian cannot recognize External Hard Drive

#7 Post by p.H »

4joeyirosh1 wrote: 2022-01-07 05:41 Please find output of dmesg
IMO, defective drive/enclosure or insufficient power supply.

kedaha
Posts: 3521
Joined: 2008-05-24 12:26
Has thanked: 33 times
Been thanked: 77 times

Re: Debian cannot recognize External Hard Drive

#8 Post by kedaha »

Ah, probably because the external HD is not mounted, which you say took 10 minutes after connecting it, which may indicate that it is faulty, you should be able to "see" it show up in /media/joey if you can already see it in the GUI file system.
When you can see it there try the steps again, please. For your reference I show all the steps I did on my own system:

Code: Select all

user@debian:~$ su -
Password: 
root@debian:~# cd /media
root@debian:/media#
root@debian:/media# ls
cdrom  cdrom0  user
root@debian:/media# cd user
root@debian:/media/user# ls
d7b06b6b-6b0b-4815-a6e1-7c5cc6df0aa1
root@debian:/media/user# cd d7b06b6b-6b0b-4815-a6e1-7c5cc6df0aa1
root@debian:/media/user/d7b06b6b-6b0b-4815-a6e1-7c5cc6df0aa1# ls
bin   dev  home        initrd.img.old  lib64       media  opt   root  sbin  sys  usr  vmlinuz
boot  etc  initrd.img  lib             lost+found  mnt    proc  run   srv   tmp  var  vmlinuz.old
If it fails then you'll have to try and mount the External HD via the terminal, which is slightly more complicated.
After connecting it, take a look at the log:

Code: Select all

root@debian:~# tail /var/log/messages
DebianStable

Code: Select all

$ vrms

No non-free or contrib packages installed on debian!  rms would be proud.

4joeyirosh1
Posts: 157
Joined: 2016-09-11 18:04
Been thanked: 3 times

Re: Debian cannot recognize External Hard Drive

#9 Post by 4joeyirosh1 »

kedaha wrote: 2022-01-07 08:36 Ah, probably because the external HD is not mounted, which you say took 10 minutes after connecting it, which may indicate that it is faulty, you should be able to "see" it show up in /media/joey if you can already see it in the GUI file system.
When you can see it there try the steps again, please. For your reference I show all the steps I did on my own system:

Code: Select all

user@debian:~$ su -
Password: 
root@debian:~# cd /media
root@debian:/media#
root@debian:/media# ls
cdrom  cdrom0  user
root@debian:/media# cd user
root@debian:/media/user# ls
d7b06b6b-6b0b-4815-a6e1-7c5cc6df0aa1
root@debian:/media/user# cd d7b06b6b-6b0b-4815-a6e1-7c5cc6df0aa1
root@debian:/media/user/d7b06b6b-6b0b-4815-a6e1-7c5cc6df0aa1# ls
bin   dev  home        initrd.img.old  lib64       media  opt   root  sbin  sys  usr  vmlinuz
boot  etc  initrd.img  lib             lost+found  mnt    proc  run   srv   tmp  var  vmlinuz.old
If it fails then you'll have to try and mount the External HD via the terminal, which is slightly more complicated.
After connecting it, take a look at the log:

Code: Select all

root@debian:~# tail /var/log/messages
Kindly find the output of below

Code: Select all

# tail /var/log/messages
Jan  7 14:23:16 joey-debian kernel: [ 2181.568116] usb 1-1: new high-speed USB device number 13 using xhci_hcd
Jan  7 14:23:16 joey-debian kernel: [ 2182.441154] usb 1-1: New USB device found, idVendor=1058, idProduct=07a8, bcdDevice=10.33
Jan  7 14:23:16 joey-debian kernel: [ 2182.441166] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
Jan  7 14:23:16 joey-debian kernel: [ 2182.441171] usb 1-1: Product: My Passport 07A8
Jan  7 14:23:16 joey-debian kernel: [ 2182.441174] usb 1-1: Manufacturer: Western Digital
Jan  7 14:23:16 joey-debian kernel: [ 2182.441177] usb 1-1: SerialNumber: 5744432D524F4D20534E2320
Jan  7 14:23:16 joey-debian kernel: [ 2182.443007] usb-storage 1-1:1.0: USB Mass Storage device detected
Jan  7 14:23:16 joey-debian kernel: [ 2182.443432] scsi host3: usb-storage 1-1:1.0
Jan  7 14:23:16 joey-debian mtp-probe: checking bus 1, device 13: "/sys/devices/pci0000:00/0000:00:14.0/usb1/1-1"
Jan  7 14:23:16 joey-debian mtp-probe: bus: 1, device: 13 was not an MTP device
Jan  7 14:23:16 joey-debian mtp-probe: checking bus 1, device 13: "/sys/devices/pci0000:00/0000:00:14.0/usb1/1-1"
Jan  7 14:23:16 joey-debian mtp-probe: bus: 1, device: 13 was not an MTP device
Jan  7 14:23:17 joey-debian kernel: [ 2183.460471] scsi 3:0:0:0: Direct-Access     WD       My Passport 07A8 1033 PQ: 0 ANSI: 6
Jan  7 14:23:17 joey-debian kernel: [ 2183.460710] scsi 3:0:0:1: Enclosure         WD       SES Device       1033 PQ: 0 ANSI: 6
Jan  7 14:23:17 joey-debian kernel: [ 2183.462455] sd 3:0:0:0: Attached scsi generic sg2 type 0
Jan  7 14:23:17 joey-debian kernel: [ 2183.462884] ses 3:0:0:1: Attached Enclosure device
Jan  7 14:23:17 joey-debian kernel: [ 2183.463120] ses 3:0:0:1: Attached scsi generic sg3 type 13
Jan  7 14:23:17 joey-debian kernel: [ 2183.463582] sd 3:0:0:0: [sdb] Spinning up disk...
Jan  7 14:23:25 joey-debian kernel: [ 2190.724015] .ready

Still there is no disk on cd /media/joey/

kedaha
Posts: 3521
Joined: 2008-05-24 12:26
Has thanked: 33 times
Been thanked: 77 times

Re: Debian cannot recognize External Hard Drive

#10 Post by kedaha »

To get the UUID for the disk in order to cd to the disk, once mounted.

Code: Select all

root@debian:~# blkid
If the GUI file manager still shows the device as /dev/sdc then, to avoid a bunch of irrelevant output, you can grep sdc with:

Code: Select all

root@debian:~# blkid |grep /dev/sdc
DebianStable

Code: Select all

$ vrms

No non-free or contrib packages installed on debian!  rms would be proud.

p.H
Global Moderator
Global Moderator
Posts: 3049
Joined: 2017-09-17 07:12
Has thanked: 5 times
Been thanked: 132 times

Re: Debian cannot recognize External Hard Drive

#11 Post by p.H »

Utter nonsense. The drive is not working.

kedaha
Posts: 3521
Joined: 2008-05-24 12:26
Has thanked: 33 times
Been thanked: 77 times

Re: Debian cannot recognize External Hard Drive

#12 Post by kedaha »

p.H wrote: 2022-01-07 13:38 Utter nonsense. The drive is not working.
Utter nonsense maybe but with my external disk, I was, for some reason, unable to access it via dolphin but I was able to access it using exactly the same the steps I have posted and thus restore my backed up files.
Of course, if his disk turns out to be simply kaput then 4joeyirosh1 might as well give up & chuck the thing in the recycle bin.
DebianStable

Code: Select all

$ vrms

No non-free or contrib packages installed on debian!  rms would be proud.

4joeyirosh1
Posts: 157
Joined: 2016-09-11 18:04
Been thanked: 3 times

Re: Debian cannot recognize External Hard Drive

#13 Post by 4joeyirosh1 »

4joeyirosh1 wrote: 2022-01-07 12:01
kedaha wrote: 2022-01-07 08:36 Ah, probably because the external HD is not mounted, which you say took 10 minutes after connecting it, which may indicate that it is faulty, you should be able to "see" it show up in /media/joey if you can already see it in the GUI file system.
When you can see it there try the steps again, please. For your reference I show all the steps I did on my own system:

Code: Select all

user@debian:~$ su -
Password: 
root@debian:~# cd /media
root@debian:/media#
root@debian:/media# ls
cdrom  cdrom0  user
root@debian:/media# cd user
root@debian:/media/user# ls
d7b06b6b-6b0b-4815-a6e1-7c5cc6df0aa1
root@debian:/media/user# cd d7b06b6b-6b0b-4815-a6e1-7c5cc6df0aa1
root@debian:/media/user/d7b06b6b-6b0b-4815-a6e1-7c5cc6df0aa1# ls
bin   dev  home        initrd.img.old  lib64       media  opt   root  sbin  sys  usr  vmlinuz
boot  etc  initrd.img  lib             lost+found  mnt    proc  run   srv   tmp  var  vmlinuz.old
If it fails then you'll have to try and mount the External HD via the terminal, which is slightly more complicated.
After connecting it, take a look at the log:

Code: Select all

root@debian:~# tail /var/log/messages
Kindly find the output of below

Code: Select all

# tail /var/log/messages
Jan  7 14:23:16 joey-debian kernel: [ 2181.568116] usb 1-1: new high-speed USB device number 13 using xhci_hcd
Jan  7 14:23:16 joey-debian kernel: [ 2182.441154] usb 1-1: New USB device found, idVendor=1058, idProduct=07a8, bcdDevice=10.33
Jan  7 14:23:16 joey-debian kernel: [ 2182.441166] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
Jan  7 14:23:16 joey-debian kernel: [ 2182.441171] usb 1-1: Product: My Passport 07A8
Jan  7 14:23:16 joey-debian kernel: [ 2182.441174] usb 1-1: Manufacturer: Western Digital
Jan  7 14:23:16 joey-debian kernel: [ 2182.441177] usb 1-1: SerialNumber: 5744432D524F4D20534E2320
Jan  7 14:23:16 joey-debian kernel: [ 2182.443007] usb-storage 1-1:1.0: USB Mass Storage device detected
Jan  7 14:23:16 joey-debian kernel: [ 2182.443432] scsi host3: usb-storage 1-1:1.0
Jan  7 14:23:16 joey-debian mtp-probe: checking bus 1, device 13: "/sys/devices/pci0000:00/0000:00:14.0/usb1/1-1"
Jan  7 14:23:16 joey-debian mtp-probe: bus: 1, device: 13 was not an MTP device
Jan  7 14:23:16 joey-debian mtp-probe: checking bus 1, device 13: "/sys/devices/pci0000:00/0000:00:14.0/usb1/1-1"
Jan  7 14:23:16 joey-debian mtp-probe: bus: 1, device: 13 was not an MTP device
Jan  7 14:23:17 joey-debian kernel: [ 2183.460471] scsi 3:0:0:0: Direct-Access     WD       My Passport 07A8 1033 PQ: 0 ANSI: 6
Jan  7 14:23:17 joey-debian kernel: [ 2183.460710] scsi 3:0:0:1: Enclosure         WD       SES Device       1033 PQ: 0 ANSI: 6
Jan  7 14:23:17 joey-debian kernel: [ 2183.462455] sd 3:0:0:0: Attached scsi generic sg2 type 0
Jan  7 14:23:17 joey-debian kernel: [ 2183.462884] ses 3:0:0:1: Attached Enclosure device
Jan  7 14:23:17 joey-debian kernel: [ 2183.463120] ses 3:0:0:1: Attached scsi generic sg3 type 13
Jan  7 14:23:17 joey-debian kernel: [ 2183.463582] sd 3:0:0:0: [sdb] Spinning up disk...
Jan  7 14:23:25 joey-debian kernel: [ 2190.724015] .ready

Still there is no disk on cd /media/joey/
I am suspecting its a hardware problem.I opened up the drive and when I connect it to my computer the platter and head run for a short while then stop.Kindly see video below for what I mean.How can I resolve this?

https://youtu.be/u34hspDGm9k

steve_v
df -h | grep > 20TiB
df -h | grep > 20TiB
Posts: 1400
Joined: 2012-10-06 05:31
Location: /dev/chair
Has thanked: 79 times
Been thanked: 175 times

Re: Debian cannot recognize External Hard Drive

#14 Post by steve_v »

4joeyirosh1 wrote: 2022-01-07 14:15How can I resolve this?
By replacing the defective drive, and restoring from backup.
Once is happenstance. Twice is coincidence. Three times is enemy action. Four times is Official GNOME Policy.

kedaha
Posts: 3521
Joined: 2008-05-24 12:26
Has thanked: 33 times
Been thanked: 77 times

Re: Debian cannot recognize External Hard Drive

#15 Post by kedaha »

The only thing that occurs to me, as a last resort, once any other repair options have been discounted would be to Swap-Hard-Disk-Drive-Platters, but it might not work.
DebianStable

Code: Select all

$ vrms

No non-free or contrib packages installed on debian!  rms would be proud.

User avatar
argentwolf
Posts: 201
Joined: 2021-09-05 23:21
Has thanked: 185 times
Been thanked: 15 times

Re: Debian cannot recognize External Hard Drive

#16 Post by argentwolf »

Vanguard Debian, because nothing's worse than doing nothing, whimsically!
32-bit | 2 Duo T5270 @ 1.40GHz x 2 CPU | 3.9GiB RAM | NV86 117MiB GPU | 465.76GiB SSD
64-bit | i7-4790 @ 3.60GHz x 8 CPU | 15.6GiB RAM | NVD9 1.9GiB GPU | 931.51GiB SSD

CwF
Global Moderator
Global Moderator
Posts: 2638
Joined: 2018-06-20 15:16
Location: Colorado
Has thanked: 41 times
Been thanked: 192 times

Re: Debian cannot recognize External Hard Drive

#17 Post by CwF »

kedaha wrote: 2022-01-07 15:30 The only thing that occurs to me, as a last resort, once any other repair options have been discounted would be to Swap-Hard-Disk-Drive-Platters, but it might not work.
Totally crazy idea! I've done it, but swapped the head assembly in an IBM ES 80 pin and put a clear cover on it...got the data, not perfect.
p.H wrote: 2022-01-07 08:10 IMO, defective drive/enclosure or insufficient power supply.
This is the most likely answer. I've rescued a handful of externals, mostly bad power. It's a simple check.

p.H
Global Moderator
Global Moderator
Posts: 3049
Joined: 2017-09-17 07:12
Has thanked: 5 times
Been thanked: 132 times

Re: Debian cannot recognize External Hard Drive

#18 Post by p.H »

4joeyirosh1 wrote: 2022-01-07 14:15 I opened up the drive and when I connect it to my computer the platter and head run for a short while then stop.Kindly see video below for what I mean
Sorry but I am not going to watch a video. What do you mean by "opened" and "connect" ? Do you mean you opened the enclosure, removed the drive from it and connected the drive directly to a SATA port and power in the computer ? You did not open the drive itself and watch the platters and heads, did you ?

User avatar
NorthEast
Posts: 349
Joined: 2018-11-18 04:35
Has thanked: 12 times
Been thanked: 30 times

Re: Debian cannot recognize External Hard Drive

#19 Post by NorthEast »

p.H wrote: 2022-01-07 16:37
4joeyirosh1 wrote: 2022-01-07 14:15 I opened up the drive and when I connect it to my computer the platter and head run for a short while then stop.Kindly see video below for what I mean
Sorry but I am not going to watch a video. What do you mean by "opened" and "connect" ? Do you mean you opened the enclosure, removed the drive from it and connected the drive directly to a SATA port and power in the computer ? You did not open the drive itself and watch the platters and heads, did you ?
I think the answers to your questions are in the video. And they appear to be "yes" for the latter two questions.

User avatar
/tmp
Posts: 426
Joined: 2011-12-31 08:39
Location: GNU Userlands
Has thanked: 1 time
Been thanked: 3 times

Re: Debian cannot recognize External Hard Drive

#20 Post by /tmp »

4joeyirosh1 wrote: 2022-01-06 06:54 Hi!I have Debian 11 64 bit installed on my machine.For the last few days I have been unable to access contents of my Western Digital External Drive.The disk is viewable from command below

Code: Select all

# lsusb
Bus 002 Device 005: ID 1058:07a8 Western Digital Technologies, Inc. My Passport (WDBBEP), My Passport for Mac (WDBLUZ)
Also I can see it from disks menu as below as drive sdc but shows no media as below.It took over 10 minutes to be seen on disks menu after connecting the drive.Drive is also not recognized on gparted
Image

How can I access the contents of this drive.It has a lot of my data which I cannot afford to lose.

Thanks
Did you use this drive originally with a system running Mac OS? I ask because it says the device is a My Passport for Mac. These devices have, historically, been partitioned to run using the HFS+ file system (as far as the last time I came across one of these physically). You may need to install

Code: Select all

hfsplus
and/or

Code: Select all

hfsutils 
to access the contents of the drive. You can check out more information about the hfsplus Debian package here.
Bookworm | Intel I7-3667U | Apple Macbook Air 5,2 (Mid 2012) (Laptop) | 8 GB RAM | 3rd Gen Intel Core Graphics

Post Reply