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-25 05:17
中国DOS联盟论坛 » GRUB4DOS、SYSLINUX及其它启动管理软件讨论专区 » Ask experts, how to make grub recognize the second partition of the USB drive? View 2,080 Replies 7
Original Poster Posted 2007-12-19 22:17 ·  中国 北京 昌平区 联通
初级用户
Credits 150
Posts 16
Joined 2003-07-22 00:00
22-year member
UID 7289
Gender Male
Status Offline
I divided a 2GB USB flash drive into two partitions, 230M and 1.7G. I successfully loaded GRUB in the first 230M partition and booted, but GRUB can't find the files in the second partition. How to do it???
Floor 2 Posted 2007-12-20 12:51 ·  中国 上海 松江区 电信
铂金会员
★★★★
DOS一根葱
Credits 5,493
Posts 2,315
Joined 2006-05-01 10:41
20-year member
UID 54766
Gender Male
From 上海
Status Offline
标题 启动 USB.img
查找 --set-root /usb.img
映射 --mem /usb.img (fd0)
映射 --hook
链式加载 (fd0)+1
根不验证 (fd0)

标题 启动 USB.lst
查找 --set-root /usb.lst
保存默认 --wait=2
配置文件 /usb.lst

Title start USB.img
find --set-root /usb.img
map --mem /usb.img (fd0)
map --hook
chainloader (fd0)+1
rootnoverify (fd0)

Title start USB.lst
find --set-root /usb.lst
savedefault --wait=2
configfile /usb.lst
第一高手 第二高手

Floor 3 Posted 2007-12-20 18:02 ·  中国 北京 昌平区 联通
初级用户
Credits 150
Posts 16
Joined 2003-07-22 00:00
22-year member
UID 7289
Gender Male
Status Offline
Originally posted by fastslz at 2007-12-20 12:51 PM:
title start USB.img
find --set-root /usb.img
map --mem /usb.img (fd0)
map --hook
chainloader (fd0)+1
rootnoverify (fd0)

title start USB.lst
find --set-root /usb.lst
savedefault --wait=2
...

Thanks for the reply. I'm a newbie, just getting into grub, and I'm a bit confused by the above expert replies: Where does usb.img come from and what does it contain? Similarly, where does usb.lst come from and what's its content?
I tried using the file-finding method to determine the partition, but didn't succeed. I formatted it as usb-fdd format and could only call the content of (fd0), which is the first 230m partition. But the computer recognizes it as usb-zip format, and it can't boot normally... Please explain in detail, I'm really a newbie, heh heh
Floor 4 Posted 2007-12-27 15:04 ·  中国 四川 成都 电信
初级用户
Credits 100
Posts 45
Joined 2007-12-11 18:02
18-year member
UID 105341
Gender Male
Status Offline
LZ, what tool did you use to partition the USB flash drive? Can you send me one?
Floor 5 Posted 2008-01-03 18:37 ·  中国 北京 昌平区 联通
初级用户
Credits 150
Posts 16
Joined 2003-07-22 00:00
22-year member
UID 7289
Gender Male
Status Offline
Originally posted by logan0279 at 2007-12-27 03:04 PM:
LZ, what tool did you use to partition the USB flash drive? Can you send me one?

It's provided by the official website, and it may only be used for its own brand of USB drives!
Floor 6 Posted 2008-01-05 12:49 ·  中国 四川 成都 电信
初级用户
Credits 100
Posts 45
Joined 2007-12-11 18:02
18-year member
UID 105341
Gender Male
Status Offline
Oh! Hehe, I've already found a partition and it's divided!
Floor 7 Posted 2008-01-14 06:19 ·  中国 吉林 长春 电信
初级用户
Credits 50
Posts 40
Joined 2008-01-14 05:56
18-year member
UID 108541
Gender Male
Status Offline
GRUB cannot be found.
You should use USB drivers to load, specifically the two files usbaspi.sys and aspidisk.sys for driving.
Floor 8 Posted 2008-01-14 11:40 ·  中国 湖北 武汉 电信
中级用户
★★
Credits 452
Posts 202
Joined 2006-12-21 13:46
19-year member
UID 74161
Gender Female
Status Offline
The problem is solved. Should we write "Solved" in the title!!

As for other problems, you can search first and then talk about it.
Forum Jump: