External Hard Drive on Laptop not recognized

Hi I bought a 2 TB external HD connected via usb. My Laptop does not recognize the external HD ???

It works on windows .

Any Idea ? I made the adjustments in “Systems Settings”

Thanks

Is that on the same laptop, or on a different computer?

I sometimes have problems on my current desktop. If I plug the external drive into a USB2 port it works (but more slowly). If I use a USB3 port it sometimes works, but sometimes it fails.

On two other computers, it is fine with a USB3 port.

Hi
What format is the drive? AFAIK if it’s exfat then those packages are not installed by default (fuse-exfat), ntfs-3g should be.

It was tested on a different laptop (windows)

When looking at the external drive via Windows it was formated “exFat”

I installed fuse-exfat …

still not working … however I can see the external device via fdisk -l

otto_oz@linux-nnau:~> sudo fdisk -l
Disk /dev/sda: 465.8 GiB, 500107862016 bytes, 976773168 sectors
Disk model: Samsung SSD 860
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: 0D3DD53F-4A13-43BA-8B4E-4A9B67906640

Device Start End Sectors Size Type
/dev/sda1 2048 18431 16384 8M BIOS boot
/dev/sda2 18432 83904511 83886080 40G Linux filesystem
/dev/sda3 83904512 960464895 876560384 418G Linux filesystem
/dev/sda4 960464896 976773134 16308239 7.8G Linux swap

Disk /dev/sdb: 1.8 TiB, 2000409683968 bytes, 3907050164 sectors
Disk model: high speed
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x8723f23a

Device Boot Start End Sectors Size Id Type
/dev/sdb1 63 3907040129 3907040067 1.8T 7 HPFS/NTFS/exFAT
otto_oz@linux-nnau:~>

sdb1 => removable drive

Hi
Can you mount manually now?


su -
mount /dev/sdb1 /mnt
ls /mnt

I have no issues with a micro sd card formatted this way

Be sure you have both these installed

i+ | exfat-utils | Utilities for exFAT file system       | package    
  
i  | fuse-exfat  | Free exFAT file system implementation | package 

Disk /dev/mmcblk0: 232.4 GiB, 249510756352 bytes, 487325696 sectorsUnits: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x00000000


Device         Boot Start       End   Sectors   Size Id Type
/dev/mmcblk0p1      65536 487325695 487260160 232.4G  7 HPFS/NTFS/exFAT



… no can’t mount …

linux-4p17:/ # mount /dev/sdb
mount: /dev/sdb: can’t find in /etc/fstab.
linux-4p17:/ #
linux-4p17:/ #
linux-4p17:/ # mount /dev/sdb /mnt
FUSE exfat 1.3.0
ERROR: exFAT file system is not found.
linux-4p17:/ #

is there a way , to force format the disk ?

Hi
You mount the partition sdb1 not sdb… try again :wink:

linux-4p17:/ #
linux-4p17:/ # mount /dev/sdb1
mount: /dev/sdb1: can’t find in /etc/fstab.
linux-4p17:/ #
linux-4p17:/ #
linux-4p17:/ # mount /dev/sdb1 /mnt
mount: /mnt: special device /dev/sdb1 does not exist.
linux-4p17:/ #

still not working … are there some pre-requisits I overlooked ?

Hi
OK, I wonder if it’s a udev problem… unplug the device and switch to root user then run the following command and then plug in the device to a USB port;


udevadm monitor

Do you get output of the device being recognized and connected to the USB port?

Press ctrl+c to exit and then run the command;


lsusb -t

linux-4p17:/ # fdisk -l
Disk /dev/sda: 465.8 GiB, 500107862016 bytes, 976773168 sectors
Disk model: Samsung SSD 860
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: 0D3DD53F-4A13-43BA-8B4E-4A9B67906640

Device Start End Sectors Size Type
/dev/sda1 2048 18431 16384 8M BIOS boot
/dev/sda2 18432 83904511 83886080 40G Linux filesystem
/dev/sda3 83904512 960464895 876560384 418G Linux filesystem
/dev/sda4 960464896 976773134 16308239 7.8G Linux swap

Disk /dev/sdb: 1.8 TiB, 2000409683968 bytes, 3907050164 sectors
Disk model: high speed
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
linux-4p17:/ #

linux-4p17:/ # udevadm monitor
monitor will print the received events for:
UDEV - the event which udev sends out after rule processing
KERNEL - the kernel uevent

