just installed Gentoo on separate hard drive, dual boot question
Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
just installed Gentoo on separate hard drive, dual boot question
I have slack 9.1 up and running beautifully on my primary hard drive (/dev/hda). I am trying to install gentoo on my second crap hard drive (/dev/hdb), and have a question of how to dual boot the two OS's. What would I need to edit and put into my lilo.conf file on my slackware hard drive to get it to be able to point to the boot partition /dev/hdb1 and the correct kernel? Any suggestions would be very helpful
I am dual-booting Gentoo and Slackware 9.1 at the moment. There is no problem with it. You can actually share the swap and maybe the /home partitions between the two OS's. When you get to the bootloader installation part in the Gentoo installation, go with grub and simply follow the instruction handbook. Grub is a bit easier to configure, and Gentoo instructions on it are really very thorough. I don't think it will be very hard to figure out how to add Slackware to grub.conf, but if you have problems, post it here and we'll help.
I agree with mbegovic, it would be better to use GRUB from gentoo than lilo from slackware. I further agree that it would be best for your linux knowledge, if you figure it out for yourself.
If you dont want to, or for some reason have trouble, I have hacked together a possible grub.conf file. Don't forget to put in the correct value for your kernel. Also, try info grub.
title Slackware (2.6.1)
title Gentoo (2.6.5)
If you dont want to go with grub (I highly recommend doing so though), here is what you would probably need to add to lilo.conf:
I am trying to add it to lilo right now and see if I can hack that up, but the problem I am having is this:
my boot partition is on /dev/hdb1 for my second hard drive. When trying to add a boot option to lilo and try adding my kernel location (ex: image = /boot/kernel-2.6.5-gentoo) it says that it cannot find the path to the kernel, it is looking on /dev/hda and not /dev/hdb. How can I direct it to the correct boot partition? Here is my entry to /etc/lilo.conf....
Thanks for any help you can give me Right now I am trying to make it work from lilo b/c to get grub to fire up I will have to unplug my primary hard drive and let the secondary one boot. If you have the code that I would need for grub, I would be greatful also (but first I would like to try lilo)
Unfortunately, I can't help you with lilo. I had trouble trying to get something like that to work in Slackware lilo. It just never gave me the Gentoo option at boot. You don't need to unplug your primary drive in order to set up grub. You just need to boot into Slackware go:
mount /dev/hdb3 /mnt/gentoo
mount /dev/whatever /mnt/gentoo/boot
Ok I tried your advice, but I dont think I know grub well enough to make this work by myself Here is my grub.conf file. I then switched the boot order of my hard drives so that the secondary hard drive holding gentoo would boot first. It said that it was loading grub but then just went to a blank screen and did nothing. Here is my grub.conf file:
# By default, boot the first entry.
# Fallback to the second entry.
title=Gentoo Linux 2.6.5
kernel /kernel-2.6.5-gentoo root=/dev/hdb3
First I want to say thanks for all the help......and second I want to appologize if I am a pain in the arse I am pretty linux knowledgeable but I just found one thing that I really need to learn about . I showed you the grub.conf file in a post above, I did try to start up my computer by booting from the second hard drive first (the one with gentoo) and what I got was a blank screen. When I press enter it comes up with and "error 15, file not found". This makes me think that my path is set wrong to the kernel. Here is what is under my /boot directory:
root@Ryan:/mnt/gentoo/boot# ls -l
-rw-r--r-- 1 root root 959182 May 2 22:54 System.map-2.6.5-gentoo
lrwxrwxrwx 1 root root 1 May 2 19:48 boot -> .
-rw-r--r-- 1 root root 27931 May 2 22:55 config-2.6.5-gentoo
drwxr-xr-x 2 root root 560 May 3 15:35 grub
-rw-r--r-- 1 root root 2185736 May 2 22:54 kernel-2.6.5-gentoo
and then the grub folder:
root@Ryan:/mnt/gentoo/boot/grub# ls -l
-rw-r--r-- 1 root root 11264 May 3 00:11 e2fs_stage1_5
-rw-r--r-- 1 root root 10256 May 3 00:11 fat_stage1_5
-rw-r--r-- 1 root root 9248 May 3 00:11 ffs_stage1_5
-rw-r--r-- 1 root root 328 May 3 15:26 grub.conf
-rw-r--r-- 1 root root 1495 May 3 00:11 grub.conf.sample
-rw-r--r-- 1 root root 11488 May 3 00:11 jfs_stage1_5
lrwxrwxrwx 1 root root 9 May 3 00:11 menu.lst -> grub.conf
-rw-r--r-- 1 root root 9632 May 3 00:11 minix_stage1_5
-rwxr-xr-x 1 root root 201636 May 3 00:11 nbgrub
-rwxr-xr-x 1 root root 202660 May 3 00:11 pxegrub
-rw-r--r-- 1 root root 12896 May 3 00:11 reiserfs_stage1_5
-rw-r--r-- 1 root root 33856 May 3 00:11 splash.xpm.gz
-rw-r--r-- 1 root root 512 May 3 00:11 stage1
-rw-r--r-- 1 root root 136972 May 3 00:11 stage2
-rwxr-xr-x 1 root root 201732 May 3 00:11 stage2.netboot
-rw-r--r-- 1 root root 8896 May 3 00:11 vstafs_stage1_5
-rw-r--r-- 1 root root 12840 May 3 00:11 xfs_stage1_5
I dont know why the boot splash screen is not showing, the file is there? Also I dont have the file initrd /initrd-2.6.5-gentoo you were talking about. did I miss a step or not copy a file that I needed to?
Thanks so much for your patience and all your help!
(1) You should have the initrd if you followed the Gentoo installation instructions to the letter. I'm not sure how come you don't have it, and I don't think the Gentoo system can boot without the init image.
(2) Other than that, the only thing that could be wrong in your grub setup are the partitions. Could you check the partitions in grub against the partition layout in /etc/fstab?
(3) I'm not to sure about this, but you may have to pass the root=/dev/hda1 parameter to the kernel line for Slackware. You probably also pass the read-only parameter to it.
That's all I can see here. Let me know how it goes.
If you set the bios to boot from hdb then it becomes hd0, so this is what you should do:
set the bios to boot from hda
reinstall GRUB into the MBR of hda
GRUB> root (hd1,0)
GRUB> setup (hd0)
Initrd is not mandatory as long as ide/scsi chipset and filesytem support can be compiled in, though it can be useful when you compile a kernel for general distribution. I only use it for framebuffer bootsplash.
If your root partition isn't the same one when you compiled the kernel then you need to pass root= option, or you can modify the parameter in the kernel image using "rdev".