Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 13 May 2013 19:55:17 +0300
From:      Jeff Tipton <jeff.t@mail.com>
To:        freebsd-questions@freebsd.org
Subject:   Re: Bootloader/Replace GRUB
Message-ID:  <51911AF5.702@mail.com>
In-Reply-To: <CAL1yNpyWu4X2j6x2z0TDr=F9ETyumib-v=4_Y4W7Jms8xVizGQ@mail.gmail.com>
References:  <CAL1yNpyWu4X2j6x2z0TDr=F9ETyumib-v=4_Y4W7Jms8xVizGQ@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On 05/13/2013 19:41, Louis Ciotti wrote:
> Hello,
>
> I replaced a Linux partition on my laptop with FreeBSD.  Now it will not
> but giving me an GRUB error.  I assume I have to remove/replace GRUB, as I
> will want to dual boot this with a windows partition.
>
> So being the FreeBSD newbie that I am I am stumped on what to do to correct
> this.
>
> Thanks,
>
> Lou
> _______________________________________________
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"
Hi,

If it's an MBR partition, you can boot from a live CD (or installation 
CD and choose "Live CD"), log in as root and:

/sbin/gpart bootcode -b /boot/boot0 ada0

where ada0 is the HDD device. (Check gpart man page for more examples 
and parameters)

This will create a simple boot selector where you can choose between 
Windows/FreeBSD. There's also grub and grub2 in the ports but I've not 
tried.

-Jeff



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?51911AF5.702>