then … unplug

KERNEL[20253.348437] remove /devices/pci0000:00/0000:00:12.2/usb1/1-1/1-1:1.0/host4/target4:0:0/4:0:0:0/bsg/4:0:0:0 (bsg)
KERNEL[20253.348500] remove /devices/pci0000:00/0000:00:12.2/usb1/1-1/1-1:1.0/host4/target4:0:0/4:0:0:0/scsi_generic/sg2 (scsi_generic)
KERNEL[20253.348533] remove /devices/pci0000:00/0000:00:12.2/usb1/1-1/1-1:1.0/host4/target4:0:0/4:0:0:0/scsi_device/4:0:0:0 (scsi_device)
KERNEL[20253.348909] remove /devices/pci0000:00/0000:00:12.2/usb1/1-1/1-1:1.0/host4/target4:0:0/4:0:0:0/scsi_disk/4:0:0:0 (scsi_disk)
KERNEL[20253.349728] remove /devices/virtual/bdi/8:16 (bdi)
KERNEL[20253.349989] remove /devices/pci0000:00/0000:00:12.2/usb1/1-1/1-1:1.0/host4/target4:0:0/4:0:0:0/block/sdb (block)
KERNEL[20253.350182] remove /devices/pci0000:00/0000:00:12.2/usb1/1-1/1-1:1.0/host4/target4:0:0/4:0:0:0 (scsi)
UDEV [20253.353089] remove /devices/pci0000:00/0000:00:12.2/usb1/1-1/1-1:1.0/host4/target4:0:0/4:0:0:0/bsg/4:0:0:0 (bsg)
UDEV [20253.353828] remove /devices/pci0000:00/0000:00:12.2/usb1/1-1/1-1:1.0/host4/target4:0:0/4:0:0:0/scsi_generic/sg2 (scsi_generic)
UDEV [20253.354870] remove /devices/virtual/bdi/8:16 (bdi)
UDEV [20253.355790] remove /devices/pci0000:00/0000:00:12.2/usb1/1-1/1-1:1.0/host4/target4:0:0/4:0:0:0/scsi_device/4:0:0:0 (scsi_device)
UDEV [20253.356359] remove /devices/pci0000:00/0000:00:12.2/usb1/1-1/1-1:1.0/host4/target4:0:0/4:0:0:0/scsi_disk/4:0:0:0 (scsi_disk)
UDEV [20253.357495] remove /devices/pci0000:00/0000:00:12.2/usb1/1-1/1-1:1.0/host4/target4:0:0/4:0:0:0/block/sdb (block)
UDEV [20253.359883] remove /devices/pci0000:00/0000:00:12.2/usb1/1-1/1-1:1.0/host4/target4:0:0/4:0:0:0 (scsi)
KERNEL[20253.404312] remove /devices/pci0000:00/0000:00:12.2/usb1/1-1/1-1:1.0/host4/target4:0:0 (scsi)
KERNEL[20253.404399] remove /devices/pci0000:00/0000:00:12.2/usb1/1-1/1-1:1.0/host4/scsi_host/host4 (scsi_host)
KERNEL[20253.404445] remove /devices/pci0000:00/0000:00:12.2/usb1/1-1/1-1:1.0/host4 (scsi)
UDEV [20253.408532] remove /devices/pci0000:00/0000:00:12.2/usb1/1-1/1-1:1.0/host4/scsi_host/host4 (scsi_host)
UDEV [20253.408891] remove /devices/pci0000:00/0000:00:12.2/usb1/1-1/1-1:1.0/host4/target4:0:0 (scsi)
UDEV [20253.410390] remove /devices/pci0000:00/0000:00:12.2/usb1/1-1/1-1:1.0/host4 (scsi)
KERNEL[20253.420295] remove /devices/pci0000:00/0000:00:12.2/usb1/1-1/1-1:1.0 (usb)
KERNEL[20253.420989] remove /devices/pci0000:00/0000:00:12.2/usb1/1-1 (usb)
UDEV [20253.422372] remove /devices/pci0000:00/0000:00:12.2/usb1/1-1/1-1:1.0 (usb)
UDEV [20253.424316] remove /devices/pci0000:00/0000:00:12.2/usb1/1-1 (usb)

unplugged

KERNEL[20253.348437] remove /devices/pci0000:00/0000:00:12.2/usb1/1-1/1-1:1.0/host4/target4:0:0/4:0:0:0/bsg/4:0:0:0 (bsg)
KERNEL[20253.348500] remove /devices/pci0000:00/0000:00:12.2/usb1/1-1/1-1:1.0/host4/target4:0:0/4:0:0:0/scsi_generic/sg2 (scsi_generic)
KERNEL[20253.348533] remove /devices/pci0000:00/0000:00:12.2/usb1/1-1/1-1:1.0/host4/target4:0:0/4:0:0:0/scsi_device/4:0:0:0 (scsi_device)
KERNEL[20253.348909] remove /devices/pci0000:00/0000:00:12.2/usb1/1-1/1-1:1.0/host4/target4:0:0/4:0:0:0/scsi_disk/4:0:0:0 (scsi_disk)
KERNEL[20253.349728] remove /devices/virtual/bdi/8:16 (bdi)
KERNEL[20253.349989] remove /devices/pci0000:00/0000:00:12.2/usb1/1-1/1-1:1.0/host4/target4:0:0/4:0:0:0/block/sdb (block)
KERNEL[20253.350182] remove /devices/pci0000:00/0000:00:12.2/usb1/1-1/1-1:1.0/host4/target4:0:0/4:0:0:0 (scsi)
UDEV [20253.353089] remove /devices/pci0000:00/0000:00:12.2/usb1/1-1/1-1:1.0/host4/target4:0:0/4:0:0:0/bsg/4:0:0:0 (bsg)
UDEV [20253.353828] remove /devices/pci0000:00/0000:00:12.2/usb1/1-1/1-1:1.0/host4/target4:0:0/4:0:0:0/scsi_generic/sg2 (scsi_generic)
UDEV [20253.354870] remove /devices/virtual/bdi/8:16 (bdi)
UDEV [20253.355790] remove /devices/pci0000:00/0000:00:12.2/usb1/1-1/1-1:1.0/host4/target4:0:0/4:0:0:0/scsi_device/4:0:0:0 (scsi_device)
UDEV [20253.356359] remove /devices/pci0000:00/0000:00:12.2/usb1/1-1/1-1:1.0/host4/target4:0:0/4:0:0:0/scsi_disk/4:0:0:0 (scsi_disk)
UDEV [20253.357495] remove /devices/pci0000:00/0000:00:12.2/usb1/1-1/1-1:1.0/host4/target4:0:0/4:0:0:0/block/sdb (block)
UDEV [20253.359883] remove /devices/pci0000:00/0000:00:12.2/usb1/1-1/1-1:1.0/host4/target4:0:0/4:0:0:0 (scsi)
KERNEL[20253.404312] remove /devices/pci0000:00/0000:00:12.2/usb1/1-1/1-1:1.0/host4/target4:0:0 (scsi)
KERNEL[20253.404399] remove /devices/pci0000:00/0000:00:12.2/usb1/1-1/1-1:1.0/host4/scsi_host/host4 (scsi_host)
KERNEL[20253.404445] remove /devices/pci0000:00/0000:00:12.2/usb1/1-1/1-1:1.0/host4 (scsi)
UDEV [20253.408532] remove /devices/pci0000:00/0000:00:12.2/usb1/1-1/1-1:1.0/host4/scsi_host/host4 (scsi_host)
UDEV [20253.408891] remove /devices/pci0000:00/0000:00:12.2/usb1/1-1/1-1:1.0/host4/target4:0:0 (scsi)
UDEV [20253.410390] remove /devices/pci0000:00/0000:00:12.2/usb1/1-1/1-1:1.0/host4 (scsi)
KERNEL[20253.420295] remove /devices/pci0000:00/0000:00:12.2/usb1/1-1/1-1:1.0 (usb)
KERNEL[20253.420989] remove /devices/pci0000:00/0000:00:12.2/usb1/1-1 (usb)
UDEV [20253.422372] remove /devices/pci0000:00/0000:00:12.2/usb1/1-1/1-1:1.0 (usb)
UDEV [20253.424316] remove /devices/pci0000:00/0000:00:12.2/usb1/1-1 (usb)

plugged

