Thank you for your donation!


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


Problem: Cannot set up USB hard drives
#11
(02-17-2020, 03:40 PM)Cymbal Monkey Wrote: @TheOldPresbyope

I updated to the latest version of Moode and ran the commands. This is what it spat out. I don't really know what I'm looking at as far as the first command is concerned, but it clearly sees the hard drive, which contains both a backup of my laptop and a partition called archive, which contains the music I would like to access in \archive\music. I'm not quite sure where I go from here though.

Code:
pi@moode:~ $ sudo blkid
ls -l /media                                                                                                    
/dev/mmcblk0p1: LABEL_FATBOOT="boot" LABEL="boot" UUID="5203-DB74" TYPE="vfat" PARTUUID="6c586e13-01"            
/dev/mmcblk0p2: LABEL="rootfs" UUID="2ab3f8e1-7dc6-43f5-b0db-dd5759d51d4e" TYPE="ext4" PARTUUID="6c586e13-02"    
/dev/mmcblk0: PTUUID="6c586e13" PTTYPE="dos"                                                                    
pi@moode:~ $  ls -l /media
total 129                                                                                                        
drwxrwxrwx 1 root root 131072 Dec 31  1969 Archive
drwxr-xr-x 2 root root    512 Dec 31  1969 EFI

I'm perplexed that blkid didn't pick up your hard drive partitions. It shows only the uSD card (/dev/mmcblk0...).

What do you get with a mount command?

For example, on the same a different player than I mentioned before, this one with both a USB hard drive and a USB thumb drive attached,
Code:
pi@moodeLR:~ $ mount
/dev/mmcblk0p2 on / type ext4 (rw,noatime)
...bunch of stuff deleted...
/dev/mmcblk0p1 on /boot type vfat (rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=ascii,shortname=mixed,errors=remount-ro)
/dev/sda1 on /media/MUSIC type vfat (rw,nosuid,nodev,noexec,noatime,nodiratime,fmask=0022,dmask=0022,codepage=437,iocharset=ascii,shortname=mixed,showexec,utf8,errors=remount-ro,uhelper=udisks)
...
/dev/sdb1 on /media/CorePlus type vfat (rw,nosuid,nodev,noexec,noatime,nodiratime,fmask=0022,dmask=0022,codepage=437,iocharset=ascii,shortname=mixed,showexec,utf8,errors=remount-ro,uhelper=udisks)
...

I would expect your player also to show some /dev/sd... devices in both the mount and the blkid output.

The permissions on your /media/Archive give everyone permission to read and write its contents. That's not the default way moOde mounts drives. Did you create or manipulate this subdirectory yourself?

Can you recursively list its contents from the command line using ls -R?

Again, using my example player and asking for just the first 40 lines of output
Code:
pi@moodeLR:/media $ ls -lR /media/MUSIC|head -40
/media/MUSIC:
total 576
drwxr-xr-x 10 root root 32768 Nov  5 08:46 AnadyomeneRecords
drwxr-xr-x  3 root root 32768 Sep  1 10:00 BLUES
drwxr-xr-x  2 root root 32768 Aug 27 11:40 cdrips
drwxr-xr-x 70 root root 32768 Sep 11 12:31 CLASSICAL
drwxr-xr-x  4 root root 32768 Sep  1 12:58 FOLK
drwxr-xr-x  7 root root 32768 Sep  1 08:58 JAZZ
drwxr-xr-x  2 root root 32768 Sep 14 18:31 M3Us
drwxr-xr-x  5 root root 32768 Sep  1 10:00 MISC
drwxr-xr-x  2 root root 32768 Aug 21 12:46 MOVIE
drwxr-xr-x  2 root root 32768 Aug 21 12:45 MUSICAL
drwxr-xr-x  3 root root 32768 Sep 11 12:31 OPERA
drwxr-xr-x 20 root root 32768 Sep  1 11:01 ROCK
drwxr-xr-x  4 root root 32768 Sep  1 10:16 SOUL
drwxr-xr-x  3 root root 32768 Oct 16 10:07 test
drwxr-xr-x  2 root root 32768 Dec  3 17:09 TestTones
drwxr-xr-x  7 root root 32768 Nov  4 11:13 TestVinnnTracks
drwxr-xr-x  2 root root 32768 Aug 21 12:45 WORLD
drwxr-xr-x  4 root root 32768 Sep  8 07:35 YouTube

/media/MUSIC/AnadyomeneRecords:
total 256
drwxr-xr-x 2 root root 32768 Nov  5 08:37 Agnes_de_Venice_-_Christos_Anesti_Mar2013
drwxr-xr-x 2 root root 32768 Nov  5 08:39 BM_-_Anastenazontas_ston_Theo_-_2014
drwxr-xr-x 2 root root 32768 Nov  4 13:41 BM_-_Atlantis_-_24bit_96kHz_-_2ndEdition
drwxr-xr-x 2 root root 32768 Nov  5 08:37 BRUNETTE_MODELS_-_Autarky_-_2010
drwxr-xr-x 2 root root 32768 Nov  5 08:48 BRUNETTE_MODELS_-_Impressions_of_whispers_-_2000
drwxr-xr-x 2 root root 32768 Nov  4 21:03 BRUNETTE_MODELS_-_Last_Poem_-_2008
drwxr-xr-x 2 root root 32768 Nov  5 08:47 BRUNETTE_MODELS_-_Live_Gorlice_-_The_4th_Album_-_2004
drwxr-xr-x 2 root root 32768 Nov  5 08:38 BRUNETTE_MODELS_-_Parousia_-_Nov2012

/media/MUSIC/AnadyomeneRecords/Agnes_de_Venice_-_Christos_Anesti_Mar2013:
total 123872
-rw-r--r-- 1 root root 121100690 Mar 30  2013 Agnes_de_Venice_-_Christos_Anesti_Mar2013_24bit_96kHz.flac
-rw-r--r-- 1 root root   1014854 Mar 30  2013 Christos_Anesti_-_Cover_-_Mar2013.jpg
-rw-r--r-- 1 root root   1014854 Nov  4 13:39 cover.jpg
-rw-r--r-- 1 root root   3685790 Mar 30  2013 Read_me.pdf

/media/MUSIC/AnadyomeneRecords/BM_-_Anastenazontas_ston_Theo_-_2014:

You should include enough lines to show the presence of actual music files---.mp3, .flac, whatever.

Have you tried copying a few of your music files to a USB thumb drive to see if your moOde player can automount it and MPD can find the files?

Regards,
Kent
Reply
#12
Upon formatting my hard drive, taking it down to only one partition, I actually got the hard drive to read! Success! However, no matter how many times I update MPD, only some of the hard drive's music ends up in the browse menu. I can dig through the files on the hard drive if I dig thought the USB path in the list view, and I can play things from there, but they're not added to browse view, which is kind of a pain. Any idea what's going on here?

Also, my hard drive doesnt' spin down, which is concerning.
Reply
#13
(02-18-2020, 01:53 PM)Cymbal Monkey Wrote: Upon formatting my hard drive, taking it down to only one partition, I actually got the hard drive to read! Success! However, no matter how many times I update MPD, only some of the hard drive's music ends up in the browse menu. I can dig through the files on the hard drive if I dig thought the USB path in the list view, and I can play things from there, but they're not added to browse view, which is kind of a pain. Any idea what's going on here?

Also, my hard drive doesnt' spin down, which is concerning.

Yay, music! 

I'm not sure what was going on with your multi-partition drive. In my example, I used a thumb drive with one vfat and two ext4 partitions and all three were found.

If tracks are missing it's likely due to MPD objecting to metadata formatting. Check the MPD log at /var/log/mpd/log. The default log level is "default" which may not result in enough detail, though. Have a look, e.g., at https://wiki.archlinux.org/index.php/Mus...leshooting, especially the Note in the section "MPD hangs on first startup".

I don't have any insight into the spin-down issue, sorry.

Regards,
Kent
Reply
#14
Looks like some of that might solve my problem as long as I can have it run for 60-80 hours uninterrupted (I've got nearly 500gb of files in there), but, truth be told, I don't really know what I'm looking at her. I'm far from a Linux user and when it comes to terminal stuff, I can just about follow a handholding walkthrough.

I really appreciate your help with all this so far. I'll see what I can figure out with regard to these tag fixers.
Reply
#15
You know, I'm not really sure that tag problems are the issue, because the MPD only indexed artists K through P, and it did almost all of them in K through P.
Reply


Forum Jump: