How can I make my drives mount automatically on reboot in Ubuntu?

0
16
Asked By TechieTurtle23 On

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?

2 Answers

Answered By LinuxGuru88 On

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.

Answered By User789NotFound On

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.

Related Questions

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.