FiX – Dual Boot Window 8 and Linux Grub

Valic —  February 13, 2013 — 4 Comments

If you want to use windows 8 with Linux here is the solution.

If the Grub loader is not loading after windows 8 install, first you need to boot with a Live CD.

Then run these commands as root:

To find the drive where Linux is installed run the following command:

fdisk -l

Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1        9330    74936320   83  Linux

In my case sda1 is the drive where Linux is installed.
Then you need to run the following commands:

mount /dev/sda1 /mnt/
mount -o bind /dev /mnt/dev
mount -o bind /proc /mnt/proc
cp /proc/mounts /mnt/etc/mtab/
chroot /mnt /bin/bash
grub-install /dev/sda

And the final step is to remove the Live CD and restart your PC.

reboot

 

Valic

Posts Twitter Facebook

Editor in Chief at Debian-Tutorials, Linux enthusiast.

4 responses to FiX – Dual Boot Window 8 and Linux Grub

  1. Does this work with UEFI boot? Shouln’t it be grub-efi installed at Debian system before re-installing grub? IIRC correctly Windows 8 only boots under UEFI system.

  2. I didn’t tested it with UEFI

  3. Then I guess (I didn’t tested it yet) it may work booting Debian CD in rescue mode, executing a shell where / was installed and execute and run;
    os-prober
    update-grub

  4. Yes…it may work.

Leave a Reply