If you’re like most Linux users, you probably mount your partitions at startup using the fstab file. But what if you want to mount partitions automatically? There are a few ways to do this, but the easiest is to use the systemd-auto-mount tool. To use systemd-auto-mount, first create a file called /etc/systemd/system/automount.target.wants/ and add the following line: [Mount] Type=simple Then create a file called /etc/systemd/system/automount.service and add the following lines: [Unit] Description=Mount Partitions at Startup After=network.target [Service] Type=oneshot ExecStart=/usr/bin/systemd-auto-mount –type simple /dev/* [Install] WantedBy=multi-user.target ..


Usually making Ubuntu mount a partition at startup would require fiddling with the “fstab” which is confusing. The easiest way to mount your partitions automatically when you turn on your computer is by reading this article. So let’s get started!

Image by matsuyuki

We are going to install the program that will make the process easy is called “Storage Device Manager”. Enter this command in a terminal window to install it:

Or search for it in Ubuntu Software Center

Now fire it up from System > Administration > Storage Device Manager. Once running, from the left hand side panel choose the partition you want to be mounted on startup (expand the hard drives list first). Then click on “Assistant” on the right side.

Now you are presented with the options window. Just check the “The file system is mounted at boot time” and uncheck the “Mount file system in read-only mode”.

You can edit the other options if you want but be careful, it might damage your system. When done click the “OK” button then hit “Apply”. Close the program and restart to see the effect. That’s it!