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:
grub-install /dev/sda1
Code:
/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
update-grub
Now I can install GRUB:
grub-install /dev/sda1
Code:
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'.
(fd0)/dev/fd0
(hd0)/dev/sda
Then I run Slackware using the following /etc/lilo.conf:
Code:
boot = /dev/sda
compact
append=" acpi_osi=Linux apm=1 pcie_aspm=force vt.default_utf8=1 resume=/dev/sda4 acpi_sleep=s3_bios,s3_mode"
prompt
timeout = 50
vga = 791
image = /boot/vmlinuz-generic-smp-3.2.29-smp
initrd = /boot/initrd.gz
root = /dev/sda2
label = slack-generic
read-only
image = /boot/vmlinuz
root = /dev/sda2
label = slack-huge
read-only
other = /dev/sda1
label = mint
Finally I rerun LILO:
lilo
That works.