help-grub
[Top][All Lists]
Advanced

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

Re: chain hd0 and next bios


From: Andrei Borzenkov
Subject: Re: chain hd0 and next bios
Date: Sat, 6 May 2017 08:30:45 +0300
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0

05.05.2017 23:49, Carl Karsten пишет:
> On Fri, May 5, 2017 at 12:20 PM, Andrei Borzenkov <address@hidden>
> wrote:
> 
>> 05.05.2017 07:31, Carl Karsten пишет:
>>> pxe boot grub-net
>>>
>>> I want options to tell the bios Never mind, failed to boot anything, try
>>> next device,
>>>
>>> label bootnext
>>>     # fail the pxe boot,
>>>     localboot 0
>>>
>>
>> Does "exit" work for you here?
>>
> 
> Why yes it does!
> that was easy.
> 
> 
>>
>>> and also Boot HD0 (for some idea of first hard disk)
>>>
>>> label boothd
>>> # boot from the first HD
>>>         kernel syslinux/chain.c32
>>>         append hd0
>>>
>>
>> Not sure - if this is generic question "how to chainload something", it
>> would be
>>
>> set root=hd0
>> chainloader +1
>>
>>
> 
> Error disk 'hd0' not found
> 

You likely need to "insmod biosdisk" before, PXE grub image (at least as
built by grub-mknetdir) does not include it.

> 
> 
>> which loads first sector of hd0 and jumps to it. The value of ${root} is
>> passed as boot device, it is in principle possible to do
>>
>> set root=hd0
>> chainloader (hd1)+1
>>
>>
> Error disk 'hd1' not found
> 
> 
> 
>> If you are aware of it and your question is specific to PXE boot - could
>> you elaborate?
>>
> 
> 
> I don't think it is specific to pxe other than it might not make sense for
> a grub booted from the hd  to have an option to load itself again.
> 
> or maybe it explains why there is no hd0?
> 
> 




reply via email to

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