Quantcast
Viewing all articles
Browse latest Browse all 4938

Troubleshooting • Re: USB Drive issue

The primary difference between desktop and command line is that the desktop has an auto mounter and the command line does not.

A logged in desktop will auto mount to /media/<username>/<partitionname> where partitionname is derived from meta data of the partition. It will not mount anything that has an entry in /etc/fstab.

As for command line auto mount I can think of three possibilities but there are probably more:
  1. usbmount. Not tried it for some time. Last time I did it installed but failed to mount anything.
  2. autofs. I've not used this.
  3. fstab with the x-systemd.automount option. Not mount on insert rather mount on fielsystem access.
  4. custom udev rules, That's what usbmout does
OK, that was four Image may be NSFW.
Clik here to view.
:)


If you're not intending to write to the USB drive, mount it read only. While there'll still be stale data left on a hot disconnect there shouldn't be any data loss or corruption.

[shameless self promotion]
For more on the differences between cron and a logged in sesion see Cron – A Beginner's Guide
For alternatives to cron for starting process at boot see Running A Program At Start Up A Beginner's Guide
And if you need help with fstab: Using fstab A Beginner's Guide
[/shameless self promotion]

And if you're going to be installing/running this in public you'd best check on what rights licenses are needed for the midi files. More so if in commercial premises (and that would also mean I'm out of here).

Statistics: Posted by thagrol — Thu May 09, 2024 8:48 pm



Viewing all articles
Browse latest Browse all 4938

Trending Articles