help-grub
[Top][All Lists]
Advanced

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

Re: [grub] Experiencing difficulties to access USB key files


From: Arbiel (gmx)
Subject: Re: [grub] Experiencing difficulties to access USB key files
Date: Mon, 25 Jan 2016 19:42:33 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0


Le 25/01/2016 19:13, Andrei Borzenkov a écrit :
> 25.01.2016 11:20, Arbiel (gmx) пишет:
>>>> Do you mean that "hd0,msdos1" and so on, are sort of symbols for
>>>> information understood by the BIOS that grub own drivers do not understand 
>>>> ?
>>> hd0 refers to disk accessible via BIOS. USB mass storage accessible
>>> directly using USB drivers would be name usb0 (or whatever running
>>> number). Command "nativedisk" attempts to find and replace new device
>>> names in $root and $prefix.
>> That's true. However, it does not translate $config_directory, and I
>> haven't found any way to translate it, but to set it to $prefix. And
>> this is only acceptable for the configuration file pointed by core.
>>
>> Using "nativedisk", grub failed and went down to grub rescue when placed
>> as the first command of grub.cfg. I had to delay it until after the
>> first disk access. And then I got thrice " hd0, msdos1 disk not found",
>> but grub stayed alive.
> nativedisk is more or less debugging tool. There can be any number of
> custom variables holding device references in unexpected places.
>
> If you insist on using it in configuration script, you can use e.g.
> probe+regexp+search (which is effectively what nativedisk does anyway):
>
> regexp --set 1:device --set 2:path '^\(([^)]*)\)(.*)$' "$config_directory"
> probe --set uuid $device
> nativedisk
> search --set device --fs-uuid $uuid
> set config_directory="($device)$path"
Thank you.
>
>> I have also seen that after the command, prefix was set to
>> (device)//path, instead of (device)/path. Is grub reducing multiple
>> occurences of "/" in a file path to a single one ?
> Yes. Like Unix too.
>
>
>
>
> _______________________________________________
> Help-grub mailing list
> address@hidden
> https://lists.gnu.org/mailman/listinfo/help-grub


Attachment: signature.asc
Description: OpenPGP digital signature


reply via email to

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