Re: [PATCH]: Save boot record before writing to the dest_drive

2009-09-24 Thread kashyap garimella
On Wed, Sep 23, 2009 at 1:38 PM, Mikko Rantalainen < mikko.rantalai...@peda.net> wrote: > I looked at the patch and it seems that the problem could be caused by > following code: > > > + if (!backup_fp) > > + { > > +strcpy(grub_errmsg,"Unable to create the backup file"); > > +goto unable

Re: Save boot record before writing to the dest_drive

2009-09-24 Thread Robert Millan
On Wed, Sep 23, 2009 at 07:38:59AM +0530, kashyap garimella wrote: > 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 safe

Re: Save boot record before writing to the dest_drive

2009-09-24 Thread Robert Millan
On Tue, Sep 22, 2009 at 07:57:23PM +0100, James Courtier-Dutton wrote: > Hi, > > I think this would be a good feature, because if nothing else, Please could you reply in the same thread? -- Robert Millan The DRM opt-in fallacy: "Your data belongs to us. We will decide when (and how) you ma

Re: [PATCH]: Save boot record before writing to the dest_drive

2009-09-23 Thread Mikko Rantalainen
kashyap garimella wrote at 2009-09-12: > Greetings! > > I have added the following new features: > > 1) when grub-setup runs, it automatically stores the areas of (mbr + embed) > region, which are overwritten, into the file (in the following specified > format) in root directory. > > 2) grub-set

Re: Save boot record before writing to the dest_drive

2009-09-22 Thread kashyap garimella
Hi !, On Wed, Sep 23, 2009 at 12:52 AM, James Courtier-Dutton < james.dut...@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 woul

Re: Save boot record before writing to the dest_drive

2009-09-22 Thread Lars Nooden
James Courtier-Dutton wrote: > 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 curren

Re: Save boot record before writing to the dest_drive

2009-09-22 Thread James Courtier-Dutton
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

Re: Save boot record before writing to the dest_drive

2009-09-22 Thread 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 valu

Save boot record before writing to the dest_drive

2009-09-22 Thread James Courtier-Dutton
Hi, I think this would be a good feature, because if nothing else, I permits the user to "uninstall grub" if they so wish. So, if a user has installed Linux, so that their system now dual boots Windows and Linux, and they then decide to uninstall Linux and return to a Windows only setup. It should

Re: [PATCH]: Save boot record before writing to the dest_drive

2009-09-20 Thread Robert Millan
On Sat, Sep 19, 2009 at 11:09:17PM +0100, Colin Watson wrote: > On Sat, Sep 19, 2009 at 11:10:49PM +0200, Robert Millan wrote: > > I'm sorry, but I really see very limited usefulness in this. It's only > > potentially useful to expert users, but those should know how to backup > > sectors in their

Re: [PATCH]: Save boot record before writing to the dest_drive

2009-09-19 Thread richardvo...@gmail.com
On Sat, Sep 19, 2009 at 5:09 PM, Colin Watson wrote: > On Sat, Sep 19, 2009 at 11:10:49PM +0200, Robert Millan wrote: >> I'm sorry, but I really see very limited usefulness in this.  It's only >> potentially useful to expert users, but those should know how to backup >> sectors in their disk alrea

Re: [PATCH]: Save boot record before writing to the dest_drive

2009-09-19 Thread Colin Watson
On Sat, Sep 19, 2009 at 11:10:49PM +0200, Robert Millan wrote: > I'm sorry, but I really see very limited usefulness in this. It's only > potentially useful to expert users, but those should know how to backup > sectors in their disk already. Of course, like many restore facilities, it's only use

Re: [PATCH]: Save boot record before writing to the dest_drive

2009-09-19 Thread Robert Millan
On Mon, Sep 14, 2009 at 09:14:49PM +0530, kashyap garimella wrote: > On Mon, Sep 14, 2009 at 9:05 PM, Robert Millan wrote: > > > On Sat, Sep 12, 2009 at 07:35:45PM +0530, kashyap garimella wrote: > > > Greetings! > > > > > > I have added the following new features: > > > > > > 1) when grub-setup

Re: [PATCH]: Save boot record before writing to the dest_drive

2009-09-14 Thread kashyap garimella
On Mon, Sep 14, 2009 at 9:05 PM, Robert Millan wrote: > On Sat, Sep 12, 2009 at 07:35:45PM +0530, kashyap garimella wrote: > > Greetings! > > > > I have added the following new features: > > > > 1) when grub-setup runs, it automatically stores the areas of (mbr + > embed) > > region, which are ov

Re: [PATCH]: Save boot record before writing to the dest_drive

2009-09-14 Thread Robert Millan
On Sat, Sep 12, 2009 at 07:35:45PM +0530, kashyap garimella wrote: > Greetings! > > I have added the following new features: > > 1) when grub-setup runs, it automatically stores the areas of (mbr + embed) > region, which are overwritten, into the file (in the following specified > format) in root

[PATCH]: Save boot record before writing to the dest_drive

2009-09-12 Thread kashyap garimella
Greetings! I have added the following new features: 1) when grub-setup runs, it automatically stores the areas of (mbr + embed) region, which are overwritten, into the file (in the following specified format) in root directory. 2) grub-setup can restore the stored mbr in the following format bac