Ubuntu – How to make partitions mount at startup

automountfstab

How do you make HDDs and partitions mount at startup on Ubuntu?

I always keep my media and data files on separate partitions – one 2tb HDD and a 400 odd gig partition. I have been trying to swap the default folder location for the home directory to my other drives.

It works when I change the /home/user_name/.config/user-dirs.dirs file to the directories I want, but only until I reboot the system. I am only assuming that the drives not mounting is the problem with it, but it would be helpful either way. If any one knows another reason for why the directories change back to default each time that would be good also.

Best Answer

  • GUI Method (recommended for newbies) - The Disks program will automatically edit /etc/fstab for you and not break anything. Type disks on the launcher or gnome-disks in the terminal start the Disks application.

    Select Drive, then partition, then use More actions (cogs icon) button to access 'Edit Mount Options' menu. Turn off User Defaults because you would not be here if it was really set to automount. The rest should be obvious.

    Disks application Disks application - cogs icon menu, about to click Edit Mount Options... Disks application - Mount Options dialog