Dual Boot another distro, keeping mint's grub.

Questions about Grub, UEFI,the liveCD and the installer
Forum rules
Before you post please read this

Dual Boot another distro, keeping mint's grub.

Postby Acid_1 on Thu Feb 28, 2008 3:48 am

Cause you know how that is. So lets say I wanted to install knoppix or something to another partition, just to mess around with, how do I keep mint's screen?
User avatar
Acid_1
Level 5
Level 5
 
Posts: 817
Joined: Thu Nov 01, 2007 11:12 pm
Location: Saskatchewan, Canada

Linux Mint is funded by ads and donations.
 

Re: Dual Boot another distro, keeping mint's grub.

Postby GoustiFruit on Thu Feb 28, 2008 5:20 am

After installing knoppix, copy the corresponding lines from its /boot/grub/menu.lst to the one in Mint's boot partition. Then do:

> sudo grub
> root (hdx,y)
> setup (hdx)
> quit

where (hdx,y) is Mint boot partition (ex: (hd0,7) for me) and (hdx) is the partition where to install (ex: (hd0) for me)

And *backup* before doing anything !
User avatar
GoustiFruit
Level 4
Level 4
 
Posts: 253
Joined: Wed Sep 12, 2007 11:07 am

Re: Dual Boot another distro, keeping mint's grub.

Postby Fred on Thu Feb 28, 2008 6:23 am

A couple additions for the above instructions.

If the knoppix installer gives you an option to do so, install Knoppix's boot loader to the partition that contains knoppix's /boot file. Not to the mbr. If you do this you won't have to reset Mint's bootloader to the mbr.

If you do have to rewrite the Mint bootloader to the mbr, do it from the Mint installation, not the knoppix installation.

I would suggest using the chainload method of booting knoppix from the Mint menu.lst. This way you won't have to modify the Mint menu.lst file if the knoppix kernel is ever updated.

Instead of putting the boot lines from knoppix in the Mint /boot/grub/menu.lst use the lines below. Put them after the line: (example root numbers)

### END DEBIAN AUTOMAGIC KERNELS LIST

title (these two lines are just a spacer line)
root

title Knoppix (whatever you want to show on the screen)
root (hd0,2)
makeactive
chainloader +1

The root is the hard drive and the partition numbers that the Knoppix /boot file is in. Remember that drives and partitions start counting from zero, not one.

Sometimes the version of grub used by different distros is not compatible and it will be necessary to do the below commands from the Mint install in order to be able to boot the second distro.

Open terminal: (example root and setup numbers)

sudo grub

root (hd0,2)

setup (hd0,2)

quit

root is the drive and partition numbers that Knoppix menu.lst is in. setup is the drive and partition numbers that Knoppix /boot is in. Remember, drives and partition numbers start at zero, not one.

Fred
Insanity: Doing the same thing over and over and each time expecting a different result.

Democracy is 2 wolves and a lamb voting on the menu. Liberty is an armed lamb protesting the electoral outcome. A Republic negates the need for an armed protest.
User avatar
Fred
Level 10
Level 10
 
Posts: 3356
Joined: Fri Jan 04, 2008 11:59 am
Location: NC USA


Return to Installation & Boot

Who is online

Users browsing this forum: Majestic-12 [Bot], Mik3e, winstonfg0 and 22 guests