Difference between revisions of "Talk:Dual Booting"

From PC-BSD Wiki
Jump to: navigation, search
m
(Grub 2: new section)
(One intermediate revision by one user not shown)
Line 6: Line 6:
 
* [http://www.freebsd.org/cgi/man.cgi?query=boot0cfg http://www.freebsd.org/cgi/man.cgi?query=boot0cfg]
 
* [http://www.freebsd.org/cgi/man.cgi?query=boot0cfg http://www.freebsd.org/cgi/man.cgi?query=boot0cfg]
 
* [http://www.freebsd.org/doc/en/books/handbook/boot.html http://www.freebsd.org/doc/en/books/handbook/boot.html]
 
* [http://www.freebsd.org/doc/en/books/handbook/boot.html http://www.freebsd.org/doc/en/books/handbook/boot.html]
* [http://forums.freebsd.org/showthread.php?t=29099]
+
* [http://forums.freebsd.org/showthread.php?t=29099 http://forums.freebsd.org/showthread.php?t=29099]
 
From commandline:
 
From commandline:
 
  boot0cfg -B ada0
 
  boot0cfg -B ada0
 +
 +
== Grub 2 ==
 +
 +
I noticed the section on Grub 2 is a little out of date. The map command is a legacy command. In Grub 2, it was renamed to drivemap. Also, the device names changed slightly in Grub 2: the partitions of the hard drive are counted from '''1''' instead of 0: so, (hd0,msdos1) is the first partition of the first hard drive.
 +
 +
drivemap isn't actually needed to boot PC-BSD if it's on the second disk, at least for me. My menuentry is something like this:
 +
 +
<code>menuentry "PC-BSD 9.1" {<br />
 +
insmod ufs2<br />
 +
set root=(hd1,msdos1)<br />
 +
chainloader +1<br />
 +
}</code><br />

Revision as of 18:42, 1 January 2013

The option to install a boot loader during PC-BSD installation is no longer present in the GUI, hence the mods to the discussion around recovering from "accidental use" of that previously available option.


Unsure exactly how/where to fit this in:

boot0cfg

From commandline:

boot0cfg -B ada0

Grub 2

I noticed the section on Grub 2 is a little out of date. The map command is a legacy command. In Grub 2, it was renamed to drivemap. Also, the device names changed slightly in Grub 2: the partitions of the hard drive are counted from 1 instead of 0: so, (hd0,msdos1) is the first partition of the first hard drive.

drivemap isn't actually needed to boot PC-BSD if it's on the second disk, at least for me. My menuentry is something like this:

menuentry "PC-BSD 9.1" {
insmod ufs2
set root=(hd1,msdos1)
chainloader +1
}