linux-4p17:/ # lsusb -t
/: Bus 06.Port 1: Dev 1, Class=root_hub, Driver=ohci-pci/4p, 12M
/: Bus 05.Port 1: Dev 1, Class=root_hub, Driver=ohci-pci/5p, 12M
|__ Port 3: Dev 3, If 0, Class=Wireless, Driver=btusb, 12M
|__ Port 3: Dev 3, If 1, Class=Wireless, Driver=btusb, 12M
/: Bus 04.Port 1: Dev 1, Class=root_hub, Driver=ohci-pci/5p, 12M
|__ Port 3: Dev 2, If 0, Class=Human Interface Device, Driver=usbhid, 12M
|__ Port 3: Dev 2, If 1, Class=Human Interface Device, Driver=usbhid, 12M
/: Bus 03.Port 1: Dev 1, Class=root_hub, Driver=ehci-pci/4p, 480M
/: Bus 02.Port 1: Dev 1, Class=root_hub, Driver=ehci-pci/5p, 480M
|__ Port 5: Dev 4, If 0, Class=Video, Driver=uvcvideo, 480M
|__ Port 5: Dev 4, If 1, Class=Video, Driver=uvcvideo, 480M
/: Bus 01.Port 1: Dev 1, Class=root_hub, Driver=ehci-pci/5p, 480M
|__ Port 1: Dev 22, If 0, Class=Mass Storage, Driver=usb-storage, 480M
|__ Port 4: Dev 4, If 0, Class=Hub, Driver=hub/4p, 480M
linux-4p17:/ # ^C

???

Hi
How is the device powered, via USB, via a USB Y-cable (to get extra power from a secondary USB port), external power. I would guess the machine you tried it on in Windows was USB 3.0 (or C connector?).

Likely it’s a power issue since the drive is visible when you plug it in (power up the electronics) but not enough power to drive the drive itself…

Do you have a Y cable or, does it have the option to plug in a 5V external power pack.

I have the same problem with a newly acquired external disk. With Windows 10 (same or other computer) it works, but not with openSuSe Leap 15.1. When connecting, the disk first shows with lsusb and ls /dev/sd*, then after a short while it disappears again. However, there are differences:

  1. fdisk -l does not show the disk, rather it hangs until the disk is unplugged.
  2. dmesg definitely shows an error:
 4161.820782] usb 2-1: new SuperSpeed USB device number 3 using xhci_hcd
 4161.845155] usb 2-1: New USB device found, idVendor=2109, idProduct=0711
 4161.845160] usb 2-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
 4161.845164] usb 2-1: Product: VLI Product String
 4161.845167] usb 2-1: Manufacturer: VLI manufacture String
 4161.845170] usb 2-1: SerialNumber: 000000123AE7
 4161.846397] usb-storage 2-1:1.0: USB Mass Storage device detected
 4161.846635] usb-storage 2-1:1.0: Quirks match for vid 2109 pid 0711: 2000000
 4161.846723] scsi host3: usb-storage 2-1:1.0
 4163.832130] scsi 3:0:0:0: Direct-Access     USB3.0   high speed       2210 PQ: 0 ANSI: 6
 4163.832596] sd 3:0:0:0: Attached scsi generic sg3 type 0
 4163.832767] sd 3:0:0:0: [sdc] 3907029164 512-byte logical blocks: (2.00 TB/1.82 TiB)
 4163.833128] sd 3:0:0:0: [sdc] Write Protect is off
 4163.833135] sd 3:0:0:0: [sdc] Mode Sense: 2f 00 00 00
 4163.833489] sd 3:0:0:0: [sdc] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
 4163.852435]  sdc: sdc1
 4163.853397] sd 3:0:0:0: [sdc] Attached SCSI disk
 4200.319924] usb 2-1: Disable of device-initiated U1 failed.
 4205.439780] usb 2-1: Disable of device-initiated U2 failed.
 4209.974798] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
 4210.815630] xhci_hcd 0000:00:14.0: Timeout while waiting for setup device command
 4216.191333] xhci_hcd 0000:00:14.0: Timeout while waiting for setup device command
 4216.399226] usb 2-1: device not accepting address 3, error -62

Seems to be a bug in the USB driver.

Hi
There is likely an issue with that device and the driver since it has a quirk added…


usb-storage 2-1:1.0: Quirks match for vid 2109 pid 0711

Is it plugged into a USB 3.0 port, looks like that device might be trying to use the UAS driver…

Is the uas module loaded?


lsmod |grep uas

Hi
I see a few links about your device…

https://www.raspberrypi.org/forums/viewtopic.php?t=245931
https://www.smartmontools.org/ticket/594
https://goughlui.com/2019/09/08/teardown-two-generic-black-transparent-2-5-sata-to-usb-3-0-external-enclosures/ (windows issues…)