You are not logged in.

#1 2011-01-07 16:03:54

skodabenz
Banned
From: Tamilnadu, India
Registered: 2010-04-11
Posts: 382

[SOLVED] How to use GPT GUIDs for referencing partitions in /dev?

Hi all,
         I wanted to know whether it is possible to use Unique Partition GUID of a GPT partition to setup /dev/disk/by-part-uuid (something like that) and using that path in the bootloader config's 'root= ' kernel parameter.

It is possible to obtain those GUIDs from gdisk (or maybe from blkid in util-linux-ng - not sure). But how to make udev setup /dev/disk/by-part-uuid like dir with these GUIDs.

Main info http://marc.info/?l=linux-hotplug&m=129425482207292&w=2 and http://git.kernel.org/?p=linux/kernel/g … b78fc0e100 (currently in 2.6.37 only - but this commit will not work since in Arch initramfs is used). Thanks in advance.

Last edited by skodabenz (2011-06-11 12:26:08)


My new forum user/nick name is "the.ridikulus.rat" .

Offline

#2 2011-01-08 19:57:25

rwd
Member
Registered: 2009-02-08
Posts: 664

Re: [SOLVED] How to use GPT GUIDs for referencing partitions in /dev?

What is the advantage of /dev/disk/by-part-uuid/ over /dev/disk/by-uuid/... ?

Offline

#3 2011-01-08 20:38:06

skodabenz
Banned
From: Tamilnadu, India
Registered: 2010-04-11
Posts: 382

Re: [SOLVED] How to use GPT GUIDs for referencing partitions in /dev?

Encypted partitions (not that I use). Also searching will be faster (although not noticable), as parsing partition table is faster than parsing each filesystem and obtaining UUID. See http://www.mail-archive.com/grub-devel@ … 15218.html and http://www.mail-archive.com/grub-devel@ … 15228.html

Last edited by skodabenz (2011-01-08 21:17:39)


My new forum user/nick name is "the.ridikulus.rat" .

Offline

#4 2011-06-11 12:23:26

skodabenz
Banned
From: Tamilnadu, India
Registered: 2010-04-11
Posts: 382

Re: [SOLVED] How to use GPT GUIDs for referencing partitions in /dev?

This support has been added to udev 60-persistent-storage.rules at http://git.kernel.org/?p=linux/hotplug/ … 32148006ac in the form of /dev/disk/by-partuuid instead of /dev/disk/by-part-uuid .


My new forum user/nick name is "the.ridikulus.rat" .

Offline

Board footer

Powered by FluxBB