LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 06-08-2006, 06:54 PM   #1
rob0t
Member
 
Registered: Jun 2003
Location: Chicago
Distribution: Arch, CentOS, Ubuntu, FreeBSD, Solaris / OpenIndiana
Posts: 95

Rep: Reputation: 16
Triple booting WinXP, Slackware, and Gentoo on 2 hard drives


Hello, I'm attempting to triple boot WinXP, Slackware, and Gentoo. I have two harddrives, on the first one, I have winxp and slackware installations, dual booted using Lilo. Everything works fine and dandy. On the 2nd drive, I have one backup partition and Gentoo installation (it doesn't have any bootloaders)

Here's the table:

Code:
/dev/hda
       /dev/hda1 = C: Windows
       /dev/hda2 = F: Another windows data partition
       /dev/hda5 =  /swap
       /dev/hda6 = /root slackware
/dev/sda 
        /dev/sda1 = G: backup partition
        /dev/sda2 = /boot gentoo
        /dev/sda3 = /swap
        /dev/sda4 = /root gentoo
Now what I'm trying to do is add gentoo to my lilo list. I added the entries so my lilo looks like this:

Code:
# Windows bootable partition config begins
other = /dev/hda1
  label = Windows
  table = /dev/hda
# Windows bootable partition config ends
# Linux bootable partition config begins
image = /boot/vmlinuz-2.6.15.4
  root = /dev/hda6
  label = Slackware
  read-only
# Linux bootable partition config ends
# Gentoo Linux bootable partition config begins
image = /boot/kernel-genkernel-x86-2.6.15-gentoo-r5
  root = /dev/sda2
  label = Gentoo
  read-only
  initrd=/boot/initramfs-genkernel-x-86-2.6.15-gentoo-r5
# Gentoo Linux bootable partition config ensd
# Linux bootable partition config begins
image = /boot/vmlinuz-old
  root = /dev/hda6
  label = Slackware_old
  read-only
# Linux bootable partition config ends
Except that when I try to run "/sbin/lilo"

I get this error:

Code:
Added Windows*
Added Slackware
Fatal: open /boot/kernel-genkernel-x86-2.6.15-gentoo-r5: No such file or directory"
I have not yet booted into the Gentoo (fresh install) distro, but I did successfully mount its /boot partition under slackware.


Now that gets me wondering, because that file is exactly in my /boot (/dev/sda2) on my 2nd harddrive. What could I be wrong? Did I omit something? Thank you for your help.


PS: I did not know where to put this thread, in the official Gentoo forums, or in Slackware forums, it seems to me like it isn't either distro's fault.
 
Old 06-08-2006, 07:10 PM   #2
rkelsen
Senior Member
 
Registered: Sep 2004
Distribution: slackware
Posts: 4,798
Blog Entries: 7

Rep: Reputation: 2893Reputation: 2893Reputation: 2893Reputation: 2893Reputation: 2893Reputation: 2893Reputation: 2893Reputation: 2893Reputation: 2893Reputation: 2893Reputation: 2893
When you're configuring LILO to boot multiple versions of Linux, you need to supply it with information relative to the base from where you're running it.

As an example, if you were going to run lilo from within Slackware, what you'd need to to is this:

1. Mount your Gentoo /boot partition somewhere (say /mnt/gentooboot)

2. Change the Gentoo section of your lilo.conf as follows:

Code:
image=/mnt/gentooboot/kernel-genkernel-x86-2.6.15-gentoo-r5
  root = /dev/sda4
  label = Gentoo
  read-only
  initrd=/mnt/gentooboot/initramfs-genkernel-x-86-2.6.15-gentoo-r5
Note: Your 'root=' line needs to point to the root partition, not the boot partition.

Question: Why do you have a separate boot partition?
 
Old 06-08-2006, 07:55 PM   #3
rob0t
Member
 
Registered: Jun 2003
Location: Chicago
Distribution: Arch, CentOS, Ubuntu, FreeBSD, Solaris / OpenIndiana
Posts: 95

Original Poster
Rep: Reputation: 16
Thank you, your suggestion solved the problem

But now while Gentoo starts booting, I get this error:

Code:
>> Determining your root device
!! The root block device is unspecified or not detected
Please specify a device to boot, or "shell" for a shell...
boot():
To boot into gentoo, I just typed in "/dev/sda4" for my /root to boot in. But how would I solve this so I wouldn't have to type it in each time I boot in? I searched google and this problem has to to do with Grub, which I do not use. I don't know whether I should move this problem to Gentoo forums, but I'd still like to see how Slackware people would go by solving this problem. Any suggestions? Thank you.
 
