You are viewing a single thread.
View all comments View context
17 points

Are UUIDs built into the hardware, or something your computer decides on based on the drive’s serial number and shit?

permalink
report
parent
reply
29 points

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.

permalink
report
parent
reply
10 points

I could have RTFM but you guys are more fun.

permalink
report
parent
reply
5 points

Yeah, you get the best Linux info when reading meme comments 😁.

permalink
report
parent
reply
4 points

It’s fun to have people around who read the friendly manual

permalink
report
parent
reply
33 points

Uuids are part of the gpt (table) on the disk.

permalink
report
parent
reply
3 points

Ah. Makes sense.

permalink
report
parent
reply
10 points

You’re thinking of partuuid, regular uuids are part of the filesystem and made at mkfs time

permalink
report
parent
reply
6 points

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.

permalink
report
parent
reply
1 point

So if we swap drives about, the OS will see them as the same drive and/or partition?

permalink
report
parent
reply
1 point
Deleted by creator
permalink
report
parent
reply

linuxmemes

!linuxmemes@lemmy.world

Create post

I use Arch btw


Sister communities:
Community rules
  1. Follow the site-wide rules and code of conduct
  2. Be civil
  3. Post Linux-related content
  4. No recent reposts

Please report posts and comments that break these rules!

Community stats

  • 7.7K

    Monthly active users

  • 1.3K

    Posts

  • 69K

    Comments