[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Switching to another boot device on failure
From: |
Arbiel Perlacremaz |
Subject: |
Re: Switching to another boot device on failure |
Date: |
Wed, 19 Nov 2014 14:59:50 +0100 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.2.0 |
Switching to the next boot device should not be done without advertising
the user, so that he or she has the opportunity to fix the primary
device's booting process.
By the way, how is the "recordfail" environment variable reset ?
And wouldn't it be possible to implement a "next_boot_device"
environment variable to answer Venkata's need ?
Arbiel
Le 19/11/2014 04:16, Andrei Borzenkov a écrit :
> В Tue, 18 Nov 2014 10:51:00 +0000 (UTC)
> Venkata Subbarao <address@hidden> пишет:
>
>> Hi All,
>>
>> I am working on a task on XUbuntu OS in which due to any reason if booting
>> fails I would like to switch to another boot device by zeroing the MBR of
>> current boot disk. Is this possible ?
>>
>> For example instead of showing following prompt, I would like to zero out
>> the MBR so that the BIOS can select next boot device upon reset.
>>
>> error: no such partition
>> grub rescue>
>>
> grub supports only very limited and controlled ways to write to
> device/file. Doing something like this in unattended manner is probably
> way too dangerous.
>
> What would be possible is to optionally exit grub (after timeout) in
> this case; then BIOS should proceed to next boot device.
>
> _______________________________________________
> Grub-devel mailing list
> address@hidden
> https://lists.gnu.org/mailman/listinfo/grub-devel
signature.asc
Description: OpenPGP digital signature