📄 00000093.htm
字号:
<HTML><HEAD> <TITLE>BBS水木清华站∶精华区</TITLE></HEAD><BODY><CENTER><H1>BBS水木清华站∶精华区</H1></CENTER>发信人: highsun ( ), 信区: Linux <BR>标 题: [转载]GRUB FAQ <BR>发信站: BBS 水木清华站 (Thu Jul 20 21:34:16 2000) <BR> <BR>GNU GRUB FAQ <BR>[Japanese] <BR>---------------------------------------------------------------------------- <BR>---- <BR>0. I have questions about GRUB! <BR>1. How does GNU GRUB differ from Erich's original GRUB? <BR>2. Can GRUB boot my operating system from over 8GB hard disks? <BR>3. Can I put Stage2 into a partition which is over 1024 cylinders? <BR>4. How to create a GRUB boot floppy with the menu interface? <BR>5. How to specify a partition? That seems to be very different from my opera <BR>ting system... <BR>6. GRUB does not recognize my GNU/Hurd partition. <BR>7. I've installed a recent version of binutils, but GRUB still crashes in th <BR>e bootstrap. <BR>8. How can I specify an arbitrary memory size to Linux? <BR>9. How to boot Windows (or DOS) from a non-first disk? <BR>10. Why doesn't Linux (FreeBSD, NetBSD, etc.) become Multiboot-compliant? <BR>---------------------------------------------------------------------------- <BR>---- <BR>0. I have questions about GRUB! <BR>First of all, read the document in the GRUB distribution enough carefully. You <BR>should be able to obtain most information from the document. This FAQ just <BR>gives you some hints. <BR> <BR>1. How does GNU GRUB differ from Erich's original GRUB? <BR>GNU GRUB is the successor of Erich's great GRUB. He couldn't work on GRUB <BR>because of some other tasks, so the current maintainer Gordon Matzigkeit took <BR>over the maintainership, and opened the development in order for everybody <BR>to participate it. <BR>Technically speaking, GNU GRUB has many features that are not seen in the <BR>original GRUB. For example, GNU GRUB can be installed on UNIX-like operating <BR>system (i.e. GNU/Linux) via the grub shell /sbin/grub, it supports Logical <BR>Block Address (LBA) mode that solves the 1024 cylinders problem, and TAB <BR>completes a filename when it's unique. Of course, many bug fixes are done as <BR>well, so it is recommended to use GNU GRUB. <BR> <BR>2. Can GRUB boot my operating system from over 8GB hard disks? <BR>That depends on your BIOS and your operating system. You must make sure that <BR>your drive is accessible in LBA mode. Generally, that is configurable in BIOS <BR>setting utility. Read the manual for your BIOS for more information. <BR>Furthermore, some operating systems (i.e. DOS) cannot access any large disk, <BR>so the problem is not solved by any kind of bootloader. As long as I know, <BR>at least GNU/Hurd and GNU/Linux can boot from such a large disk. <BR> <BR>3. Can I put Stage2 into a partition which is over 1024 cylinders? <BR>Yes, you can, if your BIOS supports LBA mode. Although you had to use a <BR>special Stage1 in the previous version, it isn't necessary any longer, because <BR>Stage1 now supports both modes. <BR> <BR>4. How to create a GRUB boot floppy with the menu interface? <BR>Create a normal boot floppy, which is described in the manual. <BR>Make a filesystem in another floppy and copy GRUB images and your configuration <BR>file to the floppy.Boot your machine with the normal boot floppy and exchange <BR>the floppy with the filesystem-containing floppy. <BR>Install GRUB into the floppy in the same way as into a hard disk. <BR> <BR>5. How to specify a partition? That seems to be very different from my opera <BR>ting system... <BR>Yes, GRUB's device syntax is very different from others, but somewhat <BR>resembles DOS and Windows 98. GRUB doesn't distinguish between IDE and SCSI, <BR>so your hard disk drives are represented as (hd%d) (%d is an integer, counted <BR>from zero). Likewise, your floppy drives are represented as (fd%d). <BR>The point that confuses the users very much is the partition numbering style. <BR>GRUB counts partitions from zero, while almost all operating systems count <BR> from one. We will fix the inconsistency someday. <BR>6. GRUB does not recognize my GNU/Hurd partition. <BR>I don't know why, but the authors of FDISK programs have assigned the <BR>partition type 0x63 to GNU Hurd incorrectly. A partition type should mean what <BR>format is used in the partition, such as filesystem and BSD slices, and should <BR>not be used to represent what operating system owns the partition. So use <BR>0x83 if the partition contains ext2fs filesystem, and use 0xA5 if the partition <BR>contains ffs fielsystem, whether the partition owner is Hurd or not. We <BR>will use 0x63 for GNU Hurd filesystem that has not been implemented yet. <BR> <BR>7. I've installed a recent version of binutils, but GRUB still crashes in <BR>the bootstrap.Please check for the version of your binutils by this command: <BR>$ ld -v <BR>This will show two versions, but only the latter is important. If the version <BR>is identical with what you have installed, the installation was not bad.Well, <BR>please try: <BR>$ gcc -Wl,-v 2>&1 | grep "GNU ld" <BR>If this is not identical with the result above, you should specify the <BR>directory where you have installed binutils for the script configure, like this: <BR>$ ./configure --with-binutils=/usr/local/bin <BR>If you follow the instructions above but GRUB still crashes, probably there <BR>is a serious bug in GRUB. Please report it to the list <bug-<A HREF="mailto:grub@gnu.org>.">grub@gnu.org>.</A> <BR> <BR>8. How can I specify an arbitrary memory size to Linux? <BR>Pass a mem= option to your Linux kernel, like this: <BR>grub> kernel /vmlinuz mem=128M <BR>You may pass other options in the same way. See the documentation for Linux, <BR> for available options. <BR> <BR>9. How to boot Windows (or DOS) from a non-first disk? <BR>Use the command map, to exchange BIOS drives virtually, like this: <BR>grub> map (hd0) (hd1) <BR>grub> map (hd1) (hd0) <BR> <BR>10. Why doesn't Linux (FreeBSD, NetBSD, etc.) become Multiboot-compliant? <BR>Please ask the maintainers. If all free kernels were Multiboot-compliant, th <BR>e world would be an utopia... <BR>---------------------------------------------------------------------------- <BR>---- <BR>[Japanese] <BR>Return to GNU GRUB webpage / GNU's home page. <BR>Please send FSF & GNU inquiries & questions to <A HREF="mailto:gnu@gnu.org.">gnu@gnu.org.</A> There are also o <BR>ther ways to contact the FSF. <BR>Please send comments on these web pages to <A HREF="mailto:webmasters@www.gnu.org,">webmasters@www.gnu.org,</A> send othe <BR>r questions to <A HREF="mailto:gnu@gnu.org.">gnu@gnu.org.</A> <BR>Copyright (C) 1999,2000 OKUJI Yoshinori <BR>Verbatim copying and distribution of this entire article is permitted in any <BR> medium, provided this notice is preserved. <BR>Last modified: Wed Jun 28 01:14:52 JST 2000 <BR>---------------------------------------------------------------------------- <BR>---- <BR> <BR>-- <BR>※ 来源:·BBS 水木清华站 smth.org·[FROM: 166.111.167.59] <BR><CENTER><H1>BBS水木清华站∶精华区</H1></CENTER></BODY></HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -