How to Auto Mount External Disk Partitions in Ubuntu 22.04 | Fedora 37/38 May 9, 2023

Condobloke

Well-Known Member
Joined
Apr 30, 2017
Messages
8,180
Reaction score
6,654
Credits
54,576


This is great but I need it more to mount multiple "ext4" partitions on the same disk, especially the internal hard disk. :)

Kubuntu could do this automatically, but I didn't research how it goes about it. I tried to get it to work on Spiral Linux KDE but it asks for my regular user's password as soon as the desktop is ready which sucks.

This is one reason why I have kept Kubuntu around, otherwise it's pretty good! Too bad I can't conceive using it more often than Manjaro and Spiral, before my Internet subscription expires.

Ugh, NTFS which prevented Spiral the other day from reading an external backup disk. I was forced to go into Windows to repair it and copy some files from it into pluggable more-reliable media.
 
To mount partitions at boot/start up, add the disk to /etc/fstab - https://www.man7.org/linux/man-pages/man5/fstab.5.html

Here is what my /etc/fstab looks like...

Code:
keith@msi:~$ cat /etc/fstab
UUID=2afe5cd0-377c-49c9-bbf0-2345b9ddb6c4    /    ext4    defaults,noatime0    1
UUID=1421509d-016a-43bc-8987-befe881f7b34    /home    ext4    defaults,noatime0    2
/swapfile    none    swap    sw    0    0
UUID=8805-6945    /boot/efi    vfat    umask=0077    0    1
 

Members online


Top