Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5

How To Auto-mount Partitions On Startup Using Gnome Disks
#1
Exclamation 

Hey Linuxers...

This keeps being asked on social. So I decided to post it here.. It's all over the net but I guess either no one knows how to search or too lazy, in any case here it is ...

Gnome Disks has many features, like S.M.A.R.T. monitoring, partition management, benchmarking, and more, including one that might not be obvious, but is very useful: it can set drives to mount automatically at startup.

Use it to auto-mount your new hard disk that uses Ext4, your Windows NTFS / exFAT partition, etc.

[Image: jsnRZUU.png]

Disks, or Gnome Disk Utility, is installed by default in many Linux distributions, including Ubuntu, Fedora, both Linux Mint Cinnamon and MATE, Xubuntu, and so on. If it's not installed, use your Linux distribution's package manager to install it - search / install gnome-disk-utility.

For each partition you set to mount automatically on startup, Gnome Disks adds an entry in your /etc/fstab file, useful for those who are not very familiar with editing /etc/fstab. That means each partition mounted on startup through Disks is available system-wide, and not just for your user.

- How to auto-mount partitions on startup using Gnome Disks

Start by launching "Disks" from your applications menu. Choose the hard disk from the left Disks sidebar, select the partition you want to auto mount on startup, then click the button with the gears icon under it, and click Edit Mount Options:

[Image: 27YPYEC.png]

In the mount options, toggle the User Session Defaults option (this may be called Automatic Mount Options on older versions) to enable the options below it, and make sure Mount at system startup is enabled. You can enter a name under Display Name. The defaults should be enough for most users, so you don't have to change anything here. After you're done, click OK :

[Image: HzloKaO.png]

To test the changes, you can reboot your system or type the following command to mount all filesystems mentioned in fstab (since Disks sets partitions to auto-mount on startup by adding them to /etc/fstab) :

sudo mount --all

Hope this answers that question....

~ XeroLinux Developer ~
I do try to help where I can, when I can.
I do this on my own, so I might not have all the answers.
~ My PC build @ a glimpse ~
| ASUS ROG Swift PG279Q Monitor |
| AsRock x570 Tai Chi | AMD Ryzen 5 3600x @ 3.8Ghz |
| ROG STRiX GTX 1080 8Gb GDDR5X | TeamGroup Delta “R” 32GB DDR4 @3000Mhz RGB |
Reply
#2

FANTASTIC to see someone recommend this way. I always do it this way and always recommend doing it this way. Way TOO many have a proverbial cow when this is suggested. I would add the below to this.

1. Launch Dolphin, go to context menu, search for and add Rootactions.
2. Open /mnt/, rightclick in /mnt/, go to Rootactions and give ownership to active user.
3. create folders in /mnt/ for each of your secondary drives and partitions and make these your mount points.
Reply


Possibly Related Threads…
Thread / Author Replies Views Last Post

Forum Jump:


Users browsing this thread: 1 Guest(s)