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 06:55
中国DOS联盟论坛 » GRUB4DOS、SYSLINUX及其它启动管理软件讨论专区 » Starting from November 18, 2007, support for simulating CDROM with ISO was added. Please test. View 14,559 Replies 62
Original Poster Posted 2007-11-18 18:53 ·  中国 河南 南阳 联通
银牌会员
★★★★
不甘寂寞的人
Credits 2,491
Posts 1,115
Joined 2003-09-24 00:00
22-year member
UID 10292
Gender Male
Status Offline
Download address: http://grub4dos.jot.com/

There were the following developments on 2007-11-18:

1. Support for ISO emulation. Both ISO files in no-emulation bootable mode and those in floppy or hard disk emulation bootable mode are supported. Usage example:

map (hd0,0)/myiso.iso (hd32)
map --hook
chainloader (hd32)
boot

Explanation: (hd32) is equal to (128 + 32), which is (0xA0). When using map emulation, if the user specifies a disk number greater than or equal to 0xA0, the map command recognizes this as ISO emulation. That is, the sector size of the virtual disk at this time is 2048 bytes (only in this way can it be used as a CD, which is stipulated by the "bootable CD specification"), instead of the usual 512-byte sector size in floppy disks and hard disks.

2. For real CD-ROM boot (usually after running cdrom --init), it also supports booting from real "emulated floppy disk" and "emulated hard disk" format CD-ROM discs. Note: The previous version only supported booting from real CD-ROM discs in no-emulation format.

Please test and report all possible problems.
因为我们亲手创建,这个世界更加美丽。
Floor 2 Posted 2007-11-18 19:34 ·  中国 四川 成都 电信
新手上路
Credits 9
Posts 5
Joined 2005-10-11 23:27
20-year member
UID 43372
Status Offline
Okay, I'll try it right away.
Floor 3 Posted 2007-11-18 20:57 ·  中国 河南 洛阳 电信
银牌会员
★★★
Credits 1,455
Posts 712
Joined 2006-01-20 10:26
20-year member
UID 49246
Status Offline
Report:
My hardware configuration:
Motherboard name Gigabyte GA-K8NE
Disk drive - ST3160215A (149 GB)
Bootable floppy disk image is normal.
Booting Deep Mountain Red Leaf's v22 version CD image and CD image in floppy boot mode fails!
Prompt:
map (hd0,0)/myiso.iso (hd32)
Error 60 : File for drive emulation must be in one contiguous disk area
Press any key to continue...

[ Last edited by bc12060101 on 2007-11-18 at 09:04 PM ]
Floor 4 Posted 2007-11-18 21:44 ·  中国 河南 南阳 联通
银牌会员
★★★★
不甘寂寞的人
Credits 2,491
Posts 1,115
Joined 2003-09-24 00:00
22-year member
UID 10292
Gender Male
Status Offline
This is not a failure. Because the emulation without --mem always requires the file to be contiguous. There is a tool called contig that can be used to organize disk files and merge fragments into a continuous sector sequence. After organizing, you can use it normally.

If the machine has ample memory, you can use the following instead:

map --mem (hd0,0)/myiso.iso (hd32)

In this way, there will be no error reported on the continuity issue.
因为我们亲手创建,这个世界更加美丽。
Floor 5 Posted 2007-11-18 22:11 ·  中国 浙江 宁波 电信
新手上路
Credits 18
Posts 9
Joined 2007-11-01 11:17
18-year member
UID 101368
Gender Male
Status Offline
A few days ago I was still thinking that if only grub could simulate a CD-ROM, but unexpectedly it has really been implemented. Worth testing
Floor 6 Posted 2007-11-18 22:25 ·  中国 河南 洛阳 电信
银牌会员
★★★
Credits 1,455
Posts 712
Joined 2006-01-20 10:26
20-year member
UID 49246
Status Offline
According to the guidance of Brother Budian, after reconfiguring the menu with map --mem (hd0,0)/myiso.iso (hd32), it can boot into the system through the CD image.

My CD image is a tool CD that uses easyboot to make a set of Shenshan Hongye tool disk (V22), a streamlined XP installation version, and some DOS tools (floppy disk images). After booting into the CD boot menu with grub, it can boot into the DOS toolbox and use it normally; but when booting from the Hongye tool disk or XP installation disk menu, a blue screen appears. It is specifically manifested that a blue screen appears after entering the Windows scroll bar or the hard disk detection of the XP installation program.

My computer has 768M of memory.
Floor 7 Posted 2007-11-18 22:26 ·  中国 辽宁 大连 电信
初级用户
Credits 37
Posts 14
Joined 2007-11-10 20:05
18-year member
UID 102279
Gender Male
From 地球
Status Offline
I used the new version to boot a Linux CD image booted by GNU GRUB, but it couldn't boot and froze! Also, the previous version could boot ISOLINUX.BIN, but now it doesn't work either. So depressed……
Floor 8 Posted 2007-11-18 22:33 ·  中国 上海 宝山区 电信
初级用户
Credits 37
Posts 17
Joined 2007-11-01 10:13
18-year member
UID 101361
Status Offline
VM test without --mem gets error code 60. The following are all tests using --mem:
Maotao 911PE (maotao_BootCD_070911.ISO), Xiaoyi PE (PE20070728.iso), Ashram_PE_Zero.iso (error code 11 when there are spaces, use underscore instead) succeed.
The most handsome reboot (REBOOT.ISO), RecoveryWare (mkrec.iso) fail, error code 25: disk read error.
When loading GEEXBOX image, VM gets error: "Virtual machine kernel stack fault (hardware reset)". When loading DSL image, vm gets error: "Internal monitor error".
Temporarily the test is here, start the real machine test…………(I treat the USB flash drive as the hard disk direct reading method of the virtual machine for testing, which should be close to the real machine?)

dsl4.0rc4: with --mem it restarts automatically, without --mem error code 60;
cdlinux: with --mem, it gets stuck when showing "loading stage2...................", without --mem error code 60;
GEEXBOX, with --mem restarts automatically, without --mem, it shows "ISOlinux 3.20 0x45e72bc3 isolinux :Disk error 04, AX=4200,drive A0"
"Boot failed, press a key to retry..." restarts after pressing the key.
Real machine memory is 2G, VM memory is set to 512M

When loading the Windows installation disc, it can start, and after entering the installation interface, it has a 07b blue screen. When loading the ghostxp image, the boot interface can be seen, and after selecting to enter the disc directory, it prompts "The specified drive is illegal"
If it can't load Windows and Linux, then what's the use of this?

[ Last edited by citydream on 2007-11-18 at 11:14 PM ]
Floor 9 Posted 2007-11-18 22:53 ·  中国 河南 南阳 联通
银牌会员
★★★★
不甘寂寞的人
Credits 2,491
Posts 1,115
Joined 2003-09-24 00:00
22-year member
UID 10292
Gender Male
Status Offline
07b blue screen, I've seen many such reports before. Suspected to be caused by the security protection of the Microsoft operating system.

Microsoft finds that the installation media is not on a physical CD, and it may crash and exit. We probably have no countermeasures for this, unless someone cracks Microsoft, just like RinRin cracked the secret of cmdcons.

I think someone will definitely do this in the future.

Running a non-Microsoft CD should be fine.

====================

Emulation is based on BIOS INT13. So, any attempt to access a virtual CD in protected mode generally fails. Only win9x can access real-mode INT13 devices in protected mode. NT series and Linux currently lack this compatibility function. But Linux is open source, and I believe someone will definitely make Linux (after entering protected mode) able to access real-mode INT13 devices in the future.
因为我们亲手创建,这个世界更加美丽。
Floor 10 Posted 2007-11-18 23:23 ·  中国 河北 保定 联通
初级用户
Credits 114
Posts 49
Joined 2006-10-08 06:47
19-year member
UID 64907
Status Offline
Test immediately......
Floor 11 Posted 2007-11-18 23:30 ·  中国 四川 成都 电信
新手上路
Credits 9
Posts 5
Joined 2005-10-11 23:27
20-year member
UID 43372
Status Offline
The situation is similar to that of the 8th floor. Booting the XP installation disk has error 60, and booting the erd 07B.
Floor 12 Posted 2007-11-18 23:50 ·  中国 浙江 宁波 电信
新手上路
Credits 18
Posts 9
Joined 2007-11-01 11:17
18-year member
UID 101368
Gender Male
Status Offline
Originally posted by Budian at 2007-11-18 22:53:
Running non-Microsoft CDs, no problem


My test also confirms this
Floor 13 Posted 2007-11-19 00:45 ·  中国 四川 成都 电信
新手上路
Credits 9
Posts 5
Joined 2005-10-26 20:19
20-year member
UID 44116
Status Offline
07b blue screen is that the XP installation program cannot find the disk controller. When making an integrated XP CD, if the F6-based controller driver is not integrated, when installing on a motherboard that enables AHCI mode or using a system with RAID, SCSI devices, this error is usually reported. Therefore, according to my understanding, it may be necessary to write a disk controller driver for XP and then integrate it into XP so that the XP installation disk can recognize the GRUB for DOS virtual CD-ROM.
Floor 14 Posted 2007-11-19 08:30 ·  中国 福建 厦门 电信
中级用户
★★
Credits 480
Posts 197
Joined 2006-09-20 00:40
19-year member
UID 63115
From 黄冈
Status Offline
The new version can't boot isolinux?
Floor 15 Posted 2007-11-19 08:30 ·  中国 河南 南阳 联通
银牌会员
★★★★
不甘寂寞的人
Credits 2,491
Posts 1,115
Joined 2003-09-24 00:00
22-year member
UID 10292
Gender Male
Status Offline
Forgot to mention two things.

1. The boot CD for Win98 is made in the emulated floppy disk mode of 1.44M. There are many CD-ROM drivers in this 1.44M floppy disk. These driver programs are used to drive the physical CD-ROM, and cannot be used to drive our virtual CD-ROM. So, even if you run the Win98 installation program, a CD-ROM driver is needed. Before, I seem to have searched for the eltorito.sys driver on a certain website, which is estimated to be a bit useful.

2. This time, the ISO emulation can not only simulate the "large sector medium" (i.e., CD-ROM) on the "small sector medium" (i.e., floppy disk, hard disk), but also vice versa, simulate the "small sector medium" (disk) on the "large sector medium" (CD-ROM). That is, completely cross the obstacle of sector size incompatibility. For example, you have a CD-ROM (large sector) that has been recognized by grub4dos as (cd) or (cd0), and there is a 30M floppy disk or hard disk image myimg.img on the CD-ROM, then you can use the map without --mem to simulate the img on the CD-ROM (large sector) as a floppy disk, hard disk (small sector). The previous version could not do this. Previously, only --mem could be used to avoid the trouble of sector size incompatibility (medium heterogeneity). Simulating a CD-ROM (large sector) on a CD-ROM (large sector) should also be fine. For example, there is a myiso.iso file on the CD-ROM (cd), and you can use map to simulate it as another CD-ROM, such as (hd32).
因为我们亲手创建,这个世界更加美丽。
1 2 3 5 Next ›
Forum Jump: