I had an USB on a headless raspberry pi running debian, but after rebooting without unmounting (there were programs running on the mounted folder), I couldn't use the USB anymore. The following is the output on my Ubuntu 18.04 of:
lsusb, the drive is there:
Bus 001 Device 005: ID 090c:3000 Silicon Motion, Inc. - Taiwan (formerly Feiya Technology Corp.) ll /dev/disk/by-id/usb-Silicon_Motion_Inc._USB_MEMORY_BAR-0\:0, shows the link to /dev/sdb
/dev/disk/by-id/usb-Silicon_Motion_Inc._USB_MEMORY_BAR-0:0 -> ../../sdb file /dev/sdb:
/dev/sdb: block special (8/16) However, mount /dev/sdb folder shows:
mount: /home/steamos/TOSH: no medium found on /dev/sdb. I found the following information that looks like the problem: blockdev --report /dev/sdb:
RO RA SSZ BSZ StartSec Size Device rw 256 512 4096 0 0 /dev/sdb and udevadm info -a -n /dev/sdb if can help:
looking at device '/devices/pci0000:00/0000:00:01.3/0000:01:00.0/usb1/1-7/1-7:1.0/host10/target10:0:0/10:0:0:0/block/sdb': KERNEL=="sdb" SUBSYSTEM=="block" DRIVER=="" ATTR{alignment_offset}=="0" ATTR{capability}=="51" ATTR{discard_alignment}=="0" ATTR{events}=="media_change" ATTR{events_async}=="" ATTR{events_poll_msecs}=="-1" ATTR{ext_range}=="256" ATTR{hidden}=="0" ATTR{inflight}==" 0 0" ATTR{range}=="16" ATTR{removable}=="1" ATTR{ro}=="0" ATTR{size}=="0" ATTR{stat}==" 0 0 0 0 0 0 0 0 0 0 0" So the problem is with device size and ATTR{stat}== 0 0 0 0....
dmesg -w shows:
[33490.303624] usb 1-7: USB disconnect, device number 5 [33510.836920] usb 1-7: new high-speed USB device number 6 using xhci_hcd [33511.432630] usb 1-7: New USB device found, idVendor=090c, idProduct=3000 [33511.432634] usb 1-7: New USB device strings: Mfr=1, Product=2, SerialNumber=0 [33511.432636] usb 1-7: Product: SM3255AA MEMORY BAR [33511.432638] usb 1-7: Manufacturer: Silicon Motion,Inc. [33511.438206] usb-storage 1-7:1.0: USB Mass Storage device detected [33511.438372] scsi host10: usb-storage 1-7:1.0 [33512.473781] scsi 10:0:0:0: Direct-Access USB MEMORY BAR 1000 PQ: 0 ANSI: 0 CCS [33512.474222] sd 10:0:0:0: Attached scsi generic sg2 type 0 [33512.474975] sd 10:0:0:0: [sdb] Attached SCSI removable disk How can I recover the files on the USB?