Kodi Community Forum

Full Version: [LIVE] - win7 reinstall killed grub dual boot
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi
i had 10.1 live installed after vista - grub loader and all went fine.
i've now installed win7 over the top of vista and lost grub and xbmc. they are still there on separate partitions. but i can't acess them or fix them.
I'd rather not reinstall xbmc live as i'd lose all my many settings (lirc etc).

does anyone know how to get grub and xbmc back? i don't know if win7 changed the mbr or what?
(have googled and found the same question but not an answer. tried autosupergrubdisk but it failed)

thanks!
You guessed correctly Win7 overwrote the mbr (master boot record).

If you have an usb stick you can fix it like this:

- Download UNetbootin
- In UNetbootin choose any ubuntu distro
or
choose the iso of an ubuntu distro if you still have one on your pc
- finish everything in unetbootin (should be selfexplaining)
- boot from usb stick (live system)
- open a terminal
- execude the following commands
sudo fdisk -l
(look which partition/hdd belongs to your xbmc live installation, i.e sda1)
sudo mount /dev/[xbmc partition] /mnt
sudo mount -o bind /dev /mnt/dev
sudo mount -o bind /sys /mnt/sys
sudo mount -t proc /proc /mnt/proc
sudo chroot /mnt /bin/bash
grub-install /dev/[boot hdd]
(boot hdd, i.e. sda)
update-grub

- reboot
thanks Meiyo - worked perfectlySmile!
i ran a ubuntu live cd - all good