- Burn any linux distro that comes with a live boot option on a flash drive/cd and boot.
- Run fdisk -l and find which is your root partition, which is your boot partition and which hard drive you're using (e.g. /dev/sda1)
- If you still have linux installed on your system, make a temp directory (e.g. /mnt/root ), and mount your root ( / ) partition on it, then mount your boot ( /boot ) partition on /mnt/root/boot (assuming you mounted the correct root partition, /mnt/root/boot will exist).
- mount /mnt/root/dev and /mnt/root/proc (explained later)
- chroot to /mnt/root
- reinstall grub to /dev/sdX NOT /dev/sdX1 or any other number. Grub should install on the physical drive, not on partitions.
fdisk -l
mkdir /mnt/root
mount /dev/sda2 /mnt/root
mount /dev/sda1 /mnt/root/boot
mount -t proc none /mnt/root/proc
mount -o bind /dev /mnt/root/dev
chroot /mnt/root
grub-install --recheck /dev/sda
After that reboot and you should see grub (remove the live medium!)
No comments:
Post a Comment