Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED]grub woes, dual boot Gentoo and FreeBSD
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Unsupported Software
View previous topic :: View next topic  
Author Message
theholymac
n00b
n00b


Joined: 28 Jun 2006
Posts: 56
Location: Probably at the solar car shop in St. Paul

PostPosted: Fri Dec 19, 2008 9:38 pm    Post subject: [SOLVED]grub woes, dual boot Gentoo and FreeBSD Reply with quote

I'm having some major issues with getting grub to happily dual-boot Gentoo and FreeBSD. Here's how my machine is set up:

First IDE Channel:
-Master: 80GB Hard Drive
--Partition #1: /boot --> grub lives here
--Partition #3: /
-Slave: 60 GB Hard Drive
--Partition #1: FreeBSD
---Slice a: /
---Slice b: Swap
---Slice d: /var
---Slice e: /tmp
---Slice f: /usr
Second IDE Channel:
-Master: CDRW
-Slave: Seagate Decathlon 850
--Partition #1: Linux Swap

The Gentoo/Linux side of it works perfectly. The first drive is seen as hda, the FreeBSD drive is seen as hdb, the swap drive is hdd. Grub sees the first drive as hd0, and, WHEN BOOTED INTO LINUX, sees the FreeBSD drive as hd1. I can launch grub from the command line, type
Code:
root (hd1,0,
and then tab complete to show the available partitions.

However, when booting, grub returns an error 21 : Selected disk does not exist. When the grub command line is run, it returns error 21 for any hdx other than hd0.

I suspect this is an issue with /boot/grub/device.map

Code:

(fd0)    /dev/fd0
(hd0)    /dev/hda
(hd1)    /dev/hdb


FreeBSD numbers the drives differently, it claims they are ad0, ad1, and ad3, these correspond to hda, hdb, and hdd on the linux side, respectively. I have tried replacing /dev/hdb with /dev/ad1 in /boot/grub/device.map, with exactly the same results., as did eliminating the hd1 entry entirely.

The relevant section of grub.conf:

Code:

title FreeBSD 7.0
root  (hd1,0,a)
kernel /boot/loader


Last edited by theholymac on Sat Dec 20, 2008 1:13 am; edited 1 time in total
Back to top
View user's profile Send private message
loftwyr
l33t
l33t


Joined: 29 Dec 2004
Posts: 970
Location: 43°38'23.62"N 79°27'8.60"W

PostPosted: Fri Dec 19, 2008 10:08 pm    Post subject: Reply with quote

If the gentoo part works fine, then you'll likely have better luck on a FreeBSD forum.
_________________
My emerge --info
Have you run revdep-rebuild lately? It's in gentoolkit and it's worth a shot if things don't work well.
Celebrating 5 years of Gentoo-ing.
Back to top
View user's profile Send private message
theholymac
n00b
n00b


Joined: 28 Jun 2006
Posts: 56
Location: Probably at the solar car shop in St. Paul

PostPosted: Sat Dec 20, 2008 1:13 am    Post subject: Reply with quote

As it turns out, the slave on ide channel 1 was turn off in the bios, I'm not sure how or why that happened, but turning is back on fixed everything.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Unsupported Software All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum