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 21:43
中国DOS联盟论坛 » GRUB4DOS、SYSLINUX及其它启动管理软件讨论专区 » Solved! Four attempts to boot .ISO images in the Grub console command line all failed View 3,612 Replies 10
Original Poster Posted 2008-10-15 12:10 ·  中国 广东 中山 电信
高级用户
★★★
Credits 940
Posts 374
Joined 2007-10-17 21:51
18-year member
UID 100011
Gender Male
From 湖南张家界
Status Offline
The following are four blocks of Grub4DOS statements to boot ISO images. They can start successfully in the boot menu.lst at the beginning of boot, but when entering the console command line of Grub by typing "grub" in pure DOS and manually entering "chainloader (0xff)" or "chainloader (hd32)", all errors occur. I don't know why. And there is no problem to boot .IMG and .IMA. Please,各位 Grub masters, how should I manually enter to boot ISO images in the console commands of grub4DOS?

title 1, Boot ISO
find --set-root /ghost/msdos71s.iso
map --mem /ghost/msdos71s.iso (0xff)
map --hook
chainloader (0xff)

title 2, Boot ISO
find --set-root /ghost/msdos71s.iso
map /ghost/msdos71s.iso (0xff)
map --hook
chainloader (0xff)

title 3, Boot ISO
find --set-root /ghost/msdos71s.iso
map --mem /ghost/msdos71s.iso (hd32)
map --hook
chainloader (hd32)

title 3, Boot ISO
find --set-root /ghost/msdos71s.iso
map /ghost/msdos71s.iso (hd32)
map --hook
chainloader (hd32)

[ Last edited by xiaoyunwang on 2008-10-15 at 13:25 ]
Floor 2 Posted 2008-10-15 12:23 ·  中国 安徽 马鞍山 联通
金牌会员
★★★★
Credits 3,946
Posts 1,884
Joined 2006-01-20 13:00
20-year member
UID 49283
Gender Male
Status Offline
Error, specific information should be provided.
Windows 一键还原
http://www.yjhy.com
Floor 3 Posted 2008-10-15 12:34 ·  中国 广东 中山 电信
高级用户
★★★
Credits 940
Posts 374
Joined 2007-10-17 21:51
18-year member
UID 100011
Gender Male
From 湖南张家界
Status Offline
The error phenomenon is (the four methods are all similar, and when not in the command line, the ISO can be started successfully!):
Please, if you want to manually input and start the .ISO image under the command line successfully (while manually inputting and starting .IMG/.IMA is all right).

Floor 4 Posted 2008-10-15 12:38 ·  中国 安徽 马鞍山 联通
金牌会员
★★★★
Credits 3,946
Posts 1,884
Joined 2006-01-20 13:00
20-year member
UID 49283
Gender Male
Status Offline
Specific reasons and solutions, etc. Wait for the author's reply.
Don't understand.
Windows 一键还原
http://www.yjhy.com
Floor 5 Posted 2008-10-15 12:52 ·  中国 广东 中山 电信
高级用户
★★★
Credits 940
Posts 374
Joined 2007-10-17 21:51
18-year member
UID 100011
Gender Male
From 湖南张家界
Status Offline
Still thank Lianjiang brother, many of my problems are mostly helped by you, thank you so much!!!!!
I thought I learned a little after reading the Grub tutorial, but I really didn't expect that there were problems everywhere in practical application. It seems that the idea of organizing batch scripts under pure DOS to search for .ISO images and hand them over to Grub4DOS to start .ISO images in the way of grub --config-file="file path" is in vain (starting .ima/.img is of course okay). When will "Budian" see this post? Waiting...
Floor 6 Posted 2008-10-15 13:12 ·  中国 广东 中山 电信
高级用户
★★★
Credits 940
Posts 374
Joined 2007-10-17 21:51
18-year member
UID 100011
Gender Male
From 湖南张家界
Status Offline
The problem is solved, and this has really messed me up. There's a feeling of wanting to cry but also being surprised. I just tested it on a real computer, and everything is fine, all passed. Starting the .ISO in any way is successful. VPC can really mess people up sometimes (especially when searching everywhere for the reason)...

The following problem is still not solved...
I need to boot the first partition, and the modifications made to the system after booting are invalid after restart. My computer (I810PE motherboard, 128 MB memory, XP system) including on VPC, no matter how I use the following code block, it can't boot. Please help, thanks. Now there's "Power Shodw Shadow System" which protects the C drive and restores it after restart. I believe the virtual simulation function of Grub4DOS can also achieve the same function as the shadow system when booting the system, but I don't know how to write it. I want to use this function of Grub4DOS to protect my C drive. The following writing is theoretically feasible, but actually it can't boot. Please help from Grub experts.

title boot partion
map --mem (hd0,0)+1 (hd0)
map (hd0) (hd1)
map --hook
rootnoverify (hd0,0)
chainloader (hd0,0)+1

[ Last edited by xiaoyunwang on 2008-10-15 at 13:30 ]
Floor 7 Posted 2008-10-15 23:52 ·  中国 河南 南阳 电信
银牌会员
★★★★
不甘寂寞的人
Credits 2,491
Posts 1,115
Joined 2003-09-24 00:00
22-year member
UID 10292
Gender Male
Status Offline
Your image shows grub4dos 2007-08-17, when grub4dos didn't have ISO emulation function yet.

To protect drive C, it is recommended to try Wulpan Angel.

The emulation of grub4dos can only work in real mode. When it comes to protected mode, it doesn't work. So you can't protect your hard drive.
因为我们亲手创建,这个世界更加美丽。
Floor 8 Posted 2008-10-16 00:43 ·  中国 广东 中山 电信
高级用户
★★★
Credits 940
Posts 374
Joined 2007-10-17 21:51
18-year member
UID 100011
Gender Male
From 湖南张家界
Status Offline
Hehe, speak of the devil and he appears. Thanks to Budian's reply. The real computer has a DOS toolkit installed, using Grub4DOS from October 2008. The virtual computer uses a randomly extracted one, and I didn't pay attention to the year, which differs greatly.
Floor 9 Posted 2009-01-30 19:49 ·  中国 上海 电信
初级用户
Credits 24
Posts 11
Joined 2008-11-04 20:38
17-year member
UID 129997
Gender Female
Status Offline
I really want to understand the reason. I encountered the above problem in a real situation. It seems that Wushang Angel can't protect the boot sector. According to my understanding, as long as the ISO file is set to read-only permission, it should be able to prevent viruses in the ISO.

[ Last edited by fliger on 2009-1-30 at 19:53 ]
Floor 10 Posted 2009-01-30 19:58 ·  中国 上海 电信
初级用户
Credits 24
Posts 11
Joined 2008-11-04 20:38
17-year member
UID 129997
Gender Female
Status Offline
I heard that there is a way to install the system on drive D, and then use XP's own partition redirection function - in Disk Management, virtualize drive D to drive C. In this way, no matter how rampant the virus is, it is actually written in a fake location, so this can prevent viruses, but I haven't tried how to redirect the system partition yet. Note that the partition to be protected must have its drive letter deleted after redirection.
Floor 11 Posted 2009-02-03 12:53 ·  中国 广东 深圳 电信
初级用户
★★
Credits 187
Posts 87
Joined 2007-10-23 16:04
18-year member
UID 100558
Gender Male
Status Offline
Originally posted by fliger at 2009-1-30 07:58 PM:
I heard that there is a way to install the system on drive D, and then use XP's own partition redirection function - in Disk Management, virtualize drive D into drive C. In this way, no matter how rampant the virus is, it is actually writing to a fake...



This method is theoretically good, but I wonder if anyone has tried it and how it feels?
Forum Jump: