blob: 79dfa2da1acd9efa5d3698b190c6913d0f4c9446 (
plain)
1 INSTALLATION
2
3 Once the grub2 port is installed, the boot loader itself can be installed
4 like so:
5
6 # grub-install /dev/<device>
7
8 For example, to install grub2 into the master boot record of the first
9 SCSI or SATA drive:
10
11 # grub-install /dev/sda
12
13 To install to the second partition of the first SCSI or SATA drive
14 instead of the MBR:
15
16 # grub-install /dev/sda2
17
18 CONFIGURATION
19
20 A configuration menu file is required for grub2 to do more than display
21 a command line. It can be created automatically using the 'grub-mkconfig'
22 command like so:
23
24 # grub-mkconfig > /boot/grub/grub.cfg
25
26 NOTE: For grub-mkconfig to work properly the following conditions should
27 be met:
28
29 1) The kernel is expected to be named one of these ways:
30 /boot/vmlinuz-*
31 /vmlinuz-*
32 /boot/kernel-*
33
34 If the kernel is located somewhere else grub-mkconfig will NOT
35 find it! For example, '/boot/vmlinuz-3.10.28' is good and
36 '/boot/linux-3.10.28' would not be found.
37
38 2) When dual-booting with Linux installations on other partitions
39 or drives, grub-mkconfig will not find them without the extra
40 program 'os-prober' installed.
41
42 The configuration file can also be created manually. A sample grub.cfg
43 is included in the port.
|