From: Andrei Borzenkov <arvidjaar@gmail.com>
To: Venkata Subbarao <rao.subba.venkata@gmail.com>
Cc: grub-devel@gnu.org
Subject: Re: Switching to another boot device on failure
Date: Wed, 19 Nov 2014 06:16:54 +0300 [thread overview]
Message-ID: <20141119061654.3de675c8@opensuse.site> (raw)
In-Reply-To: <loom.20141118T114635-457@post.gmane.org>
В Tue, 18 Nov 2014 10:51:00 +0000 (UTC)
Venkata Subbarao <rao.subba.venkata@gmail.com> пишет:
> 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.
next prev parent reply other threads:[~2014-11-19 3:17 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-11-18 10:51 Switching to another boot device on failure Venkata Subbarao
2014-11-19 3:16 ` Andrei Borzenkov [this message]
2014-11-19 13:59 ` Arbiel Perlacremaz
[not found] ` <CAFQyPcp7XO+Vs+fO-oYSPjvdHdTiB=oj8GCGbOLxmf6vs7YZGA@mail.gmail.com>
2014-11-20 13:38 ` Venkata Subbarao
[not found] ` <20141120202316.5afdeaab@opensuse.site>
2014-11-21 13:29 ` Venkata Subbarao
2014-11-28 19:24 ` Vladimir 'φ-coder/phcoder' Serbinenko
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20141119061654.3de675c8@opensuse.site \
--to=arvidjaar@gmail.com \
--cc=grub-devel@gnu.org \
--cc=rao.subba.venkata@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).