Re: Dual Booting Linux with FreeBSD 9.0 - Grub in MBR
On Fri, 27 Jan 2012 21:32:10 + Kaya Saman kayasa...@gmail.com wrote: Hi, am just wondering if anyone has successfully managed to boot FreeBSD 9.0 and Linux. I run Fedora 16 x64 with Grub installed in my MBR. FBSD9 installed as the new disk scheme GPT. I think (I manually partitioned as my disk is quite crowded). Anyway I found this: http://lists.freebsd.org/pipermail/freebsd-questions/2011-October/234858.html and at the moment I have this in my Grub config: menuentry 'FreeBSD 9.0' { set root=(ada0,1,a) kfreebsd /boot/loader boot } But unfortunately no boot :-( I have tried using (hd0,0), (hd0,1,a), (hd0,0,a), and (hd0,a) but unfortunately nothing is working. The Grub version is 2. Can anyone help me? Hi I have the following partition layout P1 linux swap P2 FreeBSD P3 linux P4 extended which holds 2 more linux partitions FreeBSD 9 installed on P2 and the FreeBSD bootloader on P2 In /etc/grub.d/40_custom I have put the following: menuentry FreeBSD { set root=(hd0,2) chainloader +1 } Then run update-grub as root. The (hd0,2) entry means first harddisk (this laptop only has one) and the second partition, which holds the FreeBSD bootloader that gets loaded with the enry chainloader +1. This works for me. Hope it helps. I think with the way you have the setup now, a module must be loaded first in the grub config. Insmod ufs or similair. Disclaimer: http://www.ose.nl/email ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Dual Booting Linux with FreeBSD 9.0 - Grub in MBR
On 01/28/2012 08:54 AM, Bas Smeelen wrote: On Fri, 27 Jan 2012 21:32:10 + Kaya Samankayasa...@gmail.com wrote: Hi, am just wondering if anyone has successfully managed to boot FreeBSD 9.0 and Linux. I run Fedora 16 x64 with Grub installed in my MBR. FBSD9 installed as the new disk scheme GPT. I think (I manually partitioned as my disk is quite crowded). Anyway I found this: http://lists.freebsd.org/pipermail/freebsd-questions/2011-October/234858.html and at the moment I have this in my Grub config: menuentry 'FreeBSD 9.0' { set root=(ada0,1,a) kfreebsd /boot/loader boot } But unfortunately no boot :-( I have tried using (hd0,0), (hd0,1,a), (hd0,0,a), and (hd0,a) but unfortunately nothing is working. The Grub version is 2. Can anyone help me? Hi I have the following partition layout P1 linux swap P2 FreeBSD P3 linux P4 extended which holds 2 more linux partitions FreeBSD 9 installed on P2 and the FreeBSD bootloader on P2 In /etc/grub.d/40_custom I have put the following: menuentry FreeBSD { set root=(hd0,2) chainloader +1 } Then run update-grub as root. The (hd0,2) entry means first harddisk (this laptop only has one) and the second partition, which holds the FreeBSD bootloader that gets loaded with the enry chainloader +1. This works for me. Hope it helps. I think with the way you have the setup now, a module must be loaded first in the grub config. Insmod ufs or similair. Disclaimer: http://www.ose.nl/email Thanks for the response!! Actually I got this working but eventually was up for nearly 24 hours which meant I was too tired to post back here :-) My Grub is just weird! Which is why I couldn't work things out. For anyone running Fedora 16 or alike this may help; I have this partition layout: 1. FreeBSD UFS2 4. Extended Partition 5. Linux / Ext4 2 Linux Swap 3 Linux JFS Don't ask why 4,5 partitions but Fedora installer took over and left me with no control otherwise Fedora should have been on 2. Now the Grub entry is as follows: menuentry 'FreeBSD 9.0' { insmod part_msdos set root='(hd0,msdos1)' chainloader +1 } I have no idea why my version of grub is sooo different from everyone elses as finding many dualboot bsd/linux combos with Grub entries being more like yours, Bas, this is certainly puzzling. Anyhow the situation is solved :-) Regards, Kaya ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Dual Booting Linux with FreeBSD 9.0 - Grub in MBR
Hi, am just wondering if anyone has successfully managed to boot FreeBSD 9.0 and Linux. I run Fedora 16 x64 with Grub installed in my MBR. FBSD9 installed as the new disk scheme GPT. I think (I manually partitioned as my disk is quite crowded). Anyway I found this: http://lists.freebsd.org/pipermail/freebsd-questions/2011-October/234858.html and at the moment I have this in my Grub config: menuentry 'FreeBSD 9.0' { set root=(ada0,1,a) kfreebsd /boot/loader boot } But unfortunately no boot :-( I have tried using (hd0,0), (hd0,1,a), (hd0,0,a), and (hd0,a) but unfortunately nothing is working. The Grub version is 2. Can anyone help me? Thanks Kaya ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: diskless FreeBSD with grub
--- Ursprüngliche Nachricht --- Von: Richard Burakowski [EMAIL PROTECTED] An: Daniel Hepper [EMAIL PROTECTED] Kopie: freebsd-questions@freebsd.org Betreff: Re: diskless FreeBSD with grub Datum: Thu, 03 Nov 2005 10:22:15 +1100 Daniel Hepper wrote: Hi, I want to boot diskless into FreeBSD-5.4 with grub. snip title bsd-nfsroot kernel (nd)/kernel/kernel ip=dhcp root=/dev/nfs nfsroot=141.2.71.253:/dta/fBSD_diskless boot /snip It loads the kernel, but does not boot. My guess is that it doesn't find the root partition. if you look carefully, it's telling you where it thinks the root partition is. if that looks right, then check your nfs server log. you have seen the diskless booting howto on freebsd.org (among others) and recompiled your kernel for diskless booting? IIRC the kernel goes through a second round of querying dhcp for info. Thanks for your hints! I've read the diskless booting howto before, but I did not yet built a custom kernel. Now I have a custom kernel with: options BOOTP # Use BOOTP to obtain IP address/hostname options BOOTP_NFSROOT # NFS mount root file system using BOOTP info hints GENERIC.hints When I boot this kernel from disk, it shows the device hints, sends out dhcp-requests and tries to mount / with nfs. But when I load it over the net, i get the following: grub root (nd) Filesytem type is tftp, using hole disk. grub kernel --type=freebsd /freebsd-boot/kernel/kernel [FreeBSD-elf, 0x40:0x446f54:0x0,0x847f60:0x7d600:0x4fce0, shtab=0 16438, entry=0x43f2b0] grub boot The prompt disappears and the system reboots after approx. 25 sec. (The custom kernel has the same behaviour as the default kernel from the FreeBSD installationdisk) Where does it tell me where it thinks the root filesystem is? Greetings, Daniel Hepper -- Telefonieren Sie schon oder sparen Sie noch? NEU: GMX Phone_Flat http://www.gmx.net/de/go/telefonie ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
diskless FreeBSD with grub
Hi, I want to boot diskless into FreeBSD-5.4 with grub. I've setup dhcp to provide boot and ip information, tftp to load the kernel and nfs to share the root filesystem. It runs smoothly when I use the pxeloader from FreeBSD, but I can't get it working with Grub. I tried this grub configuration: snip title bsd-nfsroot kernel (nd)/kernel/kernel ip=dhcp root=/dev/nfs nfsroot=141.2.71.253:/dta/fBSD_diskless boot /snip It loads the kernel, but does not boot. My guess is that it doesn't find the root partition. This one: snip title bsd-nfsroot kernel (nd)/loader ip=dhcp root=/dev/nfs nfsroot=141.2.71.253:/dta/fBSD_diskless boot /snip loader says it can't find the kernel. And this one: snip title bsd-nfsroot kernel (nd)/pxeboot ip=dhcp root=/dev/nfs nfsroot=141.2.71.253:/dta/fBSD_diskless boot /snip grub complains that pxeboot is not a correct executable I have spent hours digging the web without a solution. I would really appreciate it, if someone could help or give me a pointer to helpful resources. The background of the problem: I manage the software installation on a router-testbed. It consist of 24 identical x86-systems, with different local OS installation. When a system boots, it load GRUB via PXE from a server. The grub menu is generated dynamically from a configuration file, which determines what OS the system should start. For administration purposes, among other things software distribution, you can configure the systems to boot a diskless linux system via nfs (this works). But as some users run FreeBSD and Linux can't access UFS2-partitions, a diskless FreeBSD-image is required. Greetings, Daniel Hepper ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: diskless FreeBSD with grub
Daniel Hepper wrote: Hi, I want to boot diskless into FreeBSD-5.4 with grub. snip title bsd-nfsroot kernel (nd)/kernel/kernel ip=dhcp root=/dev/nfs nfsroot=141.2.71.253:/dta/fBSD_diskless boot /snip It loads the kernel, but does not boot. My guess is that it doesn't find the root partition. if you look carefully, it's telling you where it thinks the root partition is. if that looks right, then check your nfs server log. you have seen the diskless booting howto on freebsd.org (among others) and recompiled your kernel for diskless booting? IIRC the kernel goes through a second round of querying dhcp for info. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Botting FreeBSD from GRUB
I have Windows XP and Linux already installed on my Laptop and want to also install FreeBSD (by the way I'm new to FreeBSD but quite experimented with Linux). I successfully installed FreeBSD on a primary partition (slice) with most of the default options. However I did choose to leave the MBR untouched because I want to boot FreeBSD with GRUB. I can boot Linux and Windows without problems from GRUB, but can't boot FreeBSD. Here is my partition layout (from Linux's fdisk) # fdisk -l /dev/hda Disk /dev/hda: 30.0 GB, 30005821440 bytes 255 heads, 63 sectors/track, 3648 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Device Boot Start End Blocks Id System /dev/hda1 12015161854567 HPFS/NTFS /dev/hda22373364810249470f W95 Ext'd (LBA) Partition 2 does not end on cylinder boundary. /dev/hda320162372 2867602+ a5 FreeBSD /dev/hda523732435 506016 82 Linux swap /dev/hda624362467 257008+ 83 Linux /dev/hda724683187 5783368+ 83 Linux /dev/hda831883353 163+ 83 Linux /dev/hda933543647 2361523+ 83 Linux Partition table entries are not in disk order And my Grub configuration concerning FreeBSD # For booting FreeBSD title FreeBSD 5.2 root (hd0,2,a) kernel /boot/loader When I try to boot FreeBSD I get the following error from grub: filesystem type unknown, partition type 0xa5 error 17 cannot mount selected partition Also I can't mount the FreeBSD partition under Linux. # mount -t ufs /dev/hda3 /mnt/freebsd/ mount: wrong fs type, bad option, bad superblock on /dev/hda3, or too many mounted file systems But I can succesfully mount it under FreeBSD booting with the fixit floppy. Is there a way to install FreeBSD's bootloader on a floppy to boot my installed system? I am quite mixed up with FreeBSD slices and sub-partitions which are not the same as DOS or Linux partitions. Also after installing FreeBSD, Linux's fdisk reported problems about partitions not ending on cylinder boudaries. Olivier ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Botting FreeBSD from GRUB
On Tue, 23 Mar 2004 11:28:42 -0500, olig [EMAIL PROTECTED] said: I have Windows XP and Linux already installed on my Laptop and want to also install FreeBSD (by the way I'm new to FreeBSD but quite experimented with Linux). I successfully installed FreeBSD on a primary partition (slice) with most of the default options. However I did choose to leave the MBR untouched because I want to boot FreeBSD with GRUB. I can boot Linux and Windows without problems from GRUB, but can't boot FreeBSD. And my Grub configuration concerning FreeBSD # For booting FreeBSD title FreeBSD 5.2 root (hd0,2,a) kernel /boot/loader When I try to boot FreeBSD I get the following error from grub: filesystem type unknown, partition type 0xa5 error 17 cannot mount selected partition Also I can't mount the FreeBSD partition under Linux. # mount -t ufs /dev/hda3 /mnt/freebsd/ mount: wrong fs type, bad option, bad superblock on /dev/hda3, or too many mounted file systems But I can succesfully mount it under FreeBSD booting with the fixit floppy. 1. Grub and your mount command are having difficulty reading UFS2, the new default filesystem for FreeBSD 5.x. One solution is to choose to use the old filesystem, UFS. I have seen previous discussions here about this topic; right now I cannot remember what was said, but you should be able to find these messages with a search from URL: http://freebsd.rambler.ru/. 2. If the steps you took in response to #1 prove insufficient, choose a normal MBR (not the FreeBSD boot loader, not to leave the MBR untouched) when installing FreeBSD. Jud ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Botting FreeBSD from GRUB
olig [EMAIL PROTECTED] writes: And my Grub configuration concerning FreeBSD # For booting FreeBSD title FreeBSD 5.2 root (hd0,2,a) kernel /boot/loader Looks good (and matching your fdisk output) and similar to mine which works OK with 5.2+. I can confirm that kernel kernel doesn't work, and the loader does. When I try to boot FreeBSD I get the following error from grub: filesystem type unknown, partition type 0xa5 error 17 cannot mount selected partition Never seen that. The partition type is same as mine. Also I can't mount the FreeBSD partition under Linux. # mount -t ufs /dev/hda3 /mnt/freebsd/ mount: wrong fs type, bad option, bad superblock on /dev/hda3, or too many mounted file systems I'm not at all sure, but I think that your hda3 is telling mount that there is a file system where there are actually boot records, etc. IIRC, the BSD partitions have Linux numbers 4. Check your dmesg or boot messages to see what it detected. Could be you need UFS support compiled into your Linux kernel. When I tried a couple of years ago, Linux couldn't even read my FreeBSD files reliably. Is there a way to install FreeBSD's bootloader on a floppy to boot my installed system? I doubt it. But you can install GRUB or LILO of a floppy to do it. Except I suppose GRUB would behave the same for you there too. I am quite mixed up with FreeBSD slices and sub-partitions which are not the same as DOS or Linux partitions. Also after installing FreeBSD, Linux's fdisk reported problems about partitions not ending on cylinder boudaries. I used Linux for many years and learned to ignore those common msgs. I have no solution for you, but you might try playing with the GRUB commands at it's prompt during boot. You should be able to poke around the FreeBSD file system a bit, for example. You might also try installing FreeBSD's sysutils/grub port and see if that works any better. I remember some change in behavior after switched to 5.x, which I think was a coincidental GRUB change. Unfortunatly, I can't quite remember what it was -- IIRC, it now won't let me install the grub boot loader from a running FreeBSD like it once did and I had to do it from GRUB's boot prompt or from a grub floppy or something. Maybe the grub program seemed to be generally broken when run from my FreeBSD shell, not being able to recognize all the disk partitions or something. ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Botting FreeBSD from GRUB SOLVED
olig wrote: I have Windows XP and Linux already installed on my Laptop and want to also install FreeBSD (by the way I'm new to FreeBSD but quite experimented with Linux). I successfully installed FreeBSD on a primary partition (slice) with most of the default options. However I did choose to leave the MBR untouched because I want to boot FreeBSD with GRUB. I can boot Linux and Windows without problems from GRUB, but can't boot FreeBSD. Here is my partition layout (from Linux's fdisk) # fdisk -l /dev/hda Disk /dev/hda: 30.0 GB, 30005821440 bytes 255 heads, 63 sectors/track, 3648 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Device Boot Start End Blocks Id System /dev/hda1 12015161854567 HPFS/NTFS /dev/hda22373364810249470f W95 Ext'd (LBA) Partition 2 does not end on cylinder boundary. /dev/hda320162372 2867602+ a5 FreeBSD /dev/hda523732435 506016 82 Linux swap /dev/hda624362467 257008+ 83 Linux /dev/hda724683187 5783368+ 83 Linux /dev/hda831883353 163+ 83 Linux /dev/hda933543647 2361523+ 83 Linux Partition table entries are not in disk order And my Grub configuration concerning FreeBSD # For booting FreeBSD title FreeBSD 5.2 root (hd0,2,a) kernel /boot/loader When I try to boot FreeBSD I get the following error from grub: filesystem type unknown, partition type 0xa5 error 17 cannot mount selected partition Also I can't mount the FreeBSD partition under Linux. # mount -t ufs /dev/hda3 /mnt/freebsd/ mount: wrong fs type, bad option, bad superblock on /dev/hda3, or too many mounted file systems But I can succesfully mount it under FreeBSD booting with the fixit floppy. Is there a way to install FreeBSD's bootloader on a floppy to boot my installed system? I am quite mixed up with FreeBSD slices and sub-partitions which are not the same as DOS or Linux partitions. Also after installing FreeBSD, Linux's fdisk reported problems about partitions not ending on cylinder boudaries. Olivier Thanks to everyone for the suggestions. Finally, the following GRUB configuration did it. # For booting FreeBSD title FreeBSD 5.2 root (hd0,2) chainloader +1 Olivier ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Botting FreeBSD from GRUB
Jud [EMAIL PROTECTED] writes: 1. Grub and your mount command are having difficulty reading UFS2, the new default filesystem for FreeBSD 5.x. One solution is to choose to use the old filesystem, UFS. Which, I suppose, would only have to be done for the partition holding /boot (for 5.x), normally the one holding /. ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
FreeBSD and Grub
On my laptop, I have one hard drive. Slice 4 holds my FreeBSD partition. I used the defaults during the install of 5.2, so /boot lives on slice 4, part a. I have Grub configured as such: root(hd0,3,a) kernel /boot/loader Upon boot attempt, I see: Filesystem type unknown, partition type 0xa5 Error 17: Cannot mount selected partition. Any ideas? Thanks :) Charlie ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: FreeBSD and Grub
Charlie Schluting wrote: root(hd0,3,a) kernel /boot/loader Upon boot attempt, I see: Filesystem type unknown, partition type 0xa5 Error 17: Cannot mount selected partition. OOPS! Ignore that question... I see someone was asking the same thing :) Someone replied: And it will load the MBR from the BSD partition, which will load the loader, which will load the kernel (the best way, really). I'll try to install the MBR in the FreeBSD partition and use 'chainloader'. Thanks! -Charlie ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: FreeBSD and Grub
Joe Lewis wrote: Try : root (hd0,3) chainloader +1 This causes the grub program to load the first sector of the BSD partition, which is a subMBR and handles loading the OS. Joe I'm posting this to the list, because I couldn't find it documented anywhere. I was looking around about how to install the fbsd boot manager to the boot sector of this partition, but it seems it is done by default. Removing 'kernel /boot/loader' and adding 'chainloader +1' (instead of keeping both, like some docs suggest) worked perfectly. Thanks Joe! Charlie Schluting wrote: root(hd0,3,a) kernel /boot/loader Upon boot attempt, I see: Filesystem type unknown, partition type 0xa5 Error 17: Cannot mount selected partition. ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: FreeBSD and GRUB?
On Wednesday 02 July 2003 03:49, Christian Laursen wrote: Henrik Hudson [EMAIL PROTECTED] writes: I installed Grub from ports (cvsup'ed from tonight) and can't quite get her working. I am running 4.8rel. I copied in the various *stage file into /boot/grub . I created a grub.conf and sym-linked menu.lst to it and made everything 444. Try having the real file be /boot/grub/menu.lst and make /etc/grub.conf a symlink to that. Personally I don't have any grub.conf and it works fine without it. Grub has very little chance to follow a symlink to another partition in the boot environment. Yup. That worked. On my Gentoo box it has the symlink, so didn't think that would hurt here :) Thanks. -- Henrik Hudson [EMAIL PROTECTED] `If there's anything more important than my ego around, I want it caught and shot now.' --Hitchhikers Guide to the Galaxy ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]