LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices



Reply
 
Search this Thread
Old 07-04-2008, 12:13 AM   #1
physicsgeek42
LQ Newbie
 
Registered: Feb 2008
Distribution: Fedora
Posts: 8

Rep: Reputation: 0
Need help adding second linux distro to grub


So, I'm already dual-booting Windows and openSUSE, and I want to add Slackware to the mix. I've installed slackware on /dev/sda4, but I refrained from installing LILO at that time because I've heard that GRUB is easier to use, and I was kind of afraid that it might screw up openSUSE because obviously it's a little more tightly integrated than slack. I'm a little unsure exactly how to add slack to my /boot/grub/menu.lst, and if there is anything else that I would need to do. Thanks!

Oh, afterthought: what would be a good command to list my partition table for y'all to see?
 
Old 07-04-2008, 01:12 AM   #2
weibullguy
ReliaFree Maintainer
 
Registered: Aug 2004
Location: Kalamazoo, Michigan
Distribution: Slackware-current, Cross Linux from Scratch, Gentoo
Posts: 2,753
Blog Entries: 1

Rep: Reputation: 238Reputation: 238Reputation: 238
It's pretty simple. You need to add a line for the title, the grub root (probably the first drive) and a kernel statement. It's all clearly explained in the GRUB manual, but here is an excerpt from my /boot/grub/menu.lst that shows three options on one of my machines.
Code:
#-------------------------------------------------------#
# Following are the Gentoo 2006.1 kernels on this       #
# machine.  The Gentoo installation is on hda5.         #
#-------------------------------------------------------#
title Gentoo 2006.0 (2.6.19-20070916-SMP)
       root (hd0,0)
       kernel /gentoo/gentoo-2.6.19-20070916-SMP ro root=/dev/hda5 VGA=791
       savedefault

#-------------------------------------------------------#
# Following are the Cross Linux from Scratch kernels on #
# this machine.  The CLFS installation is on hdb6.      #
#-------------------------------------------------------#
title CLFS 1.0.0 (Multilib 2.6.19.1-SMP-20070105)
        root (hd0,0)
        kernel /clfs/clfskernel-2.6.19.1-SMP-20070105 ro root=/dev/hdb6 VGA=791
        savedefault 2

title CLFS 1.0.0 (Multilib 2.6.19.1-SMP-20070105 Backup)
        root (hd0,0)
        kernel /clfs/clfskernel-2.6.19.1-SMP-20070105 ro root=/dev/hda9 VGA=791
        savedefault 2
To list your partition table, execute fdisk -l /dev/hda (replace /dev/hda with the device you want to list)
 
Old 07-05-2008, 12:22 AM   #3
physicsgeek42
LQ Newbie
 
Registered: Feb 2008
Distribution: Fedora
Posts: 8

Original Poster
Rep: Reputation: 0
Okay, my openSUSE root is on /dev/sda5, and my slack is on /dev/sda4, and this is what it looks like now:

Code:
# Modified by YaST2. Last modification on Sat Jun 21 04:35:54 UTC 2008
default 0
timeout 8
gfxmenu (hd0,4)/boot/message
##YaST - activate

###Don't change this comment - YaST2 identifier: Original name: linux###
title openSUSE 11.0 - 2.6.25.5-1.1
    root (hd0,4)
    kernel /boot/vmlinuz-2.6.25.5-1.1-pae root=/dev/disk/by-id/scsi-SATA_WDC_WD2500BEVS-_WD-WXEY07J72272-part5 resume=/dev/sda3 splash=silent showopts vga=0x314
    initrd /boot/initrd-2.6.25.5-1.1-pae

###Don't change this comment - YaST2 identifier: Original name: failsafe###
title Failsafe -- openSUSE 11.0 - 2.6.25.5-1.1
    root (hd0,4)
    kernel /boot/vmlinuz-2.6.25.5-1.1-pae root=/dev/disk/by-id/scsi-SATA_WDC_WD2500BEVS-_WD-WXEY07J72272-part5 showopts ide=nodma apm=off acpi=off noresume nosmp noapic maxcpus=0 edd=off x11failsafe vga=0x314
    initrd /boot/initrd-2.6.25.5-1.1-pae

###Don't change this comment - YaST2 identifier: Original name: windows###
title Windows
    rootnoverify (hd0,4)
    chainloader (hd0,0)+1
Should this line clear it up, assuming /slack is where /dev/sda4 mounts under openSUSE?

Code:
title Slackware
    root (hd0,3)
    kernel /slack/boot/vmlinuz root=/dev/sda4
any idea what all the other stuff in my existing entries does? Also, what do the "ro" and "VGA=791" do in yours?
 
Old 07-05-2008, 01:36 AM   #4
weibullguy
ReliaFree Maintainer
 
Registered: Aug 2004
Location: Kalamazoo, Michigan
Distribution: Slackware-current, Cross Linux from Scratch, Gentoo
Posts: 2,753
Blog Entries: 1

Rep: Reputation: 238Reputation: 238Reputation: 238
No, where the Slackware partition mounts when you use SuSE is irrelevant. When you choose to boot Slackware, your setup will look for the Slackware kernel named vmlinuz in /slack/boot. It should read /boot/vmlinuz.

The 'ro' causes the kernel to mount the drive read-only initially; later the drive will be remounted read/write. This is generally done so fsck can run on / at bootup.

The VGA=791 sets the grub screen geometry. You can choose from the following:
Code:
Color depth      | 640x480  800x600  1024x768 1280x1024
-----------------+-------------------------------------
256        (8bit)|  769      771       773      775
32000     (15bit)|  784      787       790      793
65000     (16bit)|  785      788       791      794
16.7 Mill.(24bit)|  786      789       792      795
The rest of the stuff is explained in the link in my original post.
 
Old 07-06-2008, 12:39 AM   #5
physicsgeek42
LQ Newbie
 
Registered: Feb 2008
Distribution: Fedora
Posts: 8

Original Poster
Rep: Reputation: 0
Problem solved! Thanks!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Strangle lilo behavior when adding new grub-default distro svar Linux - General 6 06-29-2008 11:03 AM
adding multiple linux OS's to grub highlandish Linux - Newbie 4 02-24-2008 12:01 AM
Adding a new Linux Installation to Grub brazilian_user Linux - General 2 06-15-2007 09:43 AM
adding a second Linux Distro to my computer Perquisitor Linux - Newbie 12 07-14-2004 05:41 PM
Adding another Distro to Grub revenger681 Linux - Newbie 6 03-30-2004 03:05 PM


All times are GMT -5. The time now is 05:38 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration