No, your root is apparently hdc4, so you'd append root=/dev/hdc4 to the kernel line.  
Also, you'd have to add a FreeBSD section.  I only have one user with a FreeBSD box, 
which he pretty much administers himself.  I seem to recall there are issues using 
grub to boot it.  Better read up on that.
http://www.gnu.org/manual/grub-0.92/html_mono/grub.html would be a good start, in 
addition to the FreeBSD site.

On 12:29 Sun 12 Oct     , Monah Baki wrote:
> So hopefully if I were to add to my grub.conf the following:
> 
>  root (hd2,1) 
>  kernel (hd2,1)/boot/kernel-2.4.20-gentoo-r7 root=/dev/hda4 
>  initrd (hd2,1)/boot/initrd-2.4.20-gentoo-r7 
> 
> I should get the (freebsd & linux) label and be able to boot either, or do I need to 
> also add in 
> grub.conf a section for freebsd 
> 
> 
> On Sun, 12 Oct 2003 11:11:54 -0400, Barry Marler wrote
> > Hmm...Looks like grub wants (hd2,1), then.
> > 
> > On 12:02 Sun 12 Oct     , Monah Baki wrote:
> > > My dmesg shows the following:
> > > 
> > > VP_IDE: IDE Controller at PCI Slot 00:11.1
> > > VP_IDE: chipset revision 6
> > > VP_IDE: not 100% native mode: will probe irqs later
> > > VP_IDE: VIA vt8231 (rev 10) IDE UDMA100 controller on pci100:11.1
> > >      ide0: BM-DMA at 0xd000-0xd007, BIOS settings: hda:pio, hdb:DMA
> > >      ide1: BM-DMA at 0xd008-0xd00f, BIOS settings: hdc:DMA, hdd:pio
> > > hdb: TDK CDRW5200B, ATAPI CD/DVD-ROM drive
> > > hdc: Maxtor 6E020L0, ATA Disk Drive
> > > 
> > > Could not find anywhere in my dmesg anything related to hda besides what was 
> > > given 
> above.
> > > 
> > > The machine has no floppy drive.
> > > 
> > > Thank you.
> > > 
> > > 
> > > On Sun, 12 Oct 2003 10:49:28 -0400, Barry Marler wrote
> > > > So, what are hda and hdb on your system?
> > > > 
> > > > On 11:32 Sun 12 Oct     , Monah Baki 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
> > > > > > 
> > > > > > --
> > > > > > [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
> > >
> > 
> > -- 
> > 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

Reply via email to