Changeset 21ba4e3 for chapter08/grub.xml
- Timestamp:
- 10/09/2003 11:22:07 PM (21 years ago)
- Branches:
- 10.0, 10.0-rc1, 10.1, 10.1-rc1, 11.0, 11.0-rc1, 11.0-rc2, 11.0-rc3, 11.1, 11.1-rc1, 11.2, 11.2-rc1, 11.3, 11.3-rc1, 12.0, 12.0-rc1, 12.1, 12.1-rc1, 6.0, 6.1, 6.1.1, 6.3, 6.4, 6.5, 6.6, 6.7, 6.8, 7.0, 7.1, 7.2, 7.3, 7.4, 7.5, 7.5-systemd, 7.6, 7.6-systemd, 7.7, 7.7-systemd, 7.8, 7.8-systemd, 7.9, 7.9-systemd, 8.0, 8.1, 8.2, 8.3, 8.4, 9.0, 9.1, arm, bdubbs/gcc13, ml-11.0, multilib, renodr/libudev-from-systemd, s6-init, trunk, v5_0, v5_1, v5_1_1, xry111/arm64, xry111/arm64-12.0, xry111/clfs-ng, xry111/lfs-next, xry111/loongarch, xry111/loongarch-12.0, xry111/loongarch-12.1, xry111/mips64el, xry111/pip3, xry111/rust-wip-20221008, xry111/update-glibc
- Children:
- 27d9bc1a
- Parents:
- 1a7aecc
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
chapter08/grub.xml
r1a7aecc r21ba4e3 7 7 <userinput>grub</userinput> program.</para> 8 8 9 < para><screen><userinput>grub</userinput></screen></para>9 <screen><userinput>grub</userinput></screen> 10 10 11 11 <para>Grub uses its own naming structure for drives and partitions, in the form … … 25 25 files -- you can use Tab everywhere to make Grub show the alternatives:</para> 26 26 27 < para><screen><userinput>root (hd0,3)</userinput></screen></para>27 <screen><userinput>root (hd0,3)</userinput></screen> 28 28 29 29 <para>Then tell it to install itself into the MBR (Master Boot Record) of 30 30 <filename>hda</filename>:</para> 31 31 32 < para><screen><userinput>setup (hd0)</userinput></screen></para>32 <screen><userinput>setup (hd0)</userinput></screen> 33 33 34 34 <para>If all is well, Grub will have reported finding its files in 35 35 <filename>/boot/grub</filename>. That's all there was to it:</para> 36 36 37 < para><screen><userinput>quit</userinput></screen></para>37 <screen><userinput>quit</userinput></screen> 38 38 39 39 <para>Now we need to create the <filename>menu.lst</filename> file, which 40 40 defines Grub's boot menu:</para> 41 41 42 < para><screen><userinput>cat > /boot/grub/menu.lst << "EOF"</userinput>42 <screen><userinput>cat > /boot/grub/menu.lst << "EOF"</userinput> 43 43 # Begin /boot/grub/menu.lst 44 44 … … 56 56 root (hd0,3) 57 57 kernel /boot/lfskernel root=/dev/hda4 ro 58 <userinput>EOF</userinput></screen> </para>58 <userinput>EOF</userinput></screen> 59 59 60 60 <para>You may want to add an entry for your host distribution. It might look 61 61 like this:</para> 62 62 63 < para><screen><userinput>cat >> /boot/grub/menu.lst << "EOF"</userinput>63 <screen><userinput>cat >> /boot/grub/menu.lst << "EOF"</userinput> 64 64 title Red Hat 65 65 root (hd0,2) 66 66 kernel /boot/kernel-2.4.20 root=/dev/hda3 ro 67 67 initrd /boot/initrd-2.4.20 68 <userinput>EOF</userinput></screen> </para>68 <userinput>EOF</userinput></screen> 69 69 70 70 <para>Also, if you happen to dual-boot Windows, the following entry should 71 71 allow booting it:</para> 72 72 73 < para><screen><userinput>cat >> /boot/grub/menu.lst << "EOF"</userinput>73 <screen><userinput>cat >> /boot/grub/menu.lst << "EOF"</userinput> 74 74 title Windows 75 75 rootnoverify (hd0,0) 76 76 chainloader +1 77 <userinput>EOF</userinput></screen> </para>77 <userinput>EOF</userinput></screen> 78 78 79 79 <para>If <userinput>info grub</userinput> doesn't tell you all you want to
Note:
See TracChangeset
for help on using the changeset viewer.