Bugzilla – Bug 15189
/media/*/.Squeezebox directories are being written on unmounted paths
Last modified: 2009-12-02 07:02:11 UTC
the /media/*/.Squeezebox directory is often present on a Fab4 filesystem for /media paths that are not mounted. That is, a /media/sda1/.Squeezebox might exist but without the USB drive present, meaning that /media/sda1 is really on the local filesystem. this is particularly a problem when e.g. an SD card is removed and then a USB drive is added. The scanner starts up and then tries to scan /media/mmc* instead of /media/sda1, resulting in an empty library. strategy should be for scanner to not read .Squeezebox directories on unmounted drives
We need something that uses the mount command and cleans up stale /media dirs.
== Auto-comment from SVN commit #29484 to the slim repo by michael == == https://svn.slimdevices.com/slim?view=revision&revision=29484 == Bug: 15189 Description: ignore mountpoints in /media/ which aren't mounted
Maybe we want to add some cleanup code to media-watcher.pl? Or is this still considered a temporary solution?
I agree we should cleanup those dirs, but media-watcher.pl will be replaced by SP-side udev listener code.
Ben - isn't this part of your work in bug 14880?
I suppose it is now...my plan is to do an rmdir /media/<devName> after successfully umounting /media/<devName> closing in deference to 14880