Quantcast
Channel: Active questions tagged mount+fstab - Ask Ubuntu
Viewing all articles
Browse latest Browse all 699

Is it better to use UUID or PARTUUID to automount HDD with fstab?

$
0
0

I'm trying to setup my external harddrive to mount automatically on startup, following Akshit's terminal guide.

I initially used the PARTUUID in `/etc/fastab' instead of the UUID:

UUID=191486e0-6049-46aa-973c-425d317b629a /mnt/nas exfat uid=1000,gid=1000,umask=0022,auto,rw 0 0

This gave me an error when I ran findmnt --verify --verbose at which point I rechecked blkid and noticed that I'd been using the partition ID:

/dev/sdb1: LABEL="My Book" UUID="20C9-C659" TYPE="exfat" PTTYPE="atari" PARTLABEL="My Book" PARTUUID="191486e0-6049-46aa-973c-425d317b629a"

So I've added the actual UUID in fstab, but now I'm not sure if I should be using that or if I should be using the PARTUUID, and why my UUID is so much shorter than other examples that I've seen (especially when a "UUID is guaranteed to be unique. As far as I know, collisions will not happen within the lifetime of the universe").


Viewing all articles
Browse latest Browse all 699

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>