LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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 04-07-2005, 12:05 PM   #1
Gsee
Member
 
Registered: Mar 2004
Location: Australia
Distribution: FreeBSD, OpenBSD, Gentoo, Debian
Posts: 153

Rep: Reputation: 30
grub + ufs - how can I do it?


Can someone finally put me straight - I've heard rumours that the latest version of grub now supports the UFS filesystem which should theoretically mean I can mount a FreeBSD /boot partition. I've tried getting it to work, however the closest I've managed is receiving the following when I select FreeBSD at the grub menu:

Booting 'Free BSD 5.3 RELEASE'

root (hd0,3a)
Filesystem type unknown, partition type 0xa5
kernel /boot/loader

Error 17: Cannot mount selected partition

I should mention that I've tried point grub to (hd0,3,a), (hd0,3a), (hd3,a).

I don't know if you want my grub.conf file or anything, but whatever you want/need I'll be happy to provide.

I've googled around a bit and found a site which had a patch that I installed. Grub was installed using Gentoo - so anyone that can tell me what I need to do to grub to get it working in Gentoo terms would be great... but any advice at all would be very much valued also.


I don't think it's relevant at this stage, but to let you know:

/hda1 Windows Boot - Primary
/hda2 Extended Partition - Primary
/hda3 Gentoo Boot - Primary
/hda4 FreeBSD Boot - Primary

/hda5 Windows Temp - Logical
/hda6 Windows Data - Logical
/hda7 Windows DVD - Logical
/hda8 Windows Spare - Logical
/hda9 Gentoo/FreeBSD shared Swap - Logical
/hda10 Gentoo Home - Logical
/hda11 Gentoo Root - Logical

The shared swap isn't set up as yet basically because I haven't been able to boot FreeBSD yet.

My install order was Windows XP, Gentoo, FreeBSD.

/hda4 currently is where FreeBSD is installed in its entirety - /, /usr, swap - everything. When I get into FreeBSD I'll start fighting with getting Gentoo and FreeBSd using the same swap partition but that's not a priority.

Thanks all in advance,
BTW, if anyone things this belongs in the software/grub section then please let me know. I was torn between the two locations to post. I figured more BSD users would have fought with grub rather than grub users 'playing' with BSD.

Regards,
Gsee
 
Old 04-08-2005, 08:07 AM   #2
Gsee
Member
 
Registered: Mar 2004
Location: Australia
Distribution: FreeBSD, OpenBSD, Gentoo, Debian
Posts: 153

Original Poster
Rep: Reputation: 30
Hey guys, bit of a courtesy post:

In order for me to get grub to boot to FreeBSD I had to have the following entry in grub.conf

# For booting FreeBSD
title FreeBSD 5.3
root (hd0,3)
chainloader +1

The Gentoo version of grub.conf.sample (if it's different to anything else) defined a FreeBSD example entry as:

# For booting FreeBSD
title FreeBSD 5.3
root (hd0,3,a)
kernel /boot/loader.

I found my answer here:

http://lists.freebsd.org/pipermail/f...ch/041367.html

All credit goes to those who resolved the issue in the above link. I merely researched a little more.

Thanks for your time and I hope this thread can be useful to someone down the track.

Gsee
 
  


Reply



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
Mounting UFS in RW mode sstallion Linux - General 1 01-24-2006 06:10 AM
UFS-Implementations spinifeX *BSD 1 01-09-2005 12:01 AM
How to format a disk to ufs? garnser *BSD 4 12-16-2004 06:11 PM
UFS support on Linux RajaRC Linux - General 1 04-21-2004 01:44 AM
Rehat 8.0 and UFS support Juniper34 Linux - General 1 07-22-2003 11:52 AM

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

All times are GMT -5. The time now is 04:23 PM.

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