Skip to contentSkip to conversation

Save boot record before writing to the dest_drive

DISCUSSION James Courtier-Dutton 4 participants 7 messages Sep 22, 2009 – Sep 24, 2009

lore
Share & tools
lore
#0 lore raw

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 be possible to return them to a setup that gets them straight back into Windows, without any boot loader menus from grub.

Kind Regards

James

#1 lore raw
Quoted 2 lines · James Courtier-Dutton

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

#2 lore raw

2009/9/22 Lars Nooden <[email protected]>:

Quoted 10 lines
Quoted 2 lines · James Courtier-Dutton

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.

#3 lore raw
Quoted 5 lines · James Courtier-Dutton

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.

dd plus as shell script fit nicely in busybox

-Lars

#4 lore raw
In reply to James Courtier-Dutton

Hi !,

Quoted 9 lines · James Courtier-Dutton

2009/9/22 Lars Nooden <[email protected]>:

Quoted 8 lines
Quoted 2 lines · James Courtier-Dutton

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.

Quoted 10 lines
Quoted 2 lines

-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/[email protected]/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

Quoted 6 lines

_______________________________________________
Grub-devel mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/grub-devel

#5 lore raw
Quoted 4 lines · kashyap garimella

There is already a thread discussing this topic.
http://www.mail-archive.com/[email protected]/msg12829.html
The patch saves the exact places in embed region, which are overwritten. And it restores the mbr+embed region safely.

Your patch has some indentation issues. Please can you run the indent program on it?

Also, please include a ChangeLog entry.

Signature · 5 lines
Robert Millan

  The DRM opt-in fallacy: "Your data belongs to us. We will decide when (and
  how) you may access your data; but nobody's threatening your freedom: we
  still allow you to remove your data and not access it at all."
#6 lore raw
In reply to James Courtier-Dutton
Quoted 3 lines · James Courtier-Dutton

Hi,

I think this would be a good feature, because if nothing else,

Please could you reply in the same thread?

Signature · 5 lines
Robert Millan

  The DRM opt-in fallacy: "Your data belongs to us. We will decide when (and
  how) you may access your data; but nobody's threatening your freedom: we
  still allow you to remove your data and not access it at all."