Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Gentoo on 2nd HDD
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
Bubo
n00b
n00b


Joined: 20 Mar 2005
Posts: 40
Location: Worcestershire, UK

PostPosted: Sun Aug 28, 2005 8:55 am    Post subject: Gentoo on 2nd HDD Reply with quote

Hi All

This is my first real attempt at installing gentoo so please be gentle with me !

Anyhow, I have a question concerning setting things up on two drives. I have two 80 Gb drives in my box and previously dual booted Slackware with Win XP using Lilo in the mbr of /dev/hda.

I have removed Slack and I am installing Gentoo on /dev/hdb.(winows on /dev/hda). Whilst downloading/compiling etc I read ahead a bit concerning grub setup.

I have the following setup on my box:

Code:

/dev/hda1 - Win XP Pro
/dev/hda2 - FAT32 partition

/dev/hdb1 - ext2 /boot
/dev/hdb2 - 1 gb swap
/dev/hdb3 - gentoo /root


Basically I want to know if I should install grub to /dev/hda so that it shows both Win XP and Gentoo. and get rid of the /boot on /dev/hdb1. Or, install grub to /boot on /dev/hdb1.

If I do the latter will I have problems with the system looking for the boot record on /dev/hda before /dev/hdb. Would amending the BIOS entries regarding boot priority be enough to srt this out.

And finally, I am a bit confused by the grub.conf references to the hard drives. They show as (hd0, 0) for example. Is that /dev/hda1 (first partion on the primary ide) ?

Can anyone suggest a grub.conf setup for my situation please. So far I have come up with:

Code:

default 0
timeout 5
splashimage=(hd1,0)/grub/splash.xpm.gz

title=Gentoo Linux 2.6.12-r9
root (hd1,0)
kernel (hd1,0)/kernel-2.6.12-gentoo-r9 root=/dev/hda3

title=Windows XP
root (hd0,0)
makeactive
chainloader +1


which I think might work but I am not sure. Any help appreciated.

Regards

Bubo
_________________
My Computer Once Beat Me at Chess, but it is No Match for Me at Kickboxing.
Back to top
View user's profile Send private message
KegRaider
n00b
n00b


Joined: 02 Nov 2004
Posts: 7

PostPosted: Sun Aug 28, 2005 10:22 am    Post subject: Reply with quote

Bubo,

You would be best to keep the /boot partition as that is also where your kernel is kept. Also, the /boot partition isn't mounted at system start so it is fairly safe from prying eyes (incompetent users/friends).

When you install grub, you should point it to the first boot drive. eg. /dev/hda (or hd0,0). From there, grub reads the list on the second hard drive and if you decide to use windows, it jumps back to the first drive.

I think this is covered in fairly deep detail in the install manual (http://www.gentoo.org/doc/en/handbook/2005.1/handbook-x86.xml?part=1&chap=10), but rest assured, if you stuff it up, you can fix it with the CD.

If you cannot boot the system, boot via cd, mount the partitions, chroot into the system and modify the /boot/grub/grub.conf file and try again. :P

-- KegRaider
# mv KegRaider /dev/bed
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54300
Location: 56N 3W

PostPosted: Sun Aug 28, 2005 10:28 am    Post subject: Reply with quote

Bubo,

You can keep lilo if you want.
The /boot can be anywhere, having it seperate is a hangover from when a large HDD was > 528Mb.
It need not be seperate.

You can install grub/lilo on either MBR and have it start both Windows and Linux. The BIOS needs to be able to boot from the drive where you install it. Thats the only limitation.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
Bubo
n00b
n00b


Joined: 20 Mar 2005
Posts: 40
Location: Worcestershire, UK

PostPosted: Sun Aug 28, 2005 10:56 am    Post subject: Reply with quote

Thanks for the replies.

I think I get it. So if I was install grub to the MBR on /dev/hda, does the grub.conf configuration posted above look about right.

Regards

Bubo
_________________
My Computer Once Beat Me at Chess, but it is No Match for Me at Kickboxing.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54300
Location: 56N 3W

PostPosted: Sun Aug 28, 2005 12:42 pm    Post subject: Reply with quote

Bubo

Close ... You got all the hard bits right. This line has an error
Code:
kernel (hd1,0)/kernel-2.6.12-gentoo-r9 root=/dev/hda3

Your root filesystem in on /dev/hdb3
This also assumes you roll your own kernel and don't use genkernel.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
Bubo
n00b
n00b


Joined: 20 Mar 2005
Posts: 40
Location: Worcestershire, UK

PostPosted: Sun Aug 28, 2005 12:58 pm    Post subject: Reply with quote

Thanks or that.

Yep, I rolled my own 2.6 kernel. I didn't spot the typo though.

I will try again and report back if I get stuck.

Thanks to all for the input.

Regards

Bubo
_________________
My Computer Once Beat Me at Chess, but it is No Match for Me at Kickboxing.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum