Ubuntu

How to automount hard disks on boot in Ubuntu

How to automount hard disks on boot in Ubuntu

Internal and external hard disks, including partitions connected to the Ubuntu PC, should get automounted, meaning they should be accessible after the system startup without having to go to the file manager to mount manually.

For some reason, if it's not happening automatically by default settings, there is a fix for it. Let's take a quick look at the steps needed.

Automounting hard disks and partitions in Ubuntu

This guide is tested to be working 100% in Ubuntu 18.04, but you should have no problems what-so-ever in Ubuntu 17.10 and above.

Step 1) Go to “Activities” and launch “Disks.”

Launching Disks from App Menu

Step 2) Select the hard disk or the partition in the left pane and then click on the “Additional partition options,” which is represented by the gear icon.

Hard disk Settings

Step 3) Select “Edit Mount Options… ”.

Partition Settings menu

Step 4) Toggle the “User Session Defaults” option to OFF.

Step 5) Check the box “Mount at system startup.” Make sure “Show in the user interface” is also checked.

Partition Mount Options

Step 6) Click “OK.”

That's it. Next time you boot the computer, you should see the partition automounted.

Adding additional authorization to mount

In case you wanted a layer of security and would like to set up authorization for mounting a hard disk or a partition, you can do that too from the “Disks” utility.

While in the “Mount Options” menu, check the box “Require additional authorization to mount.” You must enter a password to complete the setup.

Mount Options - Setting Authorization

Note that this authorization is only applicable to non-administrators of the PC. Admin users will be able to mount the partition without needing to enter the password. This also means that if there is only one account in your PC, which implies it's that of the administrator, this setting does not affect.

Kuinka Xdotoolia käytetään stimuloimaan hiiren napsautuksia ja näppäilyjä Linuxissa
Xdotool on ilmainen ja avoimen lähdekoodin komentorivityökalu hiiren napsautusten ja näppäimistön simulointiin. Tässä artikkelissa käsitellään lyhyttä...
Viisi parasta ergonomista tietokonehiirtä Linux-tuotteille
Aiheuttaako pitkäaikainen tietokoneen käyttö kipua ranteessasi tai sormissasi?? Onko sinulla nivelten jäykkyys ja sinun on jatkuvasti ravistettava kät...
How to Change Mouse and Touchpad Settings Using Xinput in Linux
Most Linux distributions ship with “libinput” library by default to handle input events on a system. It can process input events on both Wayland and X...