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
>
> --
> [EMAIL PROTECTED] mailing list
--
[EMAIL PROTECTED] mailing list