grub-devel
[Top][All Lists]
Advanced

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

Re: Support for search by disk id module


From: Andrei Borzenkov
Subject: Re: Support for search by disk id module
Date: Sat, 15 Apr 2017 14:18:48 +0300
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0

15.04.2017 13:55, Mat628 пишет:
> Hi,
> 
> I wanted to verify/clarify what would be an acceptable format for a disk id 
> to be used as a search parameter for a module to return the associated device.
> 
> Where on Linux, devices are mapped to a hardware specific path.
> For hard disks it is
> 
> type-product_serial(-partition#)
> 

There is no established standard and this changed over time. GRUB uses
platform firmware to access devices, so it can only use information
firmware exports. In general we have no way to query for this information.


> ata-ST42443343DR_6GE23Y09
> ata-ST42443343DR_6GE23Y09-part1
> 
> But for a USB flash drive it is
> 
> type-vendor_product_serial-(?physical id?)-(part#)
> 
> usb-SanDisk_Ultra_4E53324345657878876543-0:0-part1
> 
> where product = model name
> 
> Would it be okay to shorten this for USB flash drive to
> 
> type-product_serial-(part#) ?
> 
> usb-Ultra_4E53324345657878876543-part1
> 
> To help keep it to a minimal amount of characters the user would have to 
> type. While ensuring the shortened version would not impact its reliability 
> to return the correct device. Even the 'type' could be removed if that is 
> okay with you?
> 
> Best regards,
> 
> Matt
> 
> 
> 
> _______________________________________________
> Grub-devel mailing list
> address@hidden
> https://lists.gnu.org/mailman/listinfo/grub-devel
> 




reply via email to

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