Thank you for your donation!


Cloudsmith graciously provides open-source package management and distribution for our project.


Solved: USB Drive issue
#1
I'm having an issue where my USB drive does not seem to be recognized anymore. Just did a clean install on new SD card of 8.3.7.

This drive has no issue being recognized and read on several different Windows machines. Doing a library update just spins for a few seconds then goes away. In the Library folder view > USB there are no folders populated. Doing a tail -f /var/log/mpd/log shows no updates.

Any help in troubleshooting this would be greatly appreciated!

Here is the udisks dump that clearly shows the drive. It appears that it is not being mounted.

========================================================================
Showing information for /org/freedesktop/UDisks/devices/sda
  native-path:                 /sys/devices/platform/scb/fd500000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0/usb2/2-1/2-1:1.0/host0/target0:0:0/0:0:0:0/block/sda
  device:                      8:0
  device-file:                 /dev/sda
    presentation:              /dev/sda
    by-id:                     /dev/disk/by-id/usb-SABRENT_SABRENT_DB9876543214E-0:0
    by-path:                   /dev/disk/by-path/platform-fd500000.pcie-pci-0000:01:00.0-usb-0:1:1.0-scsi-0:0:0:0
  detected at:                 Sat 13 Jan 2024 01:16:30 PM CST
  system internal:             0
  removable:                   0
  has media:                   1 (detected at Sat 13 Jan 2024 01:16:30 PM CST)
    detects change:            0
    detection by polling:      0
    detection inhibitable:     0
    detection inhibited:       0
  is read only:                0
  is mounted:                  0
  mount paths:
  mounted by uid:              0
  presentation hide:           0
  presentation nopolicy:       0
  presentation name:
  presentation icon:
  automount hint:
  size:                        525112713216
  block size:                  512
  job underway:                no
  usage:
  type:
  version:
  uuid:
  label:
  partition table:
    scheme:                    gpt
    count:                     2
  drive:
    vendor:                    SABRENT
    model:                     SABRENT
    revision:                  0204
    serial:                    DB9876543214E
    WWN:
    detachable:                1
    can spindown:              0
    rotational media:          Yes, unknown rate
    write-cache:               unknown
    ejectable:                 0
    adapter:                   Unknown
    ports:
    similar devices:
    media:
      compat:
    interface:                 usb
    if speed:                  705032704 bits/s
    ATA SMART:                 not available

========================================================================
Showing information for /org/freedesktop/UDisks/devices/sda1
  native-path:                 /sys/devices/platform/scb/fd500000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0/usb2/2-1/2-1:1.0/host0/target0:0:0/0:0:0:0/block/sda/sda1
  device:                      8:1
  device-file:                 /dev/sda1
    presentation:              /dev/sda1
    by-id:                     /dev/disk/by-id/usb-SABRENT_SABRENT_DB9876543214E-0:0-part1
    by-path:                   /dev/disk/by-path/platform-fd500000.pcie-pci-0000:01:00.0-usb-0:1:1.0-scsi-0:0:0:0-part1
  detected at:                 Sat 13 Jan 2024 01:16:30 PM CST
  system internal:             0
  removable:                   0
  has media:                   1 (detected at Sat 13 Jan 2024 01:16:30 PM CST)
    detects change:            0
    detection by polling:      0
    detection inhibitable:     0
    detection inhibited:       0
  is read only:                0
  is mounted:                  0
  mount paths:
  mounted by uid:              0
  presentation hide:           0
  presentation nopolicy:       0
  presentation name:
  presentation icon:
  automount hint:
  size:                        134217728
  block size:                  512
  job underway:                no
  usage:
  type:
  version:
  uuid:
  label:
  partition:
    part of:                   /org/freedesktop/UDisks/devices/sda
    scheme:                    gpt
    number:                    1
    type:                      E3C9E316-0B5C-4DB8-817D-F92DF00215AE
    flags:
    offset:                    17408
    alignment offset:          3072
    size:                      134217728
    label:                     Microsoft reserved partition
    uuid:                      1F609CE0-E580-42D5-8221-A3C3CB2E5ACD

========================================================================
Showing information for /org/freedesktop/UDisks/devices/sda2
  native-path:                 /sys/devices/platform/scb/fd500000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0/usb2/2-1/2-1:1.0/host0/target0:0:0/0:0:0:0/block/sda/sda2
  device:                      8:2
  device-file:                 /dev/sda2
    presentation:              /dev/sda2
    by-id:                     /dev/disk/by-id/usb-SABRENT_SABRENT_DB9876543214E-0:0-part2
    by-id:                     /dev/disk/by-uuid/3CCA1915CA18CCD0
    by-path:                   /dev/disk/by-path/platform-fd500000.pcie-pci-0000:01:00.0-usb-0:1:1.0-scsi-0:0:0:0-part2
  detected at:                 Sat 13 Jan 2024 01:16:30 PM CST
  system internal:             0
  removable:                   0
  has media:                   1 (detected at Sat 13 Jan 2024 01:16:30 PM CST)
    detects change:            0
    detection by polling:      0
    detection inhibitable:     0
    detection inhibited:       0
  is read only:                0
  is mounted:                  0
  mount paths:
  mounted by uid:              0
  presentation hide:           0
  presentation nopolicy:       0
  presentation name:
  presentation icon:
  automount hint:
  size:                        524976914432
  block size:                  512
  job underway:                no
  usage:                       filesystem
  type:                        ntfs
  version:
  uuid:                        3CCA1915CA18CCD0
  label:                       Media
  partition:
    part of:                   /org/freedesktop/UDisks/devices/sda
    scheme:                    gpt
    number:                    2
    type:                      EBD0A0A2-B9E5-4433-87C0-68B6B72699C7
    flags:
    offset:                    135266304
    alignment offset:          0
    size:                      524976914432
    label:                     Basic data partition
    uuid:                      D6BA5C32-814A-407B-9C54-0895A0B42D35

========================================================================
Reply
#2
(01-13-2024, 09:11 PM)forty5cal1911 Wrote: I'm having an issue where my USB drive does not seem to be recognized anymore. Just did a clean install on new SD card of 8.3.7.
It would help the mpd.log

also, the response of mount

But the fact you say it spins for a while and then nothing... me thinks of a power issue...
Reply
#3
Couple of things to try for troubleshooting.

1. Open Library Config and regenerate the library then look at the moode log for the stats
moodeutl -l

2. Also look at the MPD log and see if there are any permission errors
moodeutl --mpdlog or cat /var/log/mpd/log
Enjoy the Music!
moodeaudio.org | Mastodon Feed | GitHub
Reply
#4
(01-13-2024, 09:31 PM)Tim Curtis Wrote: Couple of things to try for troubleshooting.

1. Open Library Config and regenerate the library then look at the moode log for the stats
moodeutl -l

2. Also look at the MPD log and see if there are any permission errors
moodeutl --mpdlog or cat /var/log/mpd/log

No permissions error being logged but I found that it began to add media to the library then encountered a read error.

Jan 13 13:20 : update: added USB/Media/Music/Adele - 25/09-adele-million_years_ago.flac
Jan 13 13:20 : update: added USB/Media/Music/Adele - 25/10-adele-all_i_ask.flac
Jan 13 13:20 : update: added USB/Media/Music/Adele - 25/11-adele-sweetest_devotion.flac
Jan 13 13:21 : exception: Read failed: Input/output error

After that no more entries in the log. I let it sit for about 10 mins to confirm. Wheel was still spinning in the GUI.
Reply
#5
As @Nutul mentioned prolly a power issue.

What make/model drive?
Is it powered by USB or a separate power supply?
Enjoy the Music!
moodeaudio.org | Mastodon Feed | GitHub
Reply
#6
It is a Crucial sata ssd in a Sabrent 2.5" USB 3 enclosure. It is powered via single USB 3 A port and has no option for dedicated power supply.
Reply
#7
(01-13-2024, 11:02 PM)forty5cal1911 Wrote: It is a Crucial sata ssd in a Sabrent 2.5" USB 3 enclosure. It is powered via single USB 3 A port and has no option for dedicated power supply.

Then just to be sure, you could plug it in a powered USB hub, repeat the scan and see if the issue persists (hope not, for your drive...)
Reply
#8
I have updated the Sabrent SATA to USB bridge firmware and am running a library db rebuild. It has not hung up with the I/O error so I'm going to let it run and see what we get.
Reply
#9
Library DB regeneration after the Sabrent firmware update did hang up without generating the I/O error in the log. After doing some research I didn't realize how VERY picky these RPi 4B's are with regard to USB 3.0 storage adapters.

This is my model Sabrent enclosure: https://www.amazon.com/Sabrent-Tool-free...=UTF8&th=1

In order for some of the more problematic adapters to work you must disable UASP.

Here is what I have done to fix this particular Sabrent USB enclosure.

Identify USB device ID:
sudo lsusb

Bus 002 Device 002: ID 152d:1561 JMicron Technology Corp. / JMicron USA Technology Corp. JMS561U two ports SATA 6Gb/s bridge

Edit /boot/cmdline.txt:
sudo nano /boot/cmdline.txt

Add USB device ID to the beginning of the line:
usb-storage.quirks=152d:1561:u

Write out file and reboot

Here are some very helpful links I found with a ton of info regarding RPi and compatible USB storage devices:

https://jamesachambers.com/best-ssd-stor...-pi-4-400/

https://jamesachambers.com/fixing-storag...e-updates/

After performing this fix the Library DB regeneration went through no problem in less than two minutes with 8k files.
Reply
#10
(01-13-2024, 11:30 PM)Nutul Wrote:
(01-13-2024, 11:02 PM)forty5cal1911 Wrote: It is a Crucial sata ssd in a Sabrent 2.5" USB 3 enclosure. It is powered via single USB 3 A port and has no option for dedicated power supply.

Then just to be sure, you could plug it in a powered USB hub, repeat the scan and see if the issue persists (hope not, for your drive...)

Thank you @Nutul and Tim for the assistance! I wonder if the UASP support requires more power due to it's optimizations.
Reply


Forum Jump: