External USB-Harddrive is not detected

I want to make a backup before upgrading til 13.2 so i connect my old WD 500GB USB-drive.
The problem is that it wan’t detect it. I also try different USB-ports.

I try it on another PC with Windows and then i works perfect.
It was working earlier, but not anymore.

OpenSUSE 13.1 64bits KDE

wrt an external USB hard drive not being detected … can you provide some more information so that we can understand this better ?

Can it be seen by ‘lsusb’ command sent by a regular user ? Can it be seen by the ‘fdisk -l’ command sent with root permissions ? Dependent on your response there may result in different recommendations.

This could also be due to corruption in the NTFS that Windows does not care about.

Try also , when mounted by MS-Windows, running ‘chkdsk’ on the disk to fix any errors. Then assuming there were errors found and fixed, then try again to see if it works in openSUSE.

If you simply remove the NTFS drive from a Windows box it’ll be marked as dirty and openSUSE will refuse to mount it - you need to “safely unmount” in Windows.

Take a look at /var/log/messages or try dmesg | grep -i ntfs, if you have no syslog installed, just type; journalctl -l and go to the end. It should say something about refusing to mount it because it’s dirty.

Ok, now i have run HD-repair in Windows and no error found. Disconnect it as it should be and connected to my Linux-PC.
Still no automatic detection.

Run mount;


linux-8db7:/home/ronsim # mount
devtmpfs on /dev type devtmpfs (rw,relatime,size=4049228k,nr_inodes=1012307,mode=755)
tmpfs on /dev/shm type tmpfs (rw,relatime)
tmpfs on /run type tmpfs (rw,nosuid,nodev,relatime,mode=755)
devpts on /dev/pts type devpts (rw,relatime,gid=5,mode=620,ptmxmode=000)
/dev/sdb2 on / type ext4 (rw,relatime,data=ordered)
proc on /proc type proc (rw,relatime)
sysfs on /sys type sysfs (rw,relatime)
securityfs on /sys/kernel/security type securityfs (rw,nosuid,nodev,noexec,relatime)
tmpfs on /sys/fs/cgroup type tmpfs (rw,nosuid,nodev,noexec,mode=755)
cgroup on /sys/fs/cgroup/systemd type cgroup (rw,nosuid,nodev,noexec,relatime,xattr,release_agent=/usr/lib/systemd/systemd-cgroups-agent,name=systemd)
pstore on /sys/fs/pstore type pstore (rw,nosuid,nodev,noexec,relatime)
cgroup on /sys/fs/cgroup/cpuset type cgroup (rw,nosuid,nodev,noexec,relatime,cpuset)
cgroup on /sys/fs/cgroup/cpu,cpuacct type cgroup (rw,nosuid,nodev,noexec,relatime,cpuacct,cpu)
cgroup on /sys/fs/cgroup/memory type cgroup (rw,nosuid,nodev,noexec,relatime,memory)
cgroup on /sys/fs/cgroup/devices type cgroup (rw,nosuid,nodev,noexec,relatime,devices)
cgroup on /sys/fs/cgroup/freezer type cgroup (rw,nosuid,nodev,noexec,relatime,freezer)
cgroup on /sys/fs/cgroup/net_cls type cgroup (rw,nosuid,nodev,noexec,relatime,net_cls)
cgroup on /sys/fs/cgroup/blkio type cgroup (rw,nosuid,nodev,noexec,relatime,blkio)
cgroup on /sys/fs/cgroup/perf_event type cgroup (rw,nosuid,nodev,noexec,relatime,perf_event)
cgroup on /sys/fs/cgroup/hugetlb type cgroup (rw,nosuid,nodev,noexec,relatime,hugetlb)
systemd-1 on /proc/sys/fs/binfmt_misc type autofs (rw,relatime,fd=34,pgrp=1,timeout=300,minproto=5,maxproto=5,direct)
mqueue on /dev/mqueue type mqueue (rw,relatime)
hugetlbfs on /dev/hugepages type hugetlbfs (rw,relatime)
tmpfs on /var/run type tmpfs (rw,nosuid,nodev,relatime,mode=755)
debugfs on /sys/kernel/debug type debugfs (rw,relatime)
tmpfs on /var/lock type tmpfs (rw,nosuid,nodev,relatime,mode=755)
/dev/sda2 on /home type ext4 (rw,relatime,data=ordered)
vmware-vmblock on /var/run/vmblock-fuse type fuse.vmware-vmblock (rw,nosuid,nodev,relatime,user_id=0,group_id=0,default_permissions,allow_other)
vmware-vmblock on /run/vmblock-fuse type fuse.vmware-vmblock (rw,nosuid,nodev,relatime,user_id=0,group_id=0,default_permissions,allow_other)
fusectl on /sys/fs/fuse/connections type fusectl (rw,relatime)
none on /var/lib/ntp/proc type proc (ro,nosuid,nodev,relatime)
gvfsd-fuse on /run/user/1000/gvfs type fuse.gvfsd-fuse (rw,nosuid,nodev,relatime,user_id=1000,group_id=100)
gvfsd-fuse on /var/run/user/1000/gvfs type fuse.gvfsd-fuse (rw,nosuid,nodev,relatime,user_id=1000,group_id=100)

Run df;


linux-8db7:/home/ronsim # df
Filesystem     1K-blocks      Used Available Use% Mounted on
/dev/sdb2       20889188  16626748   3178280  84% /
devtmpfs         4049228        16   4049212   1% /dev
tmpfs            4063008      7384   4055624   1% /dev/shm
tmpfs            4063008      1164   4061844   1% /run
tmpfs            4063008         0   4063008   0% /sys/fs/cgroup
tmpfs            4063008      1164   4061844   1% /var/run
tmpfs            4063008      1164   4061844   1% /var/lock
/dev/sda2      455859552 296610768 136069368  69% /home

Run lsusb;


ronsim@linux-8db7:~> lsusb
...
ronsim@linux-8db7:~> Bus 003 Device 006: ID 1058:0901 Western Digital Technologies, Inc. MyBook External HDD

Run fdisk -l;


ronsim@linux-8db7:~>sudo fdisk -l
Disk /dev/sdc: 320.1 GB, 320072933376 bytes, 625142448 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk label type: dos
Disk identifier: 0x8f9c798a


   Device Boot      Start         End      Blocks   Id  System
/dev/sdc1              63   625137344   312568641    7  HPFS/NTFS/exFAT

Run journalctl -b


linux-8db7:/home/ronsim # sudo journalctl -b
des. 01 13:36:59 linux-8db7.site kernel: usb 3-3: USB disconnect, device number 6des. 01 13:37:16 linux-8db7.site kernel: usb 3-1.1.3: new high-speed USB device number 7 using xhci_hcd
des. 01 13:37:16 linux-8db7.site kernel: usb 3-1.1.3: New USB device found, idVendor=1058, idProduct=0901
des. 01 13:37:16 linux-8db7.site kernel: usb 3-1.1.3: New USB device strings: Mfr=1, Product=2, SerialNumber=3
des. 01 13:37:16 linux-8db7.site kernel: usb 3-1.1.3: Product: External HDD
des. 01 13:37:16 linux-8db7.site kernel: usb 3-1.1.3: Manufacturer: Western Digital
des. 01 13:37:16 linux-8db7.site kernel: usb 3-1.1.3: SerialNumber: 57442D5743414D5234323733343031
des. 01 13:37:16 linux-8db7.site kernel: usb-storage 3-1.1.3:1.0: USB Mass Storage device detected
des. 01 13:37:16 linux-8db7.site kernel: scsi7 : usb-storage 3-1.1.3:1.0
des. 01 13:37:16 linux-8db7.site mtp-probe[8566]: checking bus 3, device 7: "/sys/devices/pci0000:00/0000:00:14.0/usb3/3-1/3-1.1/3-1.1.3"
des. 01 13:37:16 linux-8db7.site mtp-probe[8566]: bus: 3, device: 7 was not an MTP device
des. 01 13:37:17 linux-8db7.site kernel: scsi 7:0:0:0: Direct-Access     WD       3200JB External  0108 PQ: 0 ANSI: 0
des. 01 13:37:17 linux-8db7.site kernel: sd 7:0:0:0: Attached scsi generic sg3 type 0
des. 01 13:37:17 linux-8db7.site kernel: sd 7:0:0:0: [sdc] 625142448 512-byte logical blocks: (320 GB/298 GiB)
des. 01 13:37:17 linux-8db7.site kernel: sd 7:0:0:0: [sdc] Write Protect is off
des. 01 13:37:17 linux-8db7.site kernel: sd 7:0:0:0: [sdc] Mode Sense: 03 00 00 00
des. 01 13:37:17 linux-8db7.site kernel: sd 7:0:0:0: [sdc] No Caching mode page found
des. 01 13:37:17 linux-8db7.site kernel: sd 7:0:0:0: [sdc] Assuming drive cache: write through
des. 01 13:37:17 linux-8db7.site kernel: sd 7:0:0:0: [sdc] No Caching mode page found
des. 01 13:37:17 linux-8db7.site kernel: sd 7:0:0:0: [sdc] Assuming drive cache: write through
des. 01 13:37:17 linux-8db7.site kernel:  sdc: sdc1
des. 01 13:37:17 linux-8db7.site kernel: sd 7:0:0:0: [sdc] No Caching mode page found
des. 01 13:37:17 linux-8db7.site kernel: sd 7:0:0:0: [sdc] Assuming drive cache: write through
des. 01 13:37:17 linux-8db7.site kernel: sd 7:0:0:0: [sdc] Attached SCSI disk
des. 01 13:37:25 linux-8db7.site kernel: usb 3-1.1.3: reset high-speed USB device number 7 using xhci_hcd
des. 01 13:37:25 linux-8db7.site kernel: xhci_hcd 0000:00:14.0: xHCI xhci_drop_endpoint called with disabled ep ffff880069dd34c0
des. 01 13:37:25 linux-8db7.site kernel: xhci_hcd 0000:00:14.0: xHCI xhci_drop_endpoint called with disabled ep ffff880069dd3500

