|
newdos11
初级用户
 
积分 186
发帖 32
注册 2004-6-16
状态 离线
|
『楼 主』:
关于在U盘上安装GRUB的问题!
使用 LLM 解释/回答一下
我把GRUB安装到U盘的MBR上,用这个U盘启动电脑后,出现了GRUB几个启动菜单.
1:请问如何更改GRUB的默认启动菜单,谁有关这方面的中文资料.
2:GRUB把我的U盘当成hd0,也就是C盘,我怎样才能把我的U盘变成A盘,原来的硬盘变成C盘.
I installed GRUB on the MBR of the USB flash drive. After booting the computer with this USB flash drive, several GRUB boot menus appeared.
1: How to change the default boot menu of GRUB? Who has relevant Chinese materials about this.
2: GRUB treats my USB flash drive as hd0, that is, the C drive. How can I make my USB flash drive become the A drive and the original hard drive become the C drive.
|
|
2004-6-16 00:00 |
|
|
不点
银牌会员
     不甘寂寞的人
积分 2491
发帖 1115
注册 2003-9-24
状态 离线
|
『第 2 楼』:
使用 LLM 解释/回答一下
当 GRUB 被安装到 MBR 时, 其默认菜单不可更改.
默认的菜单是你安装到 MBR 的那一刻所决定的. 一般是 /boot/grub/menu.lst 文件. 要想更改默认菜单, 你可能得用 GRUB 的 install 命令 (遗憾, 我也不会用这个命令). 你可以在 GRUB 命令行之下敲入 help install 来看看用法.
详细讲解的中文文章我也没有见到, 最好是看英文的文章. 在 www.google.com 中搜 grub install setup menu.lst 应当能找到想要的资料.
-----------------
你的 U 盘已经被你的 BIOS 识别为第一个硬盘了, 也就是第 0x80 号硬盘. 如果你想让原来的硬盘变成 0x80, 可以用 grub 的 map 命令:
map (hd0) (hd1)
map (hd1) (hd0)
这两条命令可以交换 (hd0) 和 (hd1)
如果想把硬盘(就是你的 U 盘 hd0)变成软盘, 一般来说这是不合适的, 因为硬盘有分区表, 而软盘没有分区表. 这个差别很大.
When GRUB is installed to the MBR, its default menu cannot be changed.
The default menu is determined at the moment you install it to the MBR. Generally, it is the /boot/grub/menu.lst file. To change the default menu, you may need to use the GRUB's install command (unfortunately, I don't know how to use this command either). You can type help install under the GRUB command line to see the usage.
I haven't seen a detailed Chinese article explaining it. It's better to look at English articles. Searching grub install setup menu.lst in www.google.com should be able to find the desired information.
-----------------
Your USB flash drive has been recognized by your BIOS as the first hard disk, that is, the 0x80 hard disk. If you want the original hard disk to become 0x80, you can use the grub's map command:
map (hd0) (hd1)
map (hd1) (hd0)
These two commands can swap (hd0) and (hd1)
If you want to change the hard disk (that is, your USB flash drive hd0) to a floppy disk, generally this is not appropriate because a hard disk has a partition table, while a floppy disk does not. This difference is quite significant.
|

因为我们亲手创建,这个世界更加美丽。 |
|
2004-6-16 00:00 |
|
|
newdos11
初级用户
 
积分 186
发帖 32
注册 2004-6-16
状态 离线
|
『第 3 楼』:
使用 LLM 解释/回答一下
谢谢了,我以前是把U盘格式化成USB-ZIP的,但这样只能在U盘上装一个简单DOS启动盘,
前几天才把U盘格式成USB-HHD形式,虽然这样可以在U盘安装多重启动,但在应用过程中出了很多问题,现在改回USB-ZIP方式算了.
Thanks. I used to format the USB drive as USB-ZIP, but that only allowed me to install a simple DOS bootable disk on the USB drive. A few days ago I formatted the USB drive as USB-HHD, although this allowed me to install multiple boots on the USB drive, there were many problems during the application process. Now I'll just go back to the USB-ZIP method.
|
|
2004-6-16 00:00 |
|
|
不点
银牌会员
     不甘寂寞的人
积分 2491
发帖 1115
注册 2003-9-24
状态 离线
|
『第 4 楼』:
使用 LLM 解释/回答一下
在软盘上也可以安装多重启动, 也就是说, USB-ZIP 方式也可以安装 GRUB.
You can also install multiple boot on a floppy disk, that is, the USB - ZIP method can also be used to install GRUB.
|

因为我们亲手创建,这个世界更加美丽。 |
|
2004-6-16 00:00 |
|
|
newdos11
初级用户
 
积分 186
发帖 32
注册 2004-6-16
状态 离线
|
『第 5 楼』:
使用 LLM 解释/回答一下
不会把GRUB安装在USB-ZIP上,但是我下载这里的"超级MS-DOS 7.10启动盘"解压到U盘后
也能实现多重启动,里面装的好像也是GRUB,不过只有1.44MB实在有点小,不知能不能做成
2.88MB的?
I can't install GRUB on USB-ZIP, but after I extracted the "Super MS-DOS 7.10 Bootable Disk" downloaded here to the USB flash drive, I can also achieve multi-boot. It seems that GRUB is installed inside, but it's only 1.44MB, which is a bit small. I wonder if it can be made into 2.88MB?
|
|
2004-6-16 00:00 |
|
|
不点
银牌会员
     不甘寂寞的人
积分 2491
发帖 1115
注册 2003-9-24
状态 离线
|
『第 6 楼』:
使用 LLM 解释/回答一下
应当完全可以. 你的 BIOS 支持多大的 USB-ZIP, 我们就可以做多大的软盘. 做软盘没有限制, 关键是 BIOS 能否支持大软盘的启动问题.
It should be completely okay. The size of the USB-ZIP your BIOS supports, we can make a floppy disk of that size. There is no limit to making floppy disks, the key is whether the BIOS can support the boot problem of large floppy disks.
|

因为我们亲手创建,这个世界更加美丽。 |
|
2004-6-16 00:00 |
|
|
newdos11
初级用户
 
积分 186
发帖 32
注册 2004-6-16
状态 离线
|
『第 7 楼』:
使用 LLM 解释/回答一下
以下是引用不点在2004-6-16 上午 11:12:45的发言:
应当完全可以. 你的 BIOS 支持多大的 USB-ZIP, 我们就可以做多大的软盘. 做软盘没有限制, 关键是 BIOS 能否支持大软盘的启动问题.
谢谢这位朋友的帮助,我已经成功把GRUB安装到U盘,现在我用USB-ZIP方式启动,GRUB终于把我的U盘当作fd0(A盘)了,和软驱启动是一样的,而且容量不再是1.44MB,而是32MB.
The following is a quote from Budian's post at 11:12:45 AM on June 16, 2004:
It should be completely possible. How large a USB-ZIP your BIOS supports, and we can make a floppy of that size. There is no limit to making floppies; the key is whether the BIOS can support the boot issue of large floppies.
Thank you, friend, for your help. I have successfully installed GRUB on the USB flash drive. Now I boot with the USB-ZIP method, and GRUB finally treats my USB flash drive as fd0 (drive A), just like booting from a floppy drive. Moreover, the capacity is no longer 1.44MB but 32MB.
|
|
2004-6-17 00:00 |
|
|
alonerdos
初级用户
 
积分 111
发帖 5
注册 2004-6-12
状态 离线
|
『第 8 楼』:
使用 LLM 解释/回答一下
简便办法:先把usb做成dos启动,然后执行dos下的grub.exe,用法和linux下的完全一样,到www.linuxeden.com搜一下就能看到。
安装grub可以这样,我是在hd和floppy上做的:root (hd0,x) 或 root (fd0),x代表硬盘分区,然后setup (hd0) 或 setup (fd0),现在grub已经成为启动管理器了,你可以用grub.lst来编写菜单,默认在/boot/grub/menu.lst,dos下后缀名只能3位,所以grub.conf无效,
Simple method: first make the usb into a DOS boot, then execute grub.exe under DOS. The usage is exactly the same as under Linux. You can search on www.linuxeden.com to see. To install grub, it can be like this. I did it on hd and floppy: root (hd0, x) or root (fd0), x represents the hard disk partition, then setup (hd0) or setup (fd0). Now grub has become a boot manager. You can use grub.lst to write the menu. The default is in /boot/grub/menu.lst. Under DOS, the file extension can only be 3 characters, so grub.conf is invalid.
|
|
2004-6-17 00:00 |
|
|
newdos11
初级用户
 
积分 186
发帖 32
注册 2004-6-16
状态 离线
|
『第 9 楼』:
使用 LLM 解释/回答一下
折腾了很久,最后还是要把GRUB的配置文件放在硬盘上,根本上不能放在U盘!
我用的是GRUB FOR DOS,搞了几天才发现她根本上不支持U盘的.
1:我把U盘格式USB-HDD方式,用U盘进入MSDOS,敲入GRUB.EXE后便死机了.
2.同样是USB-HDD,我装上NTLDR和GRUB FOR NTLDR,结果可以进入GRUB的菜单,此时GRUB
完全可以读取我U盘的文件,我还试过把GRUB安装到U盘的MBR,同样可以正常使用,显然GRUB
完全能适别我的U盘,但GRUB FOR DOS就不同了,只要我用USB-HDD方式启动,她就会死机.
3.用USB-ZIP方式时启动时,GRUB FOR DOS不会死机了,但是它完全无法读取U盘上文件.
4.强行把U盘格式为USB-FDD,GRUB FOR DOS找到我U盘的文件,但它只能找到U盘前面1.44MB
的文件,假若这些文件放到U盘后面就找不到.另强行把U盘格式化成USB-FDD方式生成的U盘是有缺陷的,大家千万尝试.
After struggling for a long time, I finally have to put the GRUB configuration file on the hard disk. It fundamentally can't be placed on the USB flash drive!
I'm using GRUB FOR DOS. It took me a few days to find out that it doesn't support the USB flash drive at all.
1: I formatted the USB flash drive in USB-HDD mode, entered MSDOS with the USB flash drive, and when I typed GRUB.EXE, it froze.
2: Also in USB-HDD, I installed NTLDR and GRUB FOR NTLDR, and then I could enter the GRUB menu. At this time, GRUB could completely read the files on my USB flash drive. I also tried installing GRUB to the MBR of the USB flash drive, and it could be used normally. Obviously, GRUB can completely recognize my USB flash drive, but it's different with GRUB FOR DOS. As long as I boot in USB-HDD mode, it will freeze.
3: When booting in USB-ZIP mode, GRUB FOR DOS won't freeze, but it can't read the files on the USB flash drive at all.
4: Forcibly formatting the USB flash drive in USB-FDD mode, GRUB FOR DOS can find the files on my USB flash drive, but it can only find the files in the front 1.44MB of the USB flash drive. If these files are placed at the back of the USB flash drive, they can't be found. Also, the USB flash drive formatted in USB-FDD mode is defective, so everyone must not try it.
|
|
2004-6-18 00:00 |
|
|
不点
银牌会员
     不甘寂寞的人
积分 2491
发帖 1115
注册 2003-9-24
状态 离线
|
『第 10 楼』:
使用 LLM 解释/回答一下
> 3.用USB-ZIP方式时启动时,GRUB FOR DOS不会死机了,但是它完全无法读取U盘上文件.
GRUB 能够识别磁盘文件的前提有:
1。这个磁盘是 BIOS 认可的磁盘,有 BIOS 号码如 0, 0x80 等。
2。这个磁盘在 BIOS 数据区中有登记。
3。这个磁盘的文件系统不是 NTFS 格式的。
我猜想你可能违反了第 3 条。当然,GRUB 的 BUG 也很多,也可能导致你所说的失败情况。
> When using the USB-ZIP method, GRUB FOR DOS no longer crashes during startup, but it completely fails to read files on the USB drive.
The prerequisites for GRUB to recognize disk files are:
1. This disk is recognized by the BIOS, having a BIOS number such as 0, 0x80, etc.
2. This disk is registered in the BIOS data area.
3. The file system of this disk is not in NTFS format.
I suspect you may have violated the third condition. Of course, GRUB has many bugs, which may also lead to the failure situation you described.
|

因为我们亲手创建,这个世界更加美丽。 |
|
2004-6-18 00:00 |
|
|
newdos11
初级用户
 
积分 186
发帖 32
注册 2004-6-16
状态 离线
|
『第 11 楼』:
使用 LLM 解释/回答一下
以下是引用不点在2004-6-18 上午 09:00:19的发言:
>3.用USB-ZIP方式时启动时,GRUBFORDOS不会死机了,但是它完全无法读取U盘上文件.
GRUB能够识别磁盘文件的前提有:
1。这个磁盘是BIOS认可的磁盘,有BIOS号码如0,0x80等。
2。这个磁盘在BIOS数据区中有登记。
3。这个磁盘的文件系统不是NTFS格式的。
我猜想你可能违反了第3条。当然,GRUB的BUG也很多,也可能导致你所说的失败情况。
我的U盘格式明明是USB-ZIP,怎么会是NTFS呢?如果我的U盘是NTFS格式,怎么能引导DOS?
我在DOS提示符下输入: GRUB.EXE --config-file=(fd0)/grub/menu.lst 后,由于它找不到我
U盘上的menu.lst,它会直接进入命令行模式,而我在命令行输入: root (fd0)
后提示是: Filesystem type is fat,useing whole disk
这也证明了我的U盘些时不是NTFS格式.
而且我把U盘的BootSector导出来看过,里面也是写着FAT16的.
难道GRUB不支持FAT16格式?
The following is a quote from Buddha doesn't click's post at 09:00:19 AM on June 18, 2004:
>3. When using the USB-ZIP mode, GRUB4DOS doesn't crash during startup, but it completely fails to read files on the USB flash drive.
The prerequisites for GRUB to recognize disk files are:
1. This disk is a disk recognized by the BIOS, having a BIOS number such as 0, 0x80, etc.
2. This disk is registered in the BIOS data area.
3. The file system of this disk is not in NTFS format.
I suspect you may have violated the third condition. Of course, GRUB has many bugs, which may also lead to the failure situation you described.
My USB flash drive is clearly formatted as USB-ZIP, how can it be NTFS? If my USB flash drive is in NTFS format, how can it boot DOS?
After I enter GRUB.EXE --config-file=(fd0)/grub/menu.lst at the DOS prompt, since it can't find the menu.lst on my USB flash drive, it will directly enter the command line mode. And when I enter root (fd0) at the command line, the prompt is: Filesystem type is fat, useing whole disk
This also proves that my USB flash drive is not in NTFS format at this time.
Moreover, I exported the BootSector of the USB flash drive and saw that it also says FAT16.
Could it be that GRUB doesn't support FAT16 format?
|
|
2004-6-18 00:00 |
|
|
不点
银牌会员
     不甘寂寞的人
积分 2491
发帖 1115
注册 2003-9-24
状态 离线
|
『第 12 楼』:
使用 LLM 解释/回答一下
糟糕,错就错在 using whole disk 这半句。
已经认出 FAT 了,还要用“整盘”模式,这应当是 GRUB 的 BUG 了。你可以向 GNU GRUB 网站提交这个 BUG 的报告。
Oops, the mistake lies in the phrase "using whole disk".
Since the FAT has already been recognized, using the "whole disk" mode should be a bug in GRUB. You can submit a report of this bug to the GNU GRUB website.
|

因为我们亲手创建,这个世界更加美丽。 |
|
2004-6-18 00:00 |
|
|
newdos11
初级用户
 
积分 186
发帖 32
注册 2004-6-16
状态 离线
|
『第 13 楼』:
使用 LLM 解释/回答一下
我不会提交报告啊,不但不懂英文,而且几天前才知道有GRUB这个软件!
I can't submit the report. Not only do I not understand English, but I just found out about the GRUB software a few days ago!
|
|
2004-6-18 00:00 |
|
|
不点
银牌会员
     不甘寂寞的人
积分 2491
发帖 1115
注册 2003-9-24
状态 离线
|
『第 14 楼』:
使用 LLM 解释/回答一下
你和我一样,我也从来都不提交 BUG 报告的。(也不知道怎么提交)。
You are the same as me. I have never submitted a bug report either. (I don't even know how to submit it.)
|

因为我们亲手创建,这个世界更加美丽。 |
|
2004-6-18 00:00 |
|
|
newdos11
初级用户
 
积分 186
发帖 32
注册 2004-6-16
状态 离线
|
『第 15 楼』:
使用 LLM 解释/回答一下
发现GRUB FOR DOS另一个问题,我用软盘开机然后加载了U盘驱动,GRUB FOR DOS照样会死机.
Found another problem with GRUB FOR DOS. I booted from a floppy disk and then loaded the USB drive driver, but GRUB FOR DOS still froze.
|
|
2004-6-19 00:00 |
|
|