1e82d Configuring grub with Pcbsd - The FreeBSD Forums
The FreeBSD Forums  

Go Back   The FreeBSD Forums > Base System > Installing & Upgrading

Installing & Upgrading Installing and upgrading FreeBSD.

Reply
 
Thread Tools Display Modes
  #1  
Old November 25th, 2009, 08:36
jigglywiggly jigglywiggly is offline
Junior Member
 
Join Date: Oct 2009
Posts: 70
Thanks: 0
Thanked 0 Times in 0 Posts
Default Configuring grub with Pcbsd

Vostro 1310(laptop)
So, I installed pcbsd, installed nicely, I didn't install the bootmanager because then it would take over grub, which has Ubuntu and Windows.

So then I do update-grub, it doesn't see pcbsd... ok then.
(Also note I am on the awful grub2, grub1 I could have solved this myself)

Then I go to /boot/grub(this is on ubuntu) and look for menu.lst, wait there is no menu.lst anymore, it's grub.cnf which is non editable. Ok then I get confused, and just go to grub commandline on bootup:

I know pcbsd is on /dev/sda3 or how grub will see it (hd0,3)

SO I do:
root (hd0,3)
kernel /boot/loader
unknown command 'kernel'

Uh, why doesn't it know what the command kernel is? Well grub2 changed this into a command called linux. I have no idea why the heck they are making my life worse.

So I do linux /boot/loader
error: Invalid magic number


Anyone have any ideas? I'm lost.

Things I have learned: *beep**beep**beep**beep* grub2.
Reply With Quote
  #2  
Old November 25th, 2009, 08:43
SirDice's Avatar
SirDice SirDice is offline
Moderator
 
Join Date: Nov 2008
Location: Rotterdam, Netherlands
Posts: 13,725
Thanks: 47
Thanked 2,023 Times in 1,862 Posts
Default

Try:
Code:
os-prober
update-grub
__________________
Senior UNIX Engineer at Unix Support Nederland
Experience is something you don't get until just after you need it.
Reply With Quote
  #3  
Old November 25th, 2009, 09:34
jigglywiggly jigglywiggly is offline
Junior Member
 
Join Date: Oct 2009
Posts: 70
Thanks: 0
Thanked 0 Times in 0 Posts
Default

No luck D:
Reply With Quote
  #4  
Old November 25th, 2009, 09:37
jigglywiggly jigglywiggly is offline
Junior Member
 
Join Date: Oct 2009
Posts: 70
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I saw this thread http://forums.pcbsd.org/viewtopic.php?f=1&t=14668
And the last post intrigued me,
Quote:
50_pcbsd in the directory /etc/grub.d/ and ran update-grub. The contents of the file are:

cat << EOF
menuentry "PC-BSD 7.1" {
set root=(hd1,1)
chainloader +1
boot
}
EOF
However this doesn't look like an executable file, and I tried it, nothing... Is there something more to this? (I changed the hd0 obviously)
Reply With Quote
  #5  
Old November 25th, 2009, 09:50
graudeejs's Avatar
graudeejs graudeejs is offline
Style(9) Addict
 
Join Date: Nov 2008
Location: Riga, Latvia
Posts: 4,525
Thanks: 422
Thanked 607 Times in 475 Posts
Default

Did I saw grub2?
Stick to the good old grub
Reply With Quote
  #6  
Old November 25th, 2009, 09:56
jigglywiggly jigglywiggly is offline
Junior Member
 
Join Date: Oct 2009
Posts: 70
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Too late now, or can I go back? Though there is one thing stopping me from going back, when I lose grub(over written), I don't know how to get it back in grub1. Is it the same as this process https://help.ubuntu.com/community/Gr...talling GRUB 2
Reply With Quote
  #7  
Old November 25th, 2009, 10:24
gnemmi's Avatar
gnemmi gnemmi is offline
Member
 
Join Date: Nov 2008
Location: Cap. Fed., Buenos Aires, Argentina
Posts: 219
Thanks: 35
Thanked 21 Times in 18 Posts
Default

have you tried:

Code:
title PC-BSD
root (hd0,3,a)
kernel /boot/loader
or maybe:

Code:
title PC-BSD
root (hd0,2,a)
kernel /boot/loader
?
Reply With Quote
  #8  
Old November 25th, 2009, 10:32
jigglywiggly jigglywiggly is offline
Junior Member
 
Join Date: Oct 2009
Posts: 70
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Where would that go? There is no menu.lst
Reply With Quote
  #9  
Old November 25th, 2009, 10:37
gnemmi's Avatar
gnemmi gnemmi is offline
Member
 
Join Date: Nov 2008
Location: Cap. Fed., Buenos Aires, Argentina
Posts: 219
Thanks: 35
Thanked 21 Times in 18 Posts
Default

In grub.cfg .. which seems to replace menu.lst

Have this around .. it´ll come really handy:

http://grub.enbug.org/CommandList
http://ubuntuforums.org/showthread.php?t=1195275

Hope that helps

Last edited by gnemmi; November 25th, 2009 at 10:58. Reason: typo: it´s grub.cfg
Reply With Quote
  #10  
Old November 25th, 2009, 10:45
dennylin93 dennylin93 is offline
Member
 
Join Date: Dec 2008
Posts: 784
Thanks: 34
Thanked 103 Times in 71 Posts
Default

This is my GRUB config:
Code:
default 0
timeout 5

title Windows XP SP2
map (hd0) (hd1)
map (hd1) (hd0)
rootnoverify (hd1,0)
chainloader +1

title FreeBSD 7.2-RELEASE-p4
rootnoverify (hd0,0)
chainloader +1
Windows is on hd1 and FreeBSD is on hd0.
Reply With Quote
  #11  
Old November 25th, 2009, 11:14
jalla's Avatar
jalla jalla is offline
Member
 
Join Date: Aug 2009
Location: Bergen, Norway
Posts: 335
Thanks: 11
Thanked 67 Times in 58 Posts
Default

Quote:
I know pcbsd is on /dev/sda3 or how grub will see it (hd0,3)
No, /dev/sda3 is (hd0,2) in grub. Don't now grub2, but in grub this should get you going

Code:
root (hd0,2)
chainloader +1
boot
Reply With Quote
  #12  
Old November 25th, 2009, 11:58
jigglywiggly jigglywiggly is offline
Junior Member
 
Join Date: Oct 2009
Posts: 70
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by gnemmi View Post
In grub.cfg .. which seems to replace menu.lst

Have this around .. it´ll come really handy:

http://grub.enbug.org/CommandList
http://ubuntuforums.org/showthread.php?t=1195275

Hope that helps
But, if you do update-grub everything will be lost... (Or if the Linux Kernel changes)
Reply With Quote
  #13  
Old November 25th, 2009, 11:59
jigglywiggly jigglywiggly is offline
Junior Member
 
Join Date: Oct 2009
Posts: 70
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by jalla View Post
No, /dev/sda3 is (hd0,2) in grub. Don't now grub2, but in grub this should get you going

Code:
root (hd0,2)
chainloader +1
boot
I don't think that's right, well in grub2 anyway, when I go to command line just to type
root (hd0,2) it says no such partition.
Reply With Quote
  #14  
Old November 25th, 2009, 12:01
jigglywiggly jigglywiggly is offline
Junior Member
 
Join Date: Oct 2009
Posts: 70
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by dennylin93 View Post
This is my GRUB config:
Code:
default 0
timeout 5

title Windows XP SP2
map (hd0) (hd1)
map (hd1) (hd0)
rootnoverify (hd1,0)
chainloader +1

title FreeBSD 7.2-RELEASE-p4
rootnoverify (hd0,0)
chainloader +1
Windows is on hd1 and FreeBSD is on hd0.
When you say grub config, I'm going to assume you are talking about grub.cfg (because there are like a lot of grub configs now D:, and not menu.lst)
But isn't the whole reason of grub2 not to edit the grub.cfg? I don't know, but I'll try that.
Reply With Quote
  #15  
