This is for Grub legacy (0.9x) ONLY
Linux Mint now uses Grub2
Step 1: Boot from a Linux Mint Live CD
-Most of you probably know how to do this. In most cases, you just reboot your computer with the CD in the drive. Sometimes, you will need to change the BIOS settings so it tries to boot from the CD drive before the hard drive.
Step 2: Mount your Linux root partition:
-Open a terminal, and type:
Code: Select all
sudo fdisk -l
-Now mount it with:
Code: Select all
sudo mount /dev/xxxx /mnt
# replace the x's with the device node you just took note of
# feel free to change /mnt if you want to mount it somewhere else
Code: Select all
sudo grub-install --root-directory=/mnt hd0
Last step: Write a menu.lst
-Run the command:
Code: Select all
sudo nano /boot/grub/menu.lst
Here is a basic menu.lst example for a Linux/Windows dual-boot:
Code: Select all
# Linux boot entry
title Linux
root (hdx,x)
kernel /boot/vmlinuz root=/dev/xxx ro
initrd /boot/initrd.gz
# End of Linux boot entry
# Windows boot entry
title Windows
root (hdx,x)
makeactive
chainloader +1
# End of Windows boot entry
-You can check your Linux Mint /boot/grub/menu.lst for a better example
-Press Ctrl+o in nano to save your menu.lst
Easier way, using the "Grubconfig" script
-From the Mint live cd, download the script:
http://www.tux.org/pub/people/kent-robotti/looplinux/
-Extract it:
Code: Select all
tar -xvzf grubconfig-*.tar.gz
Code: Select all
cd grubconfig-x.xx #Replace x's with version number
Code: Select all
chmod +x grubconfig
Code: Select all
sudo ./grubconfig