Old 06-08-2006, 08:02 PM   #4
rkelsen
Senior Member
 
Registered: Sep 2004
Distribution: slackware
Posts: 4,798
Blog Entries: 7

Rep: Reputation: 2893Reputation: 2893Reputation: 2893Reputation: 2893Reputation: 2893Reputation: 2893Reputation: 2893Reputation: 2893Reputation: 2893Reputation: 2893Reputation: 2893
Personally, I'd just remove GRUB. If you have the "root=/dev/sda4" line in your lilo.conf it should work without needing GRUB at all.
 
Old 06-08-2006, 08:36 PM   #5
rob0t
Member
 
Registered: Jun 2003
Location: Chicago
Distribution: Arch, CentOS, Ubuntu, FreeBSD, Solaris / OpenIndiana
Posts: 95

Original Poster
Rep: Reputation: 16
Well, Grub wasn't installed at the beginning, I didn't even install any bootloaders. I made sure that the "root=/dev/sda4" was in lilo.conf and it is. Yet somehow it doesn't find my /root at the bootup. I have to type in "/dev/sda4" at boot():: for it to mount it and to continue the system bootup.
 
Old 06-08-2006, 09:00 PM   #6
rkelsen
Senior Member
 
Registered: Sep 2004
Distribution: slackware
Posts: 4,798
Blog Entries: 7

Rep: Reputation: 2893Reputation: 2893Reputation: 2893Reputation: 2893Reputation: 2893Reputation: 2893Reputation: 2893Reputation: 2893Reputation: 2893Reputation: 2893Reputation: 2893
Quote:
Originally Posted by rob0t
Yet somehow it doesn't find my /root at the bootup. I have to type in "/dev/sda4" at boot():: for it to mount it and to continue the system bootup.
Hmmm.

I ran a quick Google search and came up with this:

http://forums.gentoo.org/viewtopic.php?p=805230

I could be wrong here, but from the info on that page you'd need to change the Gentoo section of your lilo.conf to read:
Code:
image=/mnt/gentooboot/kernel-genkernel-x86-2.6.15-gentoo-r5
  root = /dev/ram0
  label = Gentoo
  read-only
  initrd=/mnt/gentooboot/initramfs-genkernel-x-86-2.6.15-gentoo-r5
  append="real_root=/dev/sda4"
If you try this, please post back with the results.

I'd really like to know why they have changed their kernel to do things this way.

EDIT:

I just read something else which suggested that maybe you might be missing SCSI drivers in your Gentoo kernel. SATA HDs require SCSI support in order to be recongised as /dev/sd* devices.

Either way, let us know how it all goes.

Last edited by rkelsen; 06-08-2006 at 09:06 PM.
 
Old 06-08-2006, 09:23 PM   #7
rob0t
Member
 
Registered: Jun 2003
Location: Chicago
Distribution: Arch, CentOS, Ubuntu, FreeBSD, Solaris / OpenIndiana
Posts: 95

Original Poster
Rep: Reputation: 16
Ah thank you sooo much. It finally booted up. I saw something in other posts that people had it setup similar way in their Grub configs, which I found weird. I guess it had to be setup the same way in Lilo too. Anyway, thank you very much for help
 
Old 06-08-2006, 09:42 PM   #8
rkelsen
Senior Member
 
Registered: Sep 2004
Distribution: slackware
Posts: 4,798
Blog Entries: 7

Rep: Reputation: 2893Reputation: 2893Reputation: 2893Reputation: 2893Reputation: 2893Reputation: 2893Reputation: 2893Reputation: 2893Reputation: 2893Reputation: 2893Reputation: 2893
According to the Gentoo docs here:

http://www.gentoo.org/doc/en/handboo...part=1&chap=10

There are more options which need to be included on your "append=" line:

Code:
append="init=/linuxrc ramdisk=8192 real_root=/dev/sda4 udev"
This might fix any other odd behaviour you're seeing.
 
  


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
Is triple booting SUSE1064, Fedora Core 5 64, and Winxp 32 possible? Ckradjia Linux - Software 7 04-06-2006 10:15 PM
Triple booting Win98, WinXP, Slack jnsg Slackware - Installation 7 02-18-2006 06:44 PM
Triple Boot, Mandrake 10.1, Gentoo 2004.3, WinXP - LiLo SyphonFilterX Mandriva 2 12-28-2004 12:29 AM
Triple booting WinXP/WinServer2003/RHEL3 ghill0463 Linux - Newbie 12 08-10-2004 04:12 PM
RedHAt and WinXp dual booting or maybe triple? RussianUser Linux - Software 3 07-09-2004 02:33 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 11:31 AM.

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
Open Source Consulting | Domain Registration