I use on the same machine Slackware Linux and Linux Mint. (I suppose that Linux Mint and Ubuntu behave similarly.) I donít like GRUB at all so I use LILO to choose the system. That requires tricky method of the installation of GRUB in Linux Mint.
I keep Linux Mint on /dev/sda1 and Slackware Linux on /dev/sda2. I install Mintís GRUB on /dev/sda1 and Slackwareís LILO on /dev/sda.
First I start Mint.
GRUB2 refuses to be installed on the beginning of the partition instead of MBR:
/usr/sbin/grub-bios-setup: warning: File system `ext2' doesn't support embedding.
/usr/sbin/grub-bios-setup: warning: Embedding is not possible. GRUB can only be installed in this setup by using blocklists. However, blocklists are UNRELIABLE and their use is discouraged..
/usr/sbin/grub-bios-setup: error: will not proceed with blocklists.
(GRUB2 lies in the above message because I donít use ext2 at all.)
So I need GRUB Legacy instead:
apt-get remove grub-pc
apt-get install grub
Now I can install GRUB:
Probing devices to guess BIOS drives. This may take a long time.
Searching for GRUB installation directory ... found: /boot/grub
Installing GRUB to /dev/sda1 as (hd0,0)...
Installation finished. No error reported.
This is the contents of the device map /boot/grub/device.map.
Check if this is correct or not. If any of the lines is incorrect,
fix it and re-run the script `grub-install'.
Then I run Slackware using the following /etc/lilo.conf:
boot = /dev/sda
append=" acpi_osi=Linux apm=1 pcie_aspm=force vt.default_utf8=1 resume=/dev/sda4 acpi_sleep=s3_bios,s3_mode"
timeout = 50
vga = 791
image = /boot/vmlinuz-generic-smp-3.2.29-smp
initrd = /boot/initrd.gz
root = /dev/sda2
label = slack-generic
image = /boot/vmlinuz
root = /dev/sda2
label = slack-huge
other = /dev/sda1
label = mint
Finally I rerun LILO: