Changes between Version 5 and Version 6 of bootloaders/grub2
- Timestamp:
- May 11, 2017, 1:36:31 PM (8 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
bootloaders/grub2
v5 v6 4 4 Grub2 [[ftp://alpha.gnu.org/gnu/grub/grub-1.97.1.tar.gz]] 5 5 6 == Change dto boot method ==6 == Changes to boot method == 7 7 These changes apply if you are using the boot method. 8 8 9 === Buil ing Grub2 ===9 === Building Grub2 === 10 10 11 11 {{{ … … 30 30 31 31 == Installing Grub2 == 32 To install Grub2 onto the MBR you need to run the following command. Rem ber to substitute 'sda' for your boot hard drive.32 To install Grub2 onto the MBR you need to run the following command. Remember to substitute 'sda' for your boot hard drive. 33 33 {{{ 34 34 grub-install /dev/sda … … 36 36 37 37 == Creating the Boot Menu == 38 GRUB uses its own naming structure for drives and partitions in the form of (hdn,m), where n is the hard drive number and m is the partition number. The hard drive numbers start from zero and the par ition numbers from one. For example, partition hda1 is (hd0,1) to GRUB and hdb3 is (hd1,3). In contrast to Linux, GRUB does not consider CD-ROM drives to be hard drives. For example, if using a CD on hdb and a second hard drive on hdc, that second hard drive would still be (hd1).38 GRUB uses its own naming structure for drives and partitions in the form of (hdn,m), where n is the hard drive number and m is the partition number. The hard drive numbers start from zero and the partition numbers from one. For example, partition hda1 is (hd0,1) to GRUB and hdb3 is (hd1,3). In contrast to Linux, GRUB does not consider CD-ROM drives to be hard drives. For example, if using a CD on hdb and a second hard drive on hdc, that second hard drive would still be (hd1). 39 39 40 Create a "Boot Menu" for grub by defining the boot menu , ${CLFS} is only required if you are using the boot method. The menu below uses the second partition on the first hard drive, (hd0,2), remember to substitute this for your hard drive and parition.40 Create a "Boot Menu" for grub by defining the boot menu; ${CLFS} is only required if you are using the boot method. The menu below uses the second partition on the first hard drive, (hd0,2); remember to substitute this for your hard drive and partition. 41 41 {{{ 42 42 cat > ${CLFS}/boot/grub/grub.cfg << "EOF"