How do I Automount an Hard dRive in my Computer in Ubuntu?

Tom H tomh0665 at gmail.com
Sun Nov 29 11:21:43 UTC 2015


On Sun, Nov 29, 2015 at 8:17 AM, Ralf Mardorf <silver.bullet at zoho.com> wrote:
>
> - If you want to mount devices at startup use fstab, do not use desktop
>   environment related apps.

If you're using systemd as pid 1, you can create a mount unit.

An example from a test VM:

[Unit]
Before=local-fs.target

[Mount]
What=/dev/disk/by-uuid/f72ce78b-216e-4cfc-ae49-8afc8d6160f2
Where=/opt
Type=ext4
Options=relatime




More information about the ubuntu-users mailing list