How can I make my drives mount automatically on reboot in Ubuntu?
Asked by
fit-for-purpose
I've been trying to get some drives to mount automatically so they show up in /media/$USER with their labels instead of just their sizes. However, after I restart my Ubuntu system, the drives are unmounted. I already have fstab entries that were created automatically, but they're not working. What can I do to ensure that these drives persistently mount after a reboot?
Answers
It seems like you already have some fstab entries that were created, which is great. Just ensure they are correctly formatted to mount properly on boot. If you're getting a 'Permission denied' error when trying to modify `/etc/fstab`, check if you have the necessary permissions and try running your command with `sudo` to grant the required access.
Reply to this answer
To make your drives mount automatically at boot time, you'll need to add specific entries to your `/etc/fstab` file. Simply running a mount command doesn't create a persistent setup. I recommend using the `gnome-disks` tool to manage fstab entries, but it's also good to back up your original fstab file before editing it. That way, you can restore it if anything goes wrong.
Reply to this answer
Add your answer
Answers are reviewed before publication.
Related Discussions