DaemonForums  

Go Back   DaemonForums > FreeBSD > FreeBSD General

FreeBSD General Other questions regarding FreeBSD which do not fit in any of the categories below.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 19th January 2009
TomAmundsen TomAmundsen is offline
Real Name: Tom Amundsen
Computional Linguist
 
Join Date: Jul 2008
Location: Los Angeles, CA
Posts: 23
Default Lost FreeBSD boot record (when installing Ubuntu)

So, I was finally forced to use Linux because of software for a class at school.

I installed Ubuntu, on the partition that used to hold Windows XP. Ubuntu's disk partitioning tool didn't recognize my FreeBSD partition - it said "unknown." I'm not sure if it's the fact that it was unknown, or if I didn't select a mount point for the FreeBSD partition (I don't think that could be the problem, since I didn't want to change anything about my FreeBSD partition). But, now when Ubuntu's GRUB bootloader comes up, I can't select FreeBSD.

The FreeBSD partition is still on my machine, I just can't boot to it. Does anyone know how to fix this?
Reply With Quote
  #2   (View Single Post)  
Old 19th January 2009
J65nko J65nko is offline
Administrator
 
Join Date: May 2008
Location: Budel - the Netherlands
Posts: 4,167
Default

You google for GAG, download and install.
__________________
You don't need to be a genius to debug a pf.conf firewall ruleset, you just need the guts to run tcpdump
Reply With Quote
  #3   (View Single Post)  
Old 19th January 2009
TerryP's Avatar
TerryP TerryP is offline
Arp Constable
 
Join Date: May 2008
Location: USofA
Posts: 1,547
Default

You have to go into the advanced crap towards the end and tell it to installing GRUB into the Ubuntu / partition, in order to avoid that.

If you want to use GRUB, setting up the menu entry is easy, if you want to reinstall FreeBSDs boot loader; you'll have to install GRUB into Ubuntu's /, then boot off your FreeBSD install disks (or use GRUB to get to FreeBSD) and re-install the boot code via fdisk.


Which way are you wanting to go?


Edit: GAG as J65nko suggested, is also a great boot loader; I've used it for years.
__________________
My Journal

Thou shalt check the array bounds of all strings (indeed, all arrays), for surely where thou typest ``foo'' someone someday shall type ``supercalifragilisticexpialidocious''.
Reply With Quote
  #4   (View Single Post)  
Old 19th January 2009
TomAmundsen TomAmundsen is offline
Real Name: Tom Amundsen
Computional Linguist
 
Join Date: Jul 2008
Location: Los Angeles, CA
Posts: 23
Default

Quote:
Originally Posted by J65nko View Post
You google for GAG, download and install.
OK. I did that. Now I can boot to FreeBSD, but not Ubuntu! When I try to boot Ubuntu, it says "Boot sector not found or invalid"

This is like some kind of sick joke...
Reply With Quote
  #5   (View Single Post)  
Old 19th January 2009
J65nko J65nko is offline
Administrator
 
Join Date: May 2008
Location: Budel - the Netherlands
Posts: 4,167
Default

In 99% of this type of cases, GAG usually solves issues like this.
Maybe http://users.bigpond.net.au/hermanzone/p12.htm helps.
__________________
You don't need to be a genius to debug a pf.conf firewall ruleset, you just need the guts to run tcpdump
Reply With Quote
  #6   (View Single Post)  
Old 19th January 2009
phoenix's Avatar
phoenix phoenix is offline
Risen from the ashes
 
Join Date: May 2008
Posts: 696
Default

I've always found it nicer/easier to use GRUB to dualboot between a Linux install and a FreeBSD install. The menu.lst entry for FreeBSD would look like:
Code:
title FreeBSD
root (hd0,0,a)
kernel /boot/loader
Simple as that.

hd0 means "first harddrive",
the ,0 means "first primary partition on drive" (slice in FreeBSD-speak),
and the ,a means "first sub-partition" (partition in FreeBSD-speak).

Adjust the values as needed.

You'll get the GRUB boot menu first, then the FreeBSD boot menu second.
__________________
Freddie

Help for FreeBSD: Handbook, FAQ, man pages, mailing lists.
Reply With Quote
  #7   (View Single Post)  
Old 19th January 2009
TomAmundsen TomAmundsen is offline
Real Name: Tom Amundsen
Computional Linguist
 
Join Date: Jul 2008
Location: Los Angeles, CA
Posts: 23
Default

Quote:
Originally Posted by phoenix View Post
I've always found it nicer/easier to use GRUB to dualboot between a Linux install and a FreeBSD install. The menu.lst entry for FreeBSD would look like:
Code:
title FreeBSD
root (hd0,0,a)
kernel /boot/loader
Simple as that.

hd0 means "first harddrive",
the ,0 means "first primary partition on drive" (slice in FreeBSD-speak),
and the ,a means "first sub-partition" (partition in FreeBSD-speak).

Adjust the values as needed.

You'll get the GRUB boot menu first, then the FreeBSD boot menu second.
Thank you so much!

I in fact found out this exact solution in parallel to your post. That is what got it working for me.
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
Installing FreeBSD and encryption? neurosis FreeBSD Security 1 1st November 2008 05:51 PM
installing linux on freeBSD freddybaker Other BSD and UNIX/UNIX-like 4 17th October 2008 03:40 PM
Installing eclipse on FreeBSD 7 weziw FreeBSD Ports and Packages 2 13th July 2008 03:18 PM
Looking towards installing FreeBSD 7.0 austinramsay FreeBSD General 4 23rd June 2008 01:39 AM
DNS problem- name server record tanked General software and network 9 16th June 2008 02:45 PM


All times are GMT. The time now is 04:44 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick