1

I have been stupid and impatient and removed the usb connection between my pc and an external hard disk when I shouldn't have and now ubuntu cannot detect the HD anymore. Before this, ubuntu always automatically detected the hard disk when I plugged it in into my pc, but no longer. Now when I plug the HD in, it shows a led that it is running and you can also hear it start up, but it is no longer detected by the file system..

  • Running lsusb does not display the hard drive:

    Bus 001 Device 003: ID 1bcf:2b8d Sunplus Innovation Technology Inc. 
    Bus 001 Device 002: ID 8087:8000 Intel Corp. 
    Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
    Bus 003 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
    Bus 002 Device 002: ID 8087:07dc Intel Corp. 
    Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
    
  • Neither does lsblk

     NAME   MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
     loop1    7:1    0  81,6M  1 loop /snap/core/4110
     loop0    7:0    0  80,8M  1 loop /snap/keepassxc/33
     sda      8:0    0 119,2G  0 disk 
     ├─sda5   8:5    0   7,9G  0 part [SWAP]
     └─sda1   8:1    0 111,3G  0 part /
    
  • Also sudo fdisk -l also does not list anything related to the HD:

    Disk /dev/loop0: 80,8 MiB, 84742144 bytes, 165512 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 /dev/loop1: 81,6 MiB, 85549056 bytes, 167088 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 /dev/sda: 119,2 GiB, 128035676160 bytes, 250069680 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
    Disklabel type: dos
    Disk identifier: 0xf9503beb  
    Device     Boot     Start       End   Sectors   Size Id Type
    /dev/sda1  *         2048 233453567 233451520 111,3G 83 Linux
    /dev/sda2       233455614 250068991  16613378   7,9G  5 Extended
    /dev/sda5       233455616 250068991  16613376   7,9G 82 Linux swap / Solar
    
  • Furthermore running dmesg | tail -n 20 does not show anything related to my hard disk being (dis)connected via usb.

  • Finally running gparted also only displays the internal hard disk of my pc.

I really don't care about any data loss, I just hope there is a way to fix this so that I can use the hard disk again.

closed as too broad by Rui F Ribeiro, DarkHeart, Wouter Verhelst, meuh, mdpc Mar 5 '18 at 23:55

Please edit the question to limit it to a specific problem with enough detail to identify an adequate answer. Avoid asking multiple distinct questions at once. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.

  • 1
    Try another cable. As lsusb does not show anyhting, If that does not work, the disk controller might be dead. This borderline off-topic here, not an Unix problem. – Rui F Ribeiro Mar 3 '18 at 16:49
  • Is that something that can happen when you disconnect a hard disk at the wrong time? – MuadDev Mar 3 '18 at 16:51
  • It can happen. I already burnt one once, and I actually saw the sparkle...If you are lucky, might be a bad contact in the USB cable. – Rui F Ribeiro Mar 3 '18 at 16:54
  • I doubt this is the case though. Aren't their other actions I can undertake then those already mentioned? – MuadDev Mar 3 '18 at 17:00
  • Type dmesg, plug in the disk, type dmesg again and have a look at the additional lines in dmesg that appear (or look at the timestamp). If nothing appears, the USB controller of the drive is dead, or it's another hardware problem. If you see errors, it's still a hardware problem. If you see something else, edit question with output. – dirkt Mar 3 '18 at 18:26