Reinstalling Window with out overwriting grub?

Yes, loads of ways, my favourite is this:

1. Install windows as normal.
2. Boot from your distro's live CD.
3. Open a terminal and use these commands:
Code:
sudo -s
mount /dev/sda1 /mnt
mount -t proc proc /mnt/proc
mount -t sysfs sysfs /mnt/sys
mount -t devpts devpts /mnt/dev
chroot /mnt
grub-install /dev/sda
Replace /dev/sda with your boot disk and /dev/sda1 with your linux partition.
4. Boot into Linux then run:
Code:
sudo update-grub
 
Last edited:
Yes, loads of ways, my favourite is this:

1. Install windows as normal.
2. Boot from your distro's live CD.
3. Open a terminal and use these commands:
Code:
sudo -s
mount /dev/sda1 /mnt
mount -t proc proc /mnt/proc
mount -t sysfs sysfs /mnt/sys
mount -t devpts devpts /mnt/dev
chroot /mnt
grub-install /dev/sda
Replace /dev/sda with your boot disk and /dev/sda1 with your linux partition.

I looked at LM11, it sounds good, I could just upgrade.
 
My preferred method is to restore the boot code ( you have a backup don't you? ) with dd.

Code:
dd if=boot.dd of=/dev/sda bs=446 count=1


Yes, very geeky. I know. :p
 
Back
Top Bottom