LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > *BSD
User Name
Password
*BSD This forum is for the discussion of all BSD variants.
FreeBSD, OpenBSD, NetBSD, etc.

Notices


Reply
  Search this Thread
Old 01-17-2004, 04:02 AM   #1
bhaskie
Member
 
Registered: Jan 2004
Location: New Delhi, India
Distribution: L.F.S 5.0 | FreeBSD 5.2 | Debian sid | Gentoo 2004.0 | Slackware 9.1
Posts: 78

Rep: Reputation: 15
GRUB can't boot FreeBSD 5.1


Hi,
_I am not being able to boot into FreeBSD 5.1 with GRUB. I have an 80 GB
Seagate Barracuda HDD with Debian (sid), Red Hat 8.0 and 9 installed. Grub's
installed in the MBR and my /boot (where GRUB is located) is /dev/hda5
(within 8.3 GB though I have a new motheboard). I boot around 8 different linux kernels with grub and they all load fine.
Even kernels beyond 60 GB are loaded without any problem from ext3 partitions.
(my debian /boot is beyond 60GB). Now I have a FreeBSD slice (hda3) beyond 72
GB. The problem is that my kernel doesn't boot from it. I have tried all
possibilities but have reached no solution as yet. From the GRUB command-line
during boot, when I try setting the root partition manually, grub says partition is unknown type but gives the correct hex value. Seems it is not being able to recognize the UFS partition. After that the boot command fails.

I have another 40 GB hard disk running only FreeBSD 5.1 and even that cant be booted thru GRUB. Earlier versions of FreeBSD used to boot fine thru GRUB. Then the same version of grub showed the correct partition type. I am wondering whether grub fails to boot FreeBSD 5.1! Is this a known issue with grub? Does anyone have any solutions?
Can there be some problem with my disk partitioning? I have edited grub commands, recompiled kernels, also upgraded grub once. No solution yet. I have to set my bios to boot from hdb when i have to boot into bsd.

Bhaskar.

Last edited by bhaskie; 01-17-2004 at 04:05 AM.
 
Old 01-17-2004, 10:29 AM   #2
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Virginia, USA
Distribution: Debian 12
Posts: 8,336

Rep: Reputation: 548Reputation: 548Reputation: 548Reputation: 548Reputation: 548Reputation: 548
"I have edited grub commands, recompiled kernels, also upgraded grub once. No solution yet."

Here is a bug description in grub that looks like it describes your problem:

http://mail.gnu.org/archive/html/bug.../msg00003.html

If this bug is not fixed in the latest version of grub you might try installing an older version of grub that is pre-bug.

Or you might switch to lilo.

___________________________________
Be prepared. Create a LifeBoat CD.
http://users.rcn.com/srstites/LifeBo...home.page.html

Steve Stites
 
Old 01-17-2004, 02:29 PM   #3
bhaskie
Member
 
Registered: Jan 2004
Location: New Delhi, India
Distribution: L.F.S 5.0 | FreeBSD 5.2 | Debian sid | Gentoo 2004.0 | Slackware 9.1
Posts: 78

Original Poster
Rep: Reputation: 15
Hi,
Thanks for the pointer. Don't know how I could miss that! Though the patch mentioned in your link is 3 yrs old, I wonder how the bug can still exist for so long (if it actually is my problem). Will apply the diff and check if it works.
Regards,
Bhaskar
 
Old 01-17-2004, 02:55 PM   #4
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Virginia, USA
Distribution: Debian 12
Posts: 8,336

Rep: Reputation: 548Reputation: 548Reputation: 548Reputation: 548Reputation: 548Reputation: 548
"Though the patch mentioned in your link is 3 yrs old,"

Sorry, I must have not noticed the date.

___________________________________
Be prepared. Create a LifeBoat CD.
http://users.rcn.com/srstites/LifeBo...home.page.html

Steve Stites
 
Old 01-17-2004, 03:31 PM   #5
bhaskie
Member
 
Registered: Jan 2004
Location: New Delhi, India
Distribution: L.F.S 5.0 | FreeBSD 5.2 | Debian sid | Gentoo 2004.0 | Slackware 9.1
Posts: 78

Original Poster
Rep: Reputation: 15
Hey,
I found this link dated a few weeks back:
http://www.mail-archive.com/bug-grub.../msg08012.html
Seems to be the same error.

quoted - "Yes. FreeBSD 5.x should use UFS2 as your filesystem, and GRUB simply
does not support that filesystem (yet). For now, you can boot it via
chainloader like Windows."

Its working now!

Last edited by bhaskie; 01-17-2004 at 03:32 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
gentoo : grub: The file /boot/boot/grub/stage1 not read correctly Boudewijn Linux - Software 3 05-21-2008 03:13 AM
need to access /boot/grub/menu.lst and /boot/grub/device.map neouto Linux - Newbie 8 09-04-2005 11:45 AM
FreeBSD and GRUB danielanson *BSD 4 07-24-2005 12:04 PM
How to "dual boot" linux (debian) and Freebsd using Grub? hkl8324 Debian 4 06-15-2005 02:32 PM
Grub Bootloader not seeing FreeBSD cmf5150 Linux - Newbie 3 01-29-2004 08:59 PM

LinuxQuestions.org > Forums > Other *NIX Forums > *BSD

All times are GMT -5. The time now is 05:25 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration