On Sun, 12 Oct 2003 11:32:33 -0400 "Monah Baki" <[EMAIL PROTECTED]> wrote:
> I ran fdisk -l /dev/hdc > > Disk /dev/hdc: 20.8 GB, 20847697920 bytes > 16 heads, 63 sectors/track, 40395 cylinders > Units = cylinders of 1008 * 512 = 516096 bytes > > Device boot Start End Blocks > Id System > /dev/hdc1 1 20317 10239736+ > a5 FreeBSD/dev/hdc2 * 20318 20559 > 121968 83 Linux > /dev/hdc3 20560 21551 499968 > 82 Linux swap/dev/hdc4 21552 40395 > 9497376 83 Linux > > FreeBSD is installed on my first partition. > > Based on the manuals on installing grub, I ran the following: > > grub> root (hd0,1) > grub> setup (hd0) > > Then I'm confused on setting the grub.conf for dual booting gentoo and freebsd > > Thank you for your help. > > > > On Sun, 12 Oct 2003 09:37:10 -0400, Barry Marler wrote > > Well, anything like 'hdc' is irrelevant, then. As far as grub is > > concerned, it's 'hd0'. To Linux, it's /dev/hda. Do you have FreeBSD > > installed on the 1st partition of that drive, with /boot, swap, and / > > on the 2nd, 3rd, and 4th, respectively? If you have /boot on the 2nd > > partition of the drive, the salient part of grub.conf would be > > something like: > > > > root (hd0,1) > > kernel (hd0,1)/boot/kernel-2.4.20-gentoo-r7 root=/dev/hda4 > > initrd (hd0,1)/boot/initrd-2.4.20-gentoo-r7 > > > > All this is contingent on your drive being partitioned as you implied > > earlier. As root, run fdisk -l, and send the output. > > > > On 09:56 Sun 12 Oct , Monah Baki wrote: > > > I have just 1 drive. > > > > > > > > > On Sun, 12 Oct 2003 05:58:37 -0400, Barry Marler wrote > > > > You'll have problems. Assuming Linux is on partitions 2,3, and 4 of > > > > your third hard drive (as you detail, below), your Linux boot > > > > partition is (hd2,1). You're telling grub that your kernel is on > > > > hda1 and / is on hdc4. How many drives do you have? > > > > > > > > On 02:48 Sun 12 Oct , Monah Baki wrote: > > > > > Thanks. > > > > > > > > > > Now my disk layout is: > > > > > > > > > > hdc1 Freebsd > > > > > hdc2 Linux (boot) > > > > > hdc3 Linux (swap) > > > > > hdc4 Linux (root) > > > > > > > > > > I'm planning on using grub > > > > > > > > > > If my grub.conf was: > > > > > > > > > > title=genkernel > > > > > root (hd0,0) > > > > > kernel (hd0,0)/boot/kernel-2.4.20-gentoo-r7 root=/dev/hdc4 > > > > > initrd (hd0,0)/boot/initrd-2.4.20-gentoo-r7 > > > > > > > > > > title=freebsd > > > > > root (hd0,1) > > > > > kernel /boot/loader > > > > > > > > > > I should have no problems, correct?? > > > > > > > > > > Thanks > > > > > > > > -- > > > > Barry Marler > > > > Plant Genome Mapping Laboratory > > > > University of Georgia > > > > Room 229, Center for Applied Genetic Technologies > > > > 111 Riverbend Rd. > > > > Athens, GA 30602 > > > > 706.583.0164 [office] > > > > 706.583.0160 [fax] > > > > http://www.plantgenome.uga.edu > > > > > > > > -- > > > > [EMAIL PROTECTED] mailing list > > > > > > -- > > > [EMAIL PROTECTED] mailing list > > > > > > > -- > > Barry Marler > > Plant Genome Mapping Laboratory > > University of Georgia > > Room 229, Center for Applied Genetic Technologies > > 111 Riverbend Rd. > > Athens, GA 30602 > > 706.583.0164 [office] > > 706.583.0160 [fax] > > http://www.plantgenome.uga.edu > > > > -- Based on all your input, your grub setup would appear to be correct. Your harddrive is cabled into the secondary controller on the motherboard/disk controller, thus linux addresses the drive as /dev/hdc. Nothing wrong with this, just unusual. I ran for years with a box cabled this way. Grub, however, only counts (in order) the actually installed hard drives, thus grub thinks your drive is hd0. (hd0,1 - hdc2) is the correct address for your /boot partition. (hd0,3 - hdc4) is your / (i.e. root) partition. You have written the mbr and told grub that your /boot/grub directory is on (hd0,1). That being said, I have never coded the drive specifier in the grub "kernel..." lines, so I don't know whether this works or not. Also, why do you need initrd? Here's a sample of my boot from hdb1 (I don't use a separate /boot partition, and I've never used initrd with plain ole ide drives). title=g2-hdb1-bzImage-2.6.0-test6-3 root (hd1,0) kernel /boot/bzImage-2.6.0-test6-3 root=/dev/hdb1 ro Thus, I would think that you need simply (note that I have added "ro" to your kernel line. title=genkernel root (hd0,1) kernel /boot/kernel-2.4.20-gentoo-r7 root=/dev/hda4 ro Good luck. -- Collins Richey - Denver Area if you fill your heart with regrets of yesterday and the worries of tomorrow, you have no today to be thankful for. -- [EMAIL PROTECTED] mailing list