Old November 25th, 2009, 12:17
jigglywiggly jigglywiggly is offline
Junior Member
 
Join Date: Oct 2009
Posts: 70
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Ok so I just edited the grub.cnf

and I did something and t works I will post back what I wrote, because once I do grub-update it will dissapear D:
Reply With Quote
  #16  
Old November 25th, 2009, 12:45
jigglywiggly jigglywiggly is offline
Junior Member
 
Join Date: Oct 2009
Posts: 70
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Ehhh... the installer detected the 8400mgs but I noticed the windows were lagging a bit, so I thought nvidia drivers were not isntalled so I got to ports and try to install nvidia-drivers, but it says it's only for i386, not amd64... You're kidding right, there are no 64bit video drivers?
Reply With Quote
  #17  
Old November 25th, 2009, 13:01
gnemmi's Avatar
gnemmi gnemmi is offline
Member
 
Join Date: Nov 2008
Location: Cap. Fed., Buenos Aires, Argentina
Posts: 219
Thanks: 35
Thanked 21 Times in 18 Posts
Default

nope ...
there are a lot of threads and info on google about that ...
the only official nvidia drivers for FreeBSD are the i386 ...
the only thing close to the amd64 official nvidia drivers have been rumors ... nothing else
Reply With Quote
  #18  
Old November 25th, 2009, 13:03
jigglywiggly jigglywiggly is offline
Junior Member
 
Join Date: Oct 2009
Posts: 70
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by gnemmi View Post
nope ...
there are a lot of threads and info on google about that ...
the only official nvidia drivers for FreeBSD are the i386 ...
the only thing close to the amd64 official nvidia drivers have been rumors ... nothing else
Bah, time to install 32 bit
Reply With Quote
  #19  
Old November 25th, 2009, 18:22
tangram's Avatar
tangram tangram is offline
Member
 
Join Date: Nov 2008
Location: Portugal
Posts: 524
Thanks: 13
Thanked 65 Times in 56 Posts
Default

Quote:
Originally Posted by gnemmi View Post
nope ...
there are a lot of threads and info on google about that ...
the only official nvidia drivers for FreeBSD are the i386 ...
the only thing close to the amd64 official nvidia drivers have been rumors ... nothing else
More than rumours according to NVIDIA 64-bit FreeBSD Beta Driver By Year's End.
Reply With Quote
  #20  
Old November 26th, 2009, 08:04
jigglywiggly jigglywiggly is offline
Junior Member
 
Join Date: Oct 2009
Posts: 70
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Oh and for anyone who wonders this is what my grub2 loader looks like, works fine:

Code:
insmod ufs2
root (hd0,3)
chainloader +1

Last edited by DutchDaemon; November 26th, 2009 at 18:33. Reason: use [code] tags (#)
Reply With Quote
  #21  
Old November 28th, 2009, 16:44
stuckinoregon stuckinoregon is offline
Junior Member
 
Join Date: Feb 2009
Location: Oregon
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Try this URL. http://old.nabble.com/Dual-Booting-U...d26154525.html

It explains the process. Hopefully you haven't already pooched you grub.d
Reply With Quote
Reply

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
DUAL BOOTING LINUX & FreeBSD - How to restore grub if Bootmgr wipes it out gr1ml0ck Howtos & FAQs (Moderated) 7 July 17th, 2011 08:44
pcbsd electrovalent Installing & Upgrading 6 October 19th, 2009 18:26
nvidia driver on pcbsd dumkat X.Org 5 June 30th, 2009 13:09
gnome does not open (PCBSD) lio_013 GNOME 8 May 20th, 2009 03:41
grub install error general Installation and Maintenance of FreeBSD Ports or Packages 0 February 25th, 2009 09:46


All times are GMT +1. The time now is 02:02.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.
The mark FreeBSD is a registered trademark of The FreeBSD Foundation and is used by The FreeBSD Project with the permission of The FreeBSD Foundation.
Web protection and acceleration provided by CloudFlare
0