1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Configuring grub with Pcbsd

Discussion in 'Installing and Upgrading FreeBSD' started by jigglywiggly, Nov 25, 2009.

  1. jigglywiggly

    jigglywiggly New Member

    Messages:
    70
    Likes Received:
    0
    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
    [​IMG]

    Anyone have any ideas? I'm lost.

    Things I have learned: *beep**beep**beep**beep* grub2.
     
  2. SirDice

    SirDice Moderator Staff Member Moderator

    Messages:
    17,427
    Likes Received:
    15
    Try:
    Code:
    os-prober
    update-grub
    
     
  3. jigglywiggly

    jigglywiggly New Member

    Messages:
    70
    Likes Received:
    0
    No luck D:
     
  4. jigglywiggly

    jigglywiggly New Member

    Messages:
    70
    Likes Received:
    0
    I saw this thread http://forums.pcbsd.org/viewtopic.php?f=1&t=14668
    And the last post intrigued me,
    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)
     
  5. graudeejs

    graudeejs Member

    Messages:
    4,594
    Likes Received:
    0
    Did I saw grub2?
    Stick to the good old grub
     
  6. jigglywiggly

    jigglywiggly New Member

    Messages:
    70
    Likes Received:
    0
  7. gnemmi

    gnemmi New Member

    Messages:
    219
    Likes Received:
    0
    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
    
    ?
     
  8. jigglywiggly

    jigglywiggly New Member

    Messages:
    70
    Likes Received:
    0
    Where would that go? There is no menu.lst
     
  9. gnemmi

    gnemmi New Member

    Messages:
    219
    Likes Received:
    0
  10. dennylin93

    dennylin93 New Member

    Messages:
    784
    Likes Received:
    0
    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.
     
  11. jalla

    jalla New Member

    Messages:
    374
    Likes Received:
    0
    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
     
  12. jigglywiggly

    jigglywiggly New Member

    Messages:
    70
    Likes Received:
    0
  13. jigglywiggly

    jigglywiggly New Member

    Messages:
    70
    Likes Received:
    0
    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.
     
  14. jigglywiggly

    jigglywiggly New Member

    Messages:
    70
    Likes Received:
    0
    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.
     
  15. jigglywiggly

    jigglywiggly New Member

    Messages:
    70
    Likes Received:
    0
    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:
     
  16. jigglywiggly

    jigglywiggly New Member

    Messages:
    70
    Likes Received:
    0
    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?
     
  17. gnemmi

    gnemmi New Member

    Messages:
    219
    Likes Received:
    0
    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
     
  18. jigglywiggly

    jigglywiggly New Member

    Messages:
    70
    Likes Received:
    0
    Bah, time to install 32 bit :(
     
  19. tangram

    tangram New Member

    Messages:
    524
    Likes Received:
    0
    More than rumours according to NVIDIA 64-bit FreeBSD Beta Driver By Year's End.
     
  20. jigglywiggly

    jigglywiggly New Member

    Messages:
    70
    Likes Received:
    0
    Oh and for anyone who wonders this is what my grub2 loader looks like, works fine:

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

    stuckinoregon New Member

    Messages:
    4
    Likes Received:
    0