Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1MqHI6-0001m3-VX for mharc-grub-devel@gnu.org; Tue, 22 Sep 2009 22:09:10 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MqHI3-0001iT-OQ for grub-devel@gnu.org; Tue, 22 Sep 2009 22:09:07 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MqHHy-0001dy-2T for grub-devel@gnu.org; Tue, 22 Sep 2009 22:09:06 -0400 Received: from [199.232.76.173] (port=53442 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MqHHx-0001dv-SG for grub-devel@gnu.org; Tue, 22 Sep 2009 22:09:01 -0400 Received: from mail-px0-f202.google.com ([209.85.216.202]:40807) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MqHHx-0002OZ-8n for grub-devel@gnu.org; Tue, 22 Sep 2009 22:09:01 -0400 Received: by pxi40 with SMTP id 40so199854pxi.24 for ; Tue, 22 Sep 2009 19:08:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type; bh=3kc1LUJB4ez0xJSUOZOGlUU6rAfy9GdQTsNgJLO2D9M=; b=HIXiLEB1OdFBuiJxlWe72j/f5vG7IaIkBkBbnmGlHE4q89XgE71l+P/D4dFbTEuoi9 R1e6JdVxH5pro9827s7TfBXTGpfFILPFBB5QU+VySp5QUgTYnyM70O7FjYqjteClHDBj oitqScawbbvrfWIjgts/lsZsEsHwQxEJI0gX8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=OUIxnfwzpxhP35kgDBZfENQC8bxiNq4xs1YTcSHhSz+I5awNNI38n36sXY1dFmpElo o8VObnU0Y7JnOq44hEP6MPj/j6ty9LQCrDwaCxoVb9Z7D7E2UdmYs3+B+0W3Rny0wawK zpMCdQ2s0QobvB0yXUTVEfK3w0CKRvgPElYNA= MIME-Version: 1.0 Received: by 10.115.134.5 with SMTP id l5mr2931283wan.70.1253671739662; Tue, 22 Sep 2009 19:08:59 -0700 (PDT) In-Reply-To: References: <4AB91FB8.7000107@gmail.com> Date: Wed, 23 Sep 2009 07:38:59 +0530 Message-ID: From: kashyap garimella To: The development of GRUB 2 Content-Type: multipart/alternative; boundary=0016e648d0b6b520ea04743532d1 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) Subject: Re: Save boot record before writing to the dest_drive X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: The development of GRUB 2 List-Id: The development of GRUB 2 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 23 Sep 2009 02:09:08 -0000 --0016e648d0b6b520ea04743532d1 Content-Type: text/plain; charset=ISO-8859-1 Hi !, On Wed, Sep 23, 2009 at 12:52 AM, James Courtier-Dutton < james.dutton@gmail.com> wrote: > 2009/9/22 Lars Nooden : > > James Courtier-Dutton wrote: > >> I think this would be a good feature, because if nothing else, I > >> permits the user to "uninstall grub" if they so wish. > > > > I would disagree with the use case described, but agree that having the > > ability to roll back to the previous boot record could possibly be of > > value. > > > > -Lars > > > > So, if one did a dd backup of the boot sector and the embedded area > before the first partition, is there a tool that can replace those > sectors but do it safely. E.g. Only replace the number of sectors that > fit before the first partition, and preserve the current partition > table, and not use the partition table from the dd backup. > > There is already a thread discussing this topic. http://www.mail-archive.com/grub-devel@gnu.org/msg12829.html The patch saves the exact places in embed region, which are overwritten. And it restores the mbr+embed region safely. -Kashyap Garimella Jagannadh (irc:garimella) Undergraduate Student, IIT Madras, India > > _______________________________________________ > Grub-devel mailing list > Grub-devel@gnu.org > http://lists.gnu.org/mailman/listinfo/grub-devel > --0016e648d0b6b520ea04743532d1 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hi !,

On Wed, Sep 23, 2009 at 12:52 AM, J= ames Courtier-Dutton <james.dutton@gmail.com> wrote:
2009/9/22 Lars Nooden <lars.cu= rator@gmail.com>:
> James Courtier-Dutton wrote:
>> I think this would be a good feature, because if nothing else, I >> permits the user to "uninstall grub" if they so wish. >
> I would disagree with the use case described, but agree that having th= e
> ability to roll back to the previous boot record could possibly be of<= br> > value.
>
> -Lars
>

So, if one did a dd backup of the boot sector and the embedded area before the first partition, is there a tool that can replace those
sectors but do it safely. E.g. Only replace the number of sectors that
fit before the first partition, and preserve the current partition
table, and not use the partition table from the dd backup.


There is already a thread discussing this topic. http://www.mail-archive.com/= grub-devel@gnu.org/msg12829.html
The patch saves the exact places in embed region, which are overwritten.=A0= And it restores the mbr+embed region safely.

-Kashyap Garimella Jag= annadh
(irc:garimella)
Undergraduate Student,
IIT Madras, India

_______________________________________________
Grub-devel mailing list
Grub-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/grub-devel

--0016e648d0b6b520ea04743532d1--