Backup and Restore Boot sector
Use these commands to backup/restore your boot sector
dd if=/dev/hda of=bootsector.img bs=512 count=1 # backup
dd if=bootsector.img of=/dev/hda #restore
Use these commands to backup/restore your boot sector
dd if=/dev/hda of=bootsector.img bs=512 count=1 # backup
dd if=bootsector.img of=/dev/hda #restore
Create a boot floppy – if you still have a floppy drive?
mkbootdisk --device /dev/fd0 `uname -r`
The code to add a Windows loading section in Grub
title Windows
rootnoverify (hd0,1)
chainloader +1
[tags]grub,windows,linux,boot,loader[/tags]
Note: This post may be wrong. I’m getting a lot of complaints that this doesn’t work. See the Microsoft page on how to do this here
Disabling startup login prompt for password
Please read the comments before following these steps – some comments have reported that this fix is causing a few issues.