grub-devel
[Top][All Lists]
Advanced

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

Re: Search GPT partition in GRUB


From: Vladimir 'φ-coder/phcoder' Serbinenko
Subject: Re: Search GPT partition in GRUB
Date: Fri, 05 Feb 2010 17:46:19 +0100
User-agent: Mozilla-Thunderbird 2.0.0.22 (X11/20091109)

Colin Watson wrote:
>> It would be ideal if we can search the GPT partition/disk by GUID -
>> that's what we got NTFS GUID for =)
>>     
>
> That would be nice, and it might not be all that difficult to implement,
> but of course it would take up extra precious space in the core image.
> I don't think it's really necessary in this case.
>
>   
Implementing it isn't difficult but it's confusing to have two types of
UUIDs. I'm not sure we need GPT UUIDs. grub-mkconfig will continue to
use  filesystem UUIDs, so GPT UUIDs will only be used in maual
configuration. But in the latter case it's much easier to use filesystem
labels when writing configuration manually. Probability of collision
with n-partitions and k bits is lower than
n^2*2^(-k-1)
Even with 1024 partitions and 32-bit IDs it's under 1 over 8192.
Fell free to detail usage cases when my logic is wrong (e.g. disk
configuration, who writes config, external factors and so on)

> Cheers,
>
>   


-- 
Regards
Vladimir 'φ-coder/phcoder' Serbinenko


Attachment: signature.asc
Description: OpenPGP digital signature


reply via email to

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