According to Arch Wiki they get generated and stored in the partition when it is formatted. So kinda like labels but automated and with (virtually) no collision risk.
No. Since each partition gets its own UUID, it means it’s generated by the OS on creation, no matter the number of partitions. On boot kernel will scan all UUIDs and then mount and map according to them, which is sightly less efficient method than naming block device directly, but far easier for humans and allows you to throw your drives to whichever port you like.
Are UUIDs built into the hardware, or something your computer decides on based on the drive’s serial number and shit?
Uuids are part of the gpt (table) on the disk.
You’re thinking of
partuuid
, regular uuids are part of the filesystem and made at mkfs timeAh. Makes sense.
According to Arch Wiki they get generated and stored in the partition when it is formatted. So kinda like labels but automated and with (virtually) no collision risk.
I could have RTFM but you guys are more fun.
Yeah, you get the best Linux info when reading meme comments 😁.
I tried a gentoo stage 2 or 3 like 20 years ago. I’m still good.
It’s fun to have people around who read the friendly manual
No. Since each partition gets its own UUID, it means it’s generated by the OS on creation, no matter the number of partitions. On boot kernel will scan all UUIDs and then mount and map according to them, which is sightly less efficient method than naming block device directly, but far easier for humans and allows you to throw your drives to whichever port you like.
So if we swap drives about, the OS will see them as the same drive and/or partition?
deleted by creator
Understood. Ty.