As you can see, the HD is detected, but it will not auto-mount

USB2 or USB3 device ? I face a similar issue with my 1TB USB3 harddisk. I am running SuSE 13.2 under Virtualbox in Windows, and thought it was a Virtualbox issue. But it could be SuSe/Linux issue, of course.
For the affected disk, I can see in Windows ‘devicce manager’ that this particular box has an additional built-in USB-hub that the 2 others that work for me on my virtualized environment don’t have.

I reported it here https://forums.virtualbox.org/viewtopic.php?f=6&t=64787

Can you confirm there is no entry in the /etc/fstab for this device. There should be no entry and if for some reason an entry was put in that file then it will disrupt the auto mount.

Copy-Paste from fsbat:

/dev/disk/by-id/ata-INTEL_SSDMAEXC024G3H_CVHA235301CR024D-part1 swap swap defaults 0 0/dev/disk/by-id/ata-INTEL_SSDMAEXC024G3H_CVHA235301CR024D-part2 / ext4 acl,user_xattr 1 1
/dev/disk/by-id/ata-Hitachi_HTS727550A9E364_J3300080H2SBDA-part2 /home ext4 acl,user_xattr 1 2
proc /proc proc defaults 0 0
sysfs /sys sysfs noauto 0 0
debugfs /sys/kernel/debug debugfs noauto 0 0
devpts /dev/pts devpts mode=0620,gid=5 0 0

As you see there is no entry about WD USB-drive

This is an old 320GB USB2-drive :slight_smile: I’ve been testing it in all USB-ports.

What is HD-repair ? I know little to nothing of Windows repair tools.

My experience is to fix the NTFS consistency errors (ie if NTFS is ‘dirty’) one needs to run “chkdsk” with the appropriate argument value. I don’t have an MS-Windows PC handy, but I think it either “chkdsk /f” or “chkdsk -F” wrt fixing the inconsistencies.

This is not an issue anymore. HD-repair is the tool in Explorer. It does the same as ChkDsk. I checked the disk for error and disconnected from computer as it should. There is no errors on diskdrive.

New information!
I run Partition Tool and i could see the disk under “Unused devices”.
I then edit the device with a mounting-point /Backup and now i can access is trough Dolphin.
This meen i can manual mount this disk.

So there is no problem with the diskdrive, but Automount doesn’t work for this disk.

Now the problem is that /Backup is write-protected :frowning:

KDE uses udisks2 to detect disks and mount them.
What does “udisksctl mount -b /dev/sdc1” say? (you should unmount it first of course, via “sudo umount /dev/sdc1”)

Now the problem is that /Backup is write-protected :frowning:

The default mount options used by YaST->Partitioner allow only root to write to the partition.
Open /etc/fstab (you have to be root for this, so maybe run “kdesu kwrite /etc/fstab”), remove all mount options and set them to “defaults”, similar to this:

/dev/sdb1            /windows/C           ntfs-3g    defaults              0 0

Or edit the partition in YaST->Partitioner again, and remove all options from the “Mount Parameters”->“Fstab Options”->“Arbitrary Option Value” text field.