Auto-mounting partitions and Fstab

In this article I go through how to make the /work and /storage partitions if the distro is already installed

Auto-mounting partitions

Before any partition can be used, it needs to be mounted. When you log into your distro, at least your system (or root) partition ( / ) will be automatically mounted. It is handy to auto-mount some other partitions as well, like the one that has Dropbox on it, because the Dropbox-application that launches at startup will be looking for the Dropbox folder right after you log in. Steam is another example, if you have your games on another partition and you want it to be auto-mounted. I can write another article about this later if needed.

  • Add mount-points for partitions (like /work)
  • Make partitions to auto-mount on startup
  • Make some of the partitions invisible in the user interface, which clears up the clutter nicely in file managers, for example
gnome-disk-utility or gnome-disks
# Creating a folder for the /work mount-point:sudo mkdir /work
# Adding user rights for user mj for the /work mount-point:sudo chown mj /work

File Systems Table or Fstab

All this info about what partitions get mounted on system boot and which of them are visible in the user interface is gathered into the file called fstab (file systems table), located inside the folder /etc in your system. If you mess something up in the gnome-disk-utility, you can try to fix the mistakes in its GUI or you can try to peek inside the fstab file via the terminal and remove some random lines (may cause your system not to boot anymore, be careful):

# Open fstab file in the Nano text editor with root privileges:sudo nano /etc/fstab

Auto-mounting network locations

If you’re working on a collaborative network environment, it would make sense to mount some network locations to /shared and /render, for example. I haven’t done this myself yet, but I think it should be relatively easy to find instructions on how to do this. When I need to do this myself, I will update this article and write some instructions here.



Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Manu Järvinen

Manu Järvinen

Animator, 3D modeler and illustrator. Likes open-source stuff like Blender, Linux, Gimp & Krita. And Demoscene. Support me on