From: Venkata Subbarao <rao.subba.venkata@gmail.com>
To: Andrei Borzenkov <arvidjaar@gmail.com>
Cc: grub-devel@gnu.org
Subject: Re: Switching to another boot device on failure
Date: Fri, 21 Nov 2014 18:59:35 +0530 [thread overview]
Message-ID: <CAFQyPcoecL-L1m46-WZVB1kbsyZ5fed+_aWZjUbPVYK-a7waTA@mail.gmail.com> (raw)
In-Reply-To: <20141120202316.5afdeaab@opensuse.site>
[-- Attachment #1: Type: text/plain, Size: 2363 bytes --]
I purposefully modified grub.cfg and changed the UUID in the line starts
with "linux /boot/vmlinuz...... root=UUID=XXXX"
Ended up in the (initramfs) prompt because such partition is not present.
Hence, I was thinking of checking CRC.
Thanks and Regards,
Subbarao
On Thu, Nov 20, 2014 at 10:53 PM, Andrei Borzenkov <arvidjaar@gmail.com>
wrote:
> В Thu, 20 Nov 2014 19:08:10 +0530
> Venkata Subbarao <rao.subba.venkata@gmail.com> пишет:
>
> > Once again Thank you Andrei.
> > Modified the grub source and added grub_exit (). After this BIOS booted
> > from next device.
> >
> > I am now working on a solution where if the UUID present in the grub.cfg
> > goes bad.
> > One way I am thinking is to check the CRC of the grub.cfg and other image
> > files required for booting. This may be bit lengthy.
> > Let me know if you have suggestions.
> >
>
> grub supports automatic signature verification for files; in case of
> mismatch file open fails. Does it help?
>
> > Thanks,
> > Subbarao
> >
> > On Wed, Nov 19, 2014 at 8:57 AM, Venkata Subbarao <
> > rao.subba.venkata@gmail.com> wrote:
> >
> > > Thank you very much Andrei.
> > > I will try out this and update.
> > >
> > >
> > > - Subbarao
> > >
> > > On Wed, Nov 19, 2014 at 8:46 AM, Andrei Borzenkov <arvidjaar@gmail.com
> >
> > > wrote:
> > >
> > >> В 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.
> > >>
> > >
> > >
>
>
[-- Attachment #2: Type: text/html, Size: 3479 bytes --]
next prev parent reply other threads:[~2014-11-21 13:29 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
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 [this message]
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=CAFQyPcoecL-L1m46-WZVB1kbsyZ5fed+_aWZjUbPVYK-a7waTA@mail.gmail.com \
--to=rao.subba.venkata@gmail.com \
--cc=arvidjaar@gmail.com \
--cc=grub-devel@gnu.org \
/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).