荔园在线

荔园之美,在春之萌芽,在夏之绽放,在秋之收获,在冬之沉淀

[回到开始] [上一篇][下一篇]


发信人: redsun.bbs@bbs.DormForce.net (▓ RedSun ▓), 信区: Linux
标  题: GNU GRUB FAQ
发信站: 栋力无限 (Thu Aug 22 16:33:28 2002)
转信站: SZUBBS!news2.happynet.org!DormForce

发信人: highsun (  ), 信区: Linux

标  题: [转载]GRUB FAQ

发信站: BBS 水木清华站 (Thu Jul 20 21:34:16 2000)



GNU GRUB FAQ

[Japanese]

----------------------------------------------------------------------------

----

0. I have questions about GRUB!

1. How does GNU GRUB differ from Erich's original GRUB?

2. Can GRUB boot my operating system from over 8GB hard disks?

3. Can I put Stage2 into a partition which is over 1024 cylinders?

4. How to create a GRUB boot floppy with the menu interface?

5. How to specify a partition? That seems to be very different from my opera

ting system...

6. GRUB does not recognize my GNU/Hurd partition.

7. I've installed a recent version of binutils, but GRUB still crashes in th

e bootstrap.

8. How can I specify an arbitrary memory size to Linux?

9. How to boot Windows (or DOS) from a non-first disk?

10. Why doesn't Linux (FreeBSD, NetBSD, etc.) become Multiboot-compliant?

----------------------------------------------------------------------------

----

0. I have questions about GRUB!

First of all, read the document in the GRUB distribution enough carefully.
You

should be able to obtain most information from the document. This FAQ just

gives you some hints.



1. How does GNU GRUB differ from Erich's original GRUB?

GNU GRUB is the successor of Erich's great GRUB. He couldn't work on GRUB

because of some other tasks, so the current maintainer Gordon Matzigkeit
took

over the maintainership, and opened the development in order for everybody

to participate it.

Technically speaking, GNU GRUB has many features that are not seen in the

original GRUB. For example, GNU GRUB can be installed on UNIX-like operating

system (i.e. GNU/Linux) via the grub shell /sbin/grub, it supports Logical

Block Address (LBA) mode that solves the 1024 cylinders problem, and TAB

completes a filename when it's unique. Of course, many bug fixes are done as

well, so it is recommended to use GNU GRUB.



2. Can GRUB boot my operating system from over 8GB hard disks?

That depends on your BIOS and your operating system. You must make sure that

your drive is accessible in LBA mode. Generally, that is configurable in
BIOS

setting utility. Read the manual for your BIOS for more information.

Furthermore, some operating systems (i.e. DOS) cannot access any large disk,

so the problem is not solved by any kind of bootloader. As long as I know,

at least GNU/Hurd and GNU/Linux can boot from such a large disk.



3. Can I put Stage2 into a partition which is over 1024 cylinders?

Yes, you can, if your BIOS supports LBA mode. Although you had to use a

special Stage1 in the previous version, it isn't necessary any longer,
because

Stage1 now supports both modes.



4. How to create a GRUB boot floppy with the menu interface?

Create a normal boot floppy, which is described in the manual.

Make a filesystem in another floppy and copy GRUB images and your
configuration

file to the floppy.Boot your machine with the normal boot floppy and
exchange

the floppy with the filesystem-containing floppy.

Install GRUB into the floppy in the same way as into a hard disk.



5. How to specify a partition? That seems to be very different from my opera

ting system...

Yes, GRUB's device syntax is very different from others, but somewhat

resembles DOS and Windows 98. GRUB doesn't distinguish between IDE and SCSI,

so your hard disk drives are represented as (hd%d) (%d is an integer,
counted

from zero). Likewise, your floppy drives are represented as (fd%d).

The point that confuses the users very much is the partition numbering
style.

GRUB counts partitions from zero, while almost all operating systems count

 from one. We will fix the inconsistency someday.

6. GRUB does not recognize my GNU/Hurd partition.

I don't know why, but the authors of FDISK programs have assigned the
paraition type 0x63 to GNU Hurd incorrectly. A partition type should mean
what
format is used in the partition, such as filesystem and BSD slices, and
should
not be used to represent what operating system owns the partition. So use
0x83 if the partition contains ext2fs filesystem, and use 0xA5 if the
partition
contains ffs fielsystem, whether the partition owner is Hurd or not. We
will use 0x63 for GNU Hurd filesystem that has not been implemented yet.

7. I've installed a recent version of binutils, but GRUB still crashes in
the bootstrap.Please check for the version of your binutils by this command:
$ ld -v
This will show two versions, but only the latter is important. If the
version
is identical with what you have installed, the installation was not
bad.Well,
please try:
$ gcc -Wl,-v 2>&1 | grep "GNU ld"
If this is not identical with the result above, you should specify the
diretory where you have installed binutils for the script configure, like
this:
$ ./configure --with-binutils=/usr/local/bin
If you follow the instructions above but GRUB still crashes, probably there
is a serious bug in GRUB. Please report it to the list <bug-grub@gnu.org>.

8. How can I specify an arbitrary memory size to Linux?
Pass a mem= option to your Linux kernel, like this:
grub> kernel /vmlinuz mem=128M
You may pass other options in the same way. See the documentation for Linux,
 for available options.
9. How to boot Windows (or DOS) from a non-first disk?
Use the command map, to exchange BIOS drives virtually, like this:
grub> map (hd0) (hd1)
grub> map (hd1) (hd0)

10. Why doesn't Linux (FreeBSD, NetBSD, etc.) become Multiboot-compliant?
Please ask the maintainers. If all free kernels were Multiboot-compliant, th
e world would be an utopia...
----------------------------------------------------------------------------
----
[Japanese]
Return to GNU GRUB webpage / GNU's home page.
Please send FSF & GNU inquiries & questions to gnu@gnu.org. There are also o
ther ways to contact the FSF.
grub> map (hd1) (hd0)
10. Why doesn't Linux (FreeBSD, NetBSD, etc.) become Multiboot-compliant?
Please ask the maintainers. If all free kernels were Multiboot-compliant, th
e world would be an utopia...
----------------------------------------------------------------------------
----
[Japanese]
Return to GNU GRUB webpage / GNU's home page.
Please send FSF & GNU inquiries & questions to gnu@gnu.org. There are also o
ther ways to contact the FSF.
Please send comments on these web pages to webmasters@www.gnu.org, send othe
r questions to gnu@gnu.org.
Copyright (C) 1999,2000 OKUJI Yoshinori
Verbatim copying and distribution of this entire article is permitted in any
 medium, provided this notice is preserved.
Last modified: Wed Jun 28 01:14:52 JST 2000
--------------------------------------------------------------------
--
◤╱◣       ◤  ╱◣     ◢█    ◤  ╱◣ ◤╱◤  ╱ ◤    ╱◣
█◣╱◤╱ ◢██◣╱   ◤██  ◢██◣◤ █  ██ . ███◣╱
██◢█◤ █╱  █ . ◢███  ██╱╱◣ █  ██ . ████▓ Redsun is here
███◤   ████◤ █╱██  ◥██◣╱ █╱██ . ████
██◤     ██╱  ╱ ████  ◤  ██◤ ████ . ██  █
 ██◤     ◥███◤ ◥███◤◥██◤   ◥███◤ ██◤█◤
※ 来源:·栋力无限 bbs.DormForce.net·[FROM: 红太阳 ]


[回到开始] [上一篇][下一篇]

荔园在线首页 友情链接:深圳大学 深大招生 荔园晨风BBS S-Term软件 网络书店