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 16:52
中国DOS联盟论坛 » GRUB4DOS、SYSLINUX及其它启动管理软件讨论专区 » Ask about GRUB4DOS issues View 2,142 Replies 9
Original Poster Posted 2010-02-11 12:43 ·  中国 海南 文昌 电信
新手上路
Credits 14
Posts 6
Joined 2010-02-10 16:48
16-year member
UID 160490
Gender Male
Status Offline
My hard disk partitions:
Primary partition 1 (10G) Primary partition 2 (20G) Logical partition 1 (40G) Logical partition 2 (78G) Primary partition 3 (1G)
I used to write Grub4dos to the MBR for booting, and Grub4dos is placed in Primary partition 3. The menu is written as follows:
timeout 30

default 0

title Windows 7
root (hd0,1)
makeactive
chainloader +1

title Windows XP
root (hd0,0)
makeactive
chainloader +1

title Win 7 PE
map --mem /iso/win7pe_x86_cn_net_standard_with_tools_3.1.091009-1300.7600.16385.iso (hd32)
map --hook
chainloader (hd32)

title Reboot
reboot

title Shut down
halt

Both XP and W7 can boot normally. Now there are two problems: 1. The win7pe_x86_cn_net_standard_with_tools_3.1.091009-1300.7600.16385.iso (695M) in the /iso directory of Primary partition 3, with 2GB of memory, after booting to "Starting Windows", it ends and no mouse appears. This win7pe_x86_cn_net_standard_with_tools_3.1.091009-1300.7600.16385.iso file is good, and I can test it to be usable. 2. The halt command cannot make my computer shut down. What should I do?
Please ask all the experts, give some suggestions and help me make some changes.
Floor 2 Posted 2010-02-11 16:30 ·  中国 湖北 黄冈 电信
初级用户
★★
Credits 66
Posts 53
Joined 2009-10-09 20:51
16-year member
UID 152852
Gender Male
Status Offline
Why map ISO? Isn't it faster to extract the ISO file to the hard drive and boot PE directly?

[ Last edited by wewebb on 2010-2-11 at 16:31 ]
Floor 3 Posted 2010-02-11 16:58 ·  中国 湖北 鄂州 电信
初级用户
Credits 38
Posts 15
Joined 2010-02-03 14:10
16-year member
UID 160034
Gender Male
Status Offline
I don't know what (hd32) in the lz's map command is? Is it a virtual drive of grub?
Floor 4 Posted 2010-02-11 21:44 ·  中国 海南 海口 电信
新手上路
Credits 14
Posts 6
Joined 2010-02-10 16:48
16-year member
UID 160490
Gender Male
Status Offline
Originally posted by wewebb at 2009-2-11 16:30:
Why map ISO? Extracting the ISO file to the hard disk and booting the PE directly is faster, isn't it?

[ Last edited by wewebb on 2010-2-11 at 16:31 ]

I followed others to use map, actually I don't understand anything
Floor 5 Posted 2010-02-11 21:44 ·  中国 海南 海口 电信
新手上路
Credits 14
Posts 6
Joined 2010-02-10 16:48
16-year member
UID 160490
Gender Male
Status Offline
Originally posted by zohan at 2010-2-11 16:58:
I don't know what (hd32) in your map command is? Is it a virtual drive of grub?

It seems so
Floor 6 Posted 2010-02-12 12:38 ·  中国 浙江 杭州 阿里云
初级用户
Credits 38
Posts 15
Joined 2010-02-03 14:10
16-year member
UID 160034
Gender Male
Status Offline
Then you try replacing (hd32) with (0xff)
Floor 7 Posted 2010-02-12 13:03 ·  中国 海南 文昌 电信
新手上路
Credits 14
Posts 6
Joined 2010-02-10 16:48
16-year member
UID 160490
Gender Male
Status Offline
Originally posted by zohan at 2010-2-12 12:38:
Then you try replacing (hd32) with (0xff)

I tried it and got a "file not found" prompt
Floor 8 Posted 2010-02-13 18:52 ·  中国 湖北 黄冈 电信
初级用户
★★
Credits 66
Posts 53
Joined 2009-10-09 20:51
16-year member
UID 152852
Gender Male
Status Offline
You can try the method I use to boot Win7 PE:

Use winrar to open the ISO and extract all the files/directories inside to logical partition 1, then use grub:

title Win 7 PE
chainloader (hd0,4)/bootmgr
Floor 9 Posted 2010-02-15 23:32 ·  中国 海南 海口 电信
新手上路
Credits 14
Posts 6
Joined 2010-02-10 16:48
16-year member
UID 160490
Gender Male
Status Offline
Originally posted by wewebb at 2010-2-13 18:52:
You can try the method I use to boot Win7 PE:

Extract all files/directories inside the ISO to logical partition 1 using WinRAR, then use grub:

title Win 7 PE
chainloader (hd0,4)/bootmgr

I'll give it a try. I'm also wondering, is my primary partition 3 represented as (hd0,2)?
Floor 10 Posted 2010-02-16 16:22 ·  中国 浙江 杭州 电信
初级用户
★★
Credits 66
Posts 53
Joined 2009-10-09 20:51
16-year member
UID 152852
Gender Male
Status Offline
Originally posted by mi53 at 2010-2-15 23:32:

Let me try. I want to ask a question. Is my primary partition 3 represented as (hd0,2)?



Primary partition 1 (10G), primary partition 2 (20G), logical partition 1 (40G), logical partition 2 (78G), primary partition 3 (1G)

From this partition order, the third partition in the master partition table (hd0,2) is an extended partition, and the fourth partition is the primary partition 3, so it should be represented as (hd0,3)
Forum Jump: