China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --

Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
DOS stands for freedom, openness and progress. Let us work hard, learn from the openness and GNU spirit of FreeDOS and Linux, and together build and grow a free GNU GPL world!

中国DOS联盟论坛
The time now is 2026-06-24 20:16
中国DOS联盟论坛 » GRUB4DOS、SYSLINUX及其它启动管理软件讨论专区 » How do I install a GRUB boot image onto a USB flash drive?? Thanks View 3,950 Replies 13
Original Poster Posted 2005-11-21 00:54 ·  中国 安徽 合肥 电信
初级用户
Credits 21
Posts 5
Joined 2005-11-19 23:32
20-year member
UID 45582
Gender Male
Status Offline
How do I install a GRUB boot image onto a USB flash drive?? Thanks
Floor 2 Posted 2005-11-21 10:36 ·  中国 河南 南阳 联通
初级用户
★★
Credits 137
Posts 57
Joined 2005-09-29 21:23
20-year member
UID 42974
Status Offline
Does your machine have USB boot support? If so, you can use one of the following methods.

1。First boot to DOS from the USB flash drive, then run GRUB.EXE under DOS. So you only need to make the USB flash drive into a DOS boot disk and copy the GRUB.EXE file onto it.

2。Copy the GRLDR file to the root directory of the USB flash drive, then execute the bootlace command on the USB flash drive. This can also install GRUB's boot code onto the USB flash drive. You can do it in two steps. First, create a bootable DOS system on the USB flash drive. After DOS starts, just run bootlace 0x80 or bootlace --floppy 0x00 under DOS. The former assumes your USB flash drive is the first hard disk under DOS, and the latter assumes the USB flash drive is the first floppy disk under DOS. After that, check whether there is a GRLDR file in the root directory of the USB flash drive. If there is, then it's done; if not, you can now copy GRLDR to its root directory, and then it's done too.

These two methods may not always succeed. If one fails, as we said before, it is caused by the machine's motherboard BIOS, and is very hard to solve.
Floor 3 Posted 2005-11-21 21:32 ·  中国 河北 邯郸 联通
初级用户
Credits 40
Posts 20
Joined 2005-11-16 19:34
20-year member
UID 45369
Gender Male
Status Offline
The poster in reply #2 is really an expert.
Floor 4 Posted 2005-11-24 12:29 ·  中国 安徽 合肥 电信
初级用户
Credits 21
Posts 5
Joined 2005-11-19 23:32
20-year member
UID 45582
Gender Male
Status Offline
Thanks to reply #2
Floor 5 Posted 2005-11-25 00:46 ·  中国 河北 唐山 联通
版主
★★★
操作系统爱好者
Credits 1,113
Posts 392
Joined 2002-11-11 00:00
23-year member
UID 228
Gender Male
Status Offline
Nope, my USB flash drive can't use your method:

1,GRUB.EXE hangs
2,Bootlace 0x80 reports that the partition table is incorrect

Explanation: my USB flash drive was made with USBOOT in HDD mode!

Possible reasons for failure:
1,BIOS
2,USBOOT
3,GRUB4DOS
DOS之家 http://doshome.com 站长 葛明阳
Floor 6 Posted 2005-11-25 08:38 ·  中国 河南 南阳 联通
初级用户
★★
Credits 137
Posts 57
Joined 2005-09-29 21:23
20-year member
UID 42974
Status Offline
2, Bootlace 0x80 reports an incorrect partition table

Hehe, I'm afraid this may be serious. I suspect there's a problem with that partitioning tool of yours! Upload the first 63 sectors of the USB drive and I'll take a look.
Floor 7 Posted 2005-12-01 18:30 ·  中国 广东 肇庆 四会市 电信
初级用户
Credits 117
Posts 6
Joined 2003-12-20 00:00
22-year member
UID 14238
Gender Male
Status Offline
I've also been working on GRUB booting from a USB flash drive these past few days, still learning.
Floor 8 Posted 2005-12-02 09:19 ·  中国 广东 肇庆 四会市 电信
初级用户
Credits 117
Posts 6
Joined 2003-12-20 00:00
22-year member
UID 14238
Gender Male
Status Offline
Floor 9 Posted 2005-12-02 19:35 ·  中国 浙江 衢州 江山市 电信
银牌会员
★★★
Credits 1,270
Posts 548
Joined 2004-05-31 00:00
22-year member
UID 25754
Gender Male
Status Offline
GRUB is a good thing.
Floor 10 Posted 2005-12-31 12:43 ·  中国 安徽 宿州 电信
银牌会员
★★★
Credits 1,339
Posts 595
Joined 2004-05-26 00:00
22-year member
UID 25306
Gender Male
From 安徽 宿州
Status Offline
Floor 11 Posted 2006-01-02 09:20 ·  中国 河南 洛阳 联通
高级用户
★★
Credits 544
Posts 164
Joined 2004-10-17 12:00
21-year member
UID 32648
Gender Male
Status Offline
Many BIOSes do not support GRUB-booted USB flash drives. I've tested this many times. IBM BIOSes, Founder BIOSes, and ECS BIOSes, which means Lenovo's, all do not support GRUB-booted USB flash drives. Even booting into DOS from the USB flash drive and then loading GRUB.EXE doesn't work. All ASUS boards support GRUB booting, and TCL laptops also support GRUB booting. The BIOS seems to be AMI!

If the OP's BIOS doesn't support it, then just give up. It's not GRUB's fault, it's a BIOS problem!
我的留言簿

http://hnlyzhd.ys168.com 我的网络盘
Floor 12 Posted 2006-01-03 11:21 ·  中国 安徽 宿州 泗县 电信
银牌会员
★★★
Credits 1,339
Posts 595
Joined 2004-05-26 00:00
22-year member
UID 25306
Gender Male
From 安徽 宿州
Status Offline
So if that's the case, does that mean the motherboard doesn't support it?
Floor 13 Posted 2006-01-09 11:59 ·  中国 新疆 乌鲁木齐 电信
新手上路
Credits 14
Posts 7
Joined 2006-01-09 11:20
20-year member
UID 48670
Status Offline
Support
Floor 14 Posted 2006-06-15 18:56 ·  中国 广东 广州 CNNIC会员电信节点
初级用户
Credits 136
Posts 48
Joined 2005-10-15 17:55
20-year member
UID 43545
Gender Male
Status Offline
Still learning, many thanks to everyone's posts, I've benefited a lot!!!
Forum Jump: