help-grub
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: grub: eval vars for linux command / write config agnostic to other d


From: Pascal Hambourg
Subject: Re: grub: eval vars for linux command / write config agnostic to other disks
Date: Sun, 29 Mar 2020 11:04:04 +0200
User-agent: Mozilla/5.0 (X11; Linux i686; rv:68.0) Gecko/20100101 Thunderbird/68.6.0

Le 28/03/2020 à 20:49, Pascal Hambourg a écrit :

You'd rather use a persistent identifier that the kernels kows about : PARTUUID. Get the value with blkid.

Can't remember whether the kernel knows about PARTLABEL too, which would be nicer. Guess not.

Just checked in the Linux kernel changelogs : root=PARTLABEL=xxx support was added in version 4.20, which is quite recent. Too late for the current Debian stable kernel (4.19) though.

Partition labels (aka names) can be set using any GPT compatible partitioning tool such as recent fdisk, parted, gdisk...

Note that the DOS/MBR partition scheme does not support partition labels. It does not support real partition UUIDs either, but the kernel builds synthetic ones by combining the 32-bit disk identifier and the partition number so that PARTUUID can be used (see blkid). Warning : synthetic partition UUIDs are not as reliable as real ones, as the partition numbers may change when editing the partition table (specially for logical partitions).



reply via email to

[Prev in Thread] Current Thread [Next in Thread]