Hi, On Mon, Dec 02, 2024 at 09:47:05PM +0100, Hans wrote: > That, what i understand as label is the name, I give a partition. For > example, > in gparted, I can give a partition a label like I want. For example, my > Windows partition can get a label like "windows", "win11", "shitty_windows" > or > whatever, or my datapartition maybe labelled "space1".
Yeah, so, already we are off in the weeds. 🙁 But in that case I'm glad I said something! Lots of things can have UUIDs and lots of things can have LABELs. Sadly when we start to talk about storage a number of those things are involved so people get confused easily about which one is being talked about. I think you're talking about PARTLABELs, which parted refers to as "partition names". Those are held inside the GPT and refer to each partition independent of the contents of that partition. So you could nuke the contents of the partition and it would still show as having that PARTLABEL. Filesystems can also have labels. They are like Filesystem UUIDs. If you destroyed the filesystem you would destroy its label. In fstab you can refer to them with LABEL= instead of UUID=. You can set them with a tool like "e2label" or at creation time (mkfs.ext4 -L mylabel …"). Aside from LABEL confusion there is also UUID confusion, since partitions in a GPT will have UUIDs as well! See /dev/disk/by-partuuid/. In fstab you can use these GPT features with PARTLABEL= and PARTUUID=. We have threads here where tens of messages go by before the participants realise they are talking about two different kinds of LABEL or UUID. Thanks, Andy -- https://bitfolk.com/ -- No-nonsense VPS hosting