LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 07-17-2023, 03:01 AM   #1
ApproximateIdentity
LQ Newbie
 
Registered: Jul 2023
Posts: 3

Rep: Reputation: 0
External hard drive not detected in debian 12 live environment


Hello,

I have a new external hard drive "Western Digital My Passport Ultra" that doesn't seem to detect in any way when I plug it into a live debian 12 environment. If I run `journalctl -f` or `lsusb` or `lssci` or really anything else I can think of I can't find any evidence that the system itself is detecting the drive at any level.

I currently have popOS on the laptop (the point of the live CD is to install debian 12 instead) which does just automatically detect it, mount it, etc. I can't seem to figure out what is different between the systems. I feel like there must be some kernel module or custom software or something which I might need to manually install in the debian version of the kernel, but I can't figure it out. Is anyone here more familiar with this sort of stuff that can help point me in the right direction?

Here is some info about the popOS system:

Code:
$ lsb_release -a
No LSB modules are available.
Distributor ID:	Pop
Description:	Pop!_OS 21.10
Release:	21.10
Codename:	impish
$ uname -r
5.17.15-76051715-generic
Here are some kernel logs when plugging in the drive to the popOS system:

Code:
Jul 15 13:39:25 pop-os kernel: usb 2-1: new SuperSpeed USB device number 2 using xhci_hcd Jul 15 13:39:25 pop-os kernel: usb 2-1: New USB device found, idVendor=1058, idProduct=260d, bcdDevice=20.07 Jul 15 13:39:25 pop-os kernel: usb 2-1: New USB device strings: Mfr=2, Product=3, SerialNumber=1
Jul 15 13:39:25 pop-os kernel: usb 2-1: Product: My Passport 260D
Jul 15 13:39:25 pop-os kernel: usb 2-1: Manufacturer: Western Digital
Jul 15 13:39:25 pop-os kernel: usb 2-1: SerialNumber: 57584332443433414C4A5244 Jul 15 13:39:25 pop-os kernel: usb-storage 2-1:1.0: USB Mass Storage device detected
Jul 15 13:39:25 pop-os kernel: scsi host1: usb-storage 2-1:1.0
Jul 15 13:39:25 pop-os mtp-probe[2753]: checking bus 2, device 2: "/sys/devices/pci0000:00/0000:00:0d.0/usb2/2-1" Jul 15 13:39:25 pop-os mtp-probe[2753]: bus: 2, device: 2 was not an MTP device Jul 15 13:39:25 pop-os mtp-probe[2757]: checking bus 2, device 2: "/sys/devices/pci0000:00/0000:00:0d.0/usb2/2-1" Jul 15 13:39:25 pop-os mtp-probe[2757]: bus: 2, device: 2 was not an MTP device Jul 15 13:39:26 pop-os kernel: scsi 1:0:0:0: Direct-Access WD My Passport 260D 2007 PQ: 0 ANSI: 6 Jul 15 13:39:26 pop-os kernel: scsi 1:0:0:1: Enclosure WD SES Device 2007 PQ: 0 ANSI: 6
Jul 15 13:39:26 pop-os kernel: sd 1:0:0:0: Attached scsi generic sg1 type 0
Jul 15 13:39:26 pop-os kernel: scsi 1:0:0:1: Attached scsi generic sg2 type 13
Jul 15 13:39:26 pop-os kernel: sd 1:0:0:0: [sdb] Spinning up disk...
Jul 15 13:39:31 pop-os kernel: .....ready
Jul 15 13:39:31 pop-os kernel: sd 1:0:0:0: [sdb] Very big device. Trying to use READ CAPACITY(16). Jul 15 13:39:31 pop-os kernel: sd 1:0:0:0: [sdb] 9767475200 512-byte logical blocks: (5.00 TB/4.55 TiB)
Jul 15 13:39:31 pop-os kernel: sd 1:0:0:0: [sdb] 4096-byte physical blocks
Jul 15 13:39:31 pop-os kernel: sd 1:0:0:0: [sdb] Write Protect is off
Jul 15 13:39:31 pop-os kernel: sd 1:0:0:0: [sdb] Mode Sense: 3f 00 10 00
Jul 15 13:39:31 pop-os kernel: sd 1:0:0:0: [sdb] No Caching mode page found
Jul 15 13:39:31 pop-os kernel: sd 1:0:0:0: [sdb] Assuming drive cache: write through
Jul 15 13:39:31 pop-os kernel:  sdb: sdb1
Jul 15 13:39:31 pop-os kernel: sd 1:0:0:0: [sdb] Attached SCSI disk
Jul 15 13:39:31 pop-os kernel: scsi 1:0:0:1: Wrong diagnostic page; asked for 1 got 8 Jul 15 13:39:31 pop-os kernel: scsi 1:0:0:1: Failed to get diagnostic page 0x1
Jul 15 13:39:31 pop-os kernel: scsi 1:0:0:1: Failed to bind enclosure -19
Jul 15 13:39:31 pop-os kernel: ses 1:0:0:1: Attached Enclosure device
Jul 15 13:39:32 pop-os kernel: EXT4-fs (sdb1): mounted filesystem with ordered data mode. Quota mode: none.
Does anyone here know a good place to start to debug this? Thanks for any help!

Cheers,
Thomas
 
Old 07-17-2023, 05:25 AM   #2
fatmac
LQ Guru
 
Registered: Sep 2011
Location: Upper Hale, Surrey/Hants Border, UK
Distribution: Mainly Devuan, antiX, & Void, with Tiny Core, Fatdog, & BSD thrown in.
Posts: 5,505

Rep: Reputation: Disabled
After plugging it in, run...

Code:
sudo dmesg|tail
to find out what the system has designated it, /dev/sd?

Then try to mount it - it may be a filesystem that Debian doesn't support out of the box, in which case, you would need to download & install the necessary drivers, (which would only be temporary, as would be lost on a reboot of a 'live' system.)
 
Old 07-17-2023, 05:35 AM   #3
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,945

Rep: Reputation: 7325Reputation: 7325Reputation: 7325Reputation: 7325Reputation: 7325Reputation: 7325Reputation: 7325Reputation: 7325Reputation: 7325Reputation: 7325Reputation: 7325
probably this: https://askubuntu.com/questions/1098...not-recognized
or this: https://askubuntu.com/questions/5906.../539185#539185
 
1 members found this post helpful.
Old 07-17-2023, 09:26 AM   #4
ApproximateIdentity
LQ Newbie
 
Registered: Jul 2023
Posts: 3

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by fatmac View Post
After plugging it in, run...

Code:
sudo dmesg|tail
to find out what the system has designated it, /dev/sd?

Then try to mount it - it may be a filesystem that Debian doesn't support out of the box, in which case, you would need to download & install the necessary drivers, (which would only be temporary, as would be lost on a reboot of a 'live' system.)
Well that is the weird part because _nothing_ is printed in the live system at all. I can't find any log showing up in dmesg, journalctl or anywhere else.
 
Old 07-17-2023, 10:06 AM   #5
ApproximateIdentity
LQ Newbie
 
Registered: Jul 2023
Posts: 3

Original Poster
Rep: Reputation: 0
Thanks so much your first link did the trick! More specifically, the answer here: https://askubuntu.com/a/1439675

This harddrive comes with a usb-c cable as well as a small adapater usb-c -> usb-a. My laptop has a usb-c port and two usb-a ports. If I put the live usb drive into one of the usb-a ports, then I can plug in the hard drive into the other usb-a port. But I can't come up with any other configuration that will work. So basically anyone in my position could basically play musical chairs will all possibilities until they figure out something that works.

I have no idea why this is happening, but it at least gives me something that I can work with. Thanks for the help!
 
Old 07-17-2023, 11:57 AM   #6
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,945

Rep: Reputation: 7325Reputation: 7325Reputation: 7325Reputation: 7325Reputation: 7325Reputation: 7325Reputation: 7325Reputation: 7325Reputation: 7325Reputation: 7325Reputation: 7325
glad to help you.
In that case you might want to mark the thread solved.
Also if you wish to say thanks just click on yes.
 
1 members found this post helpful.
  


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
Installing Linux Mint 19.1 cinnamon to an external hard drive & backing up to another external hard drive. bluelakecompany@yahoo.co Linux - Newbie 1 01-23-2019 06:30 PM
IDE DVD drive and SATA 3.0 hard drive not detected on Debian/Ubuntu install Byrnascus Linux - Hardware 7 01-21-2010 11:11 AM
Booting Linux on an external USB hard drive (not a memory stick, a hard drive) comcastuser Linux - Hardware 4 01-13-2010 06:59 PM
ubuntu installed on external hard drive, can't startup without external hard drive. Vanostaajen Linux - Software 23 01-20-2009 09:59 AM
external enclosure for an internal hard drive vs external USB hard drive powah Linux - Hardware 1 03-10-2006 09:03 AM

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

All times are GMT -5. The time now is 07:18 PM.

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