Re: [gentoo-user] Dual boot question
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
Re: [gentoo-user] Dual boot question
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
Re: [gentoo-user] Dual boot question
In case you have just one disk, it's very common, it's connected as hda (1.ide , master) What's your reason to connect it as hdc (2.ide,master) ? Just to get in troubles :-) ? Boot partition shoud be under 1024 cylider due to BIOS limits (so usually it sits on hda1, but NOT hdc1). noro 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 -- [EMAIL PROTECTED] mailing list
Re: [gentoo-user] Dual boot question
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
Re: [gentoo-user] Dual boot question
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 StartEnd BlocksId System /dev/hdc11 2031710239736+ a5 FreeBSD /dev/hdc2*20318 20559 12196883 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
Re: [gentoo-user] Dual boot question
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 StartEnd Blocks Id System /dev/hdc11 2031710239736+ a5 FreeBSD /dev/hdc2*20318 20559 12196883 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
Re: [gentoo-user] Dual boot question
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 StartEnd Blocks Id System /dev/hdc11 2031710239736+ a5 FreeBSD /dev/hdc2*20318 20559 12196883 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
Re: [gentoo-user] Dual boot question
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 StartEnd Blocks Id System /dev/hdc11 2031710239736+ a5 FreeBSD /dev/hdc2*20318 20559 12196883 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
Re: [gentoo-user] Dual boot question
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 StartEnd Blocks Id System /dev/hdc11 2031710239736+ a5 FreeBSD /dev/hdc2*20318 20559 121968 83 Linux /dev/hdc3 20560 21551 499968 82 Linux swap /dev/hdc4 21552 40395 9497376 83Linux 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
Re: [gentoo-user] Dual boot question
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 StartEnd Blocks Id System /dev/hdc11 2031710239736+ a5 FreeBSD/dev/hdc2*20318 20559 12196883 Linux /dev/hdc3 20560 21551 499968 82 Linux swap/dev/hdc4 21552 40395 9497376 83Linux 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
Re: [gentoo-user] Dual boot question
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 StartEnd Blocks Id System /dev/hdc11 2031710239736+ a5 FreeBSD /dev/hdc2*20318 20559 121968 83 Linux /dev/hdc3 20560 21551 499968 82 Linux swap /dev/hdc4 21552 40395 9497376 83Linux 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 --
Re: [gentoo-user] Dual boot question
* Barry Marler [EMAIL PROTECTED] [2003-10-12 11:44]: Also, you'd have to add a FreeBSD section. I seem to recall there are issues using grub to boot it. Better read up on that. I would recommend having a look at the grub info manual: % info grub There's a section on booting FreeBSD. I recently set up Grub to dual-boot Gentoo and NetBSD after installing the former on my small second hard-drive that used to house another O$. I'd recommend using Grub's tab completion to see your available options. If it only gives you one harddrive option then you know which to use. :-) Also, you may need to chainload FreeBSD, rather than booting directly. I'll send you my grub.conf when I get home. Good luck David -- [EMAIL PROTECTED] mailing list
Re: [gentoo-user] Dual boot question
* David Friggens [EMAIL PROTECTED] [2003-10-13 08:42]: I recently set up Grub to dual-boot Gentoo and NetBSD ... I'll send you my grub.conf when I get home. According to Linux, NetBSD is on hda and Gentoo boot/root are hdd1 and hdd3 respectively. The tab completion at the grub command line told me it thought they were hd0 and hd1, but it wouldn't boot unless I called them hd1 and hd0. Weird. Anyway my grub.conf has title=Gentoo root (hd0,0) kernel (hd0,0)/boot/kernel-2.4.20-gentoo-r7 root=/dev/hdd3 initrd (hd0,0)/boot/kernel-2.4.20-gentoo-r7 title=NetBSD root (hd1,0,a) chainloader (hd1,0)+1 * Monah Baki [EMAIL PROTECTED] [2003-10-12 02:48]: Now my disk layout is: hdc1 Freebsd hdc2 Linux (boot) hdc3 Linux (swap) hdc4 Linux (root) So you probably want to do something like title=Gentoo root (hd0,1) kernel (hd0,1)/boot/kernel-2.4.20-gentoo-r7 root=/dev/hdc4 initrd (hd0,1)/boot/initrd-2.4.20-gentoo-r7 title=FreeBSD root (hd0,0,a) kernel /boot/loader or if that doesn't work title=FreeBSD root (hd0,0,a) chainloader (hd0,0)+1 Hope this helps David -- [EMAIL PROTECTED] mailing list
Re: [gentoo-user] Dual boot question
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 On Fri, 10 Oct 2003 12:32:49 -0500, Andrew Gaffney wrote Monah Baki wrote: Hi all, I'm trying to dual boot gentoo with freebsd, I installed freebsd first, then as I was partioning my HDD, I noticed gentoo's device boot was labeled (/dev/hdc2p1, hdc2p2 and hdc2p3) Freebsd was hdc1. I wanted to enable ext3 on hdc2p1 but the system responded with The device apparently does not exist, and I checked /dev which was true. You've got it backwards. Gentoo is on /dev/hdc1. FreeBSD's partitions are hdc2p[123]. -- Andrew Gaffney -- [EMAIL PROTECTED] mailing list -- [EMAIL PROTECTED] mailing list
[gentoo-user] Dual boot question
Hi all, I'm trying to dual boot gentoo with freebsd, I installed freebsd first, then as I was partioning my HDD, I noticed gentoo's device boot was labeled (/dev/hdc2p1, hdc2p2 and hdc2p3) Freebsd was hdc1. I wanted to enable ext3 on hdc2p1 but the system responded with The device apparently does not exist, and I checked /dev which was true. Any suggestions?? Thank you -- [EMAIL PROTECTED] mailing list
Re: [gentoo-user] Dual boot question
Monah Baki wrote: Hi all, I'm trying to dual boot gentoo with freebsd, I installed freebsd first, then as I was partioning my HDD, I noticed gentoo's device boot was labeled (/dev/hdc2p1, hdc2p2 and hdc2p3) Freebsd was hdc1. I wanted to enable ext3 on hdc2p1 but the system responded with The device apparently does not exist, and I checked /dev which was true. You've got it backwards. Gentoo is on /dev/hdc1. FreeBSD's partitions are hdc2p[123]. -- Andrew Gaffney -- [EMAIL PROTECTED] mailing list