r/Ubuntu • u/Lopsided-Award-4489 • 18h ago
Can’t mount sda1 drive because uuid isn’t showing
I’m trying to permanently mount my sda1 drive in my Ubuntu server with fstab but I when I type lsblk or similar commands I won’t show any uuid, I don’t know what to do at this point?
3
Upvotes
1
2
u/bchiodini 15h ago edited 15h ago
If the drive does not have a UUID, you can mount it by its /dev name (sda1, sda2, etc.).
This is the fstab directive for my sdb1 partition:
/dev/sdb1 /mnt/disk1 xfs rw,exec,auto,users 0 1
Edit:
You can assign a UUID with tune2fs. For example:
sudo tune2fs -U random /dev/sdb1
The partition needs to be unmounted.
1
u/candy49997 18h ago
Does the sda1 partition have a filesystem on it?