Automatically mount external drives to /media/LABEL on boot without a user logged in?
Problem
This question is similar, but kind of the opposite of what I want. I want external USB drives to be mounted automatically at boot, without anyone logged in, to locations like . I don't want to have to enter all the data into fstab, partially because it's tedious and annoying, but mostly because I can't predict what I'll be plugging into it or how the partitions will change in the future. I want the drives to be accessible to things like MPD, and available when I log in with SSH. seems to only mount things when you are locally logged into a Gnome graphical session.
Error Output
/media/<label>
Unverified for your environment
Select your OS to check compatibility.
1 Fix
Fix for: Automatically mount external drives to /media/LABEL on boot without a user logged in?
Note for Ubuntu Server 11.10: This script fails on Ubuntu Server 11.10 due to the obsolete command. has been superseded by . To fix the script, replace "vol_id" by "blkid -o udev" in the script. I've been banging my head around this for a while now, and I think I've found a working solution. This is developed and tested on a Debian-based system, so it should work on Ubuntu. I'll point out the assumptions it makes so it can be adapted to other systems as well. It will automatically mount USB dri…
Awaiting Verification
Be the first to verify this fix
Sign in to verify this fix