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:53
中国DOS联盟论坛 » GRUB4DOS、SYSLINUX及其它启动管理软件讨论专区 » A few academic issues encountered when learning GRUB, hope the experts can explain. Thanks View 1,972 Replies 2
Original Poster Posted 2010-03-18 09:13 ·  中国 湖南 长沙 电信
初级用户
Credits 28
Posts 8
Joined 2010-03-10 14:39
16-year member
UID 161935
Gender Male
Status Offline
Why is it called ISO continuous? (Is ISO just a single file)
And what is called ISO file not stored continuously?
ISO emulation? Does it mean ISO emulates a CD?
Floor 2 Posted 2010-04-09 08:20 ·  中国 河南 南阳 电信
银牌会员
★★★★
不甘寂寞的人
Credits 2,491
Posts 1,115
Joined 2003-09-24 00:00
22-year member
UID 10292
Gender Male
Status Offline
In grub4dos, the so-called "continuity" of a file means that the physical storage location of this file on the disk is a continuous sequence of sectors without "holes". Or in plain language, a "continuous" file is a "non-fragmented" file.

The files created by the operating system are not necessarily continuous. A file may be divided into many fragments. The contig and wincontig commands can organize a discontinuous file into a continuous one. I have used the contig command, but it may not be completed at one go, and may need to be organized multiple times before it can finally become a continuous, non-fragmented file.

The map command can detect whether a file is continuous. For a discontinuous file, the map refuses to simulate it. But in the case of map --mem, the file does not need to be continuous, because at this time map will copy each fragment of the discontinuous image file to memory and become a continuous image file (in memory).

Since the simulation code of map uses the BIOS of the motherboard instead of DOS, the ordinary discontinuous files that can be accessed under DOS cannot be accessed in the eyes of the simulation code of map. The BIOS only recognizes the concept of "sector" and does not recognize the concept of "file". And the simulation code only uses the BIOS, so it does not recognize DOS files. However, when a DOS file is organized into a continuous one, it becomes a continuous sequence of "sectors", so the simulation code can then access it conveniently. In principle, the simulation code can also be designed to support image files with multiple fragments, but this requires a lot of work, is more complicated to handle, and is difficult to implement.

grub4dos currently supports the simulation of floppy disks, hard disks, and optical disks. The latest memdisk also supports these simulations. ISO simulation means using an ISO file to simulate an optical disk.
因为我们亲手创建,这个世界更加美丽。
Floor 3 Posted 2010-04-24 21:06 ·  中国 安徽 合肥 电信
中级用户
★★
Credits 334
Posts 154
Joined 2007-03-24 02:14
19-year member
UID 82713
Gender Male
Status Offline
It's rare to have Master Budian's personal explanation! We've learned a lot.
Forum Jump: