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 03:02
中国DOS联盟论坛 » GRUB4DOS、SYSLINUX及其它启动管理软件讨论专区 » What is a *.BS file? View 2,166 Replies 5
Original Poster Posted 2007-06-25 18:45 ·  中国 河南 平顶山 电信
初级用户
★★
Credits 132
Posts 60
Joined 2006-12-21 08:53
19-year member
UID 74134
Gender Male
Status Offline
In the GRUB boot menu MENU.LST file, you can see the following statement:
chainloader /boot/msdos.bs
What is the *.bs file? And how is it made?
Is it that GRUB FOR DOS cannot directly boot the *.IMG file in the CD?
How to boot the IMG file in the CD????
Floor 2 Posted 2007-06-25 23:15 ·  中国 河南 南阳 联通
银牌会员
★★★★
不甘寂寞的人
Credits 2,491
Posts 1,115
Joined 2003-09-24 00:00
22-year member
UID 10292
Gender Male
Status Offline
The new version no longer needs to boot the boot sector file of DOS. BS should mean boot sector.

The new version can directly use chainloader /io.sys to boot DOS.

GRUB4DOS can completely boot the IMG (disk image) file on the CD, but currently it can only be booted in the way of map --mem.

map --mem (cd)/.../floppy.img
map --hook
chainloader (fd0)+1
rootnoverify (fd0)
boot

However, the premise is that grub must be able to access (cd) in advance. When the machine is booted from the CD in no-emulation mode, grub can access the (cd) device. Otherwise, it must use

cdrom --init
map --hook

If the above commands are successful, then the (cd0) device can be accessed:

map --mem (cd0)/.../floppy.img (fd0)
map --hook
chainloader (fd0)+1
rootnoverify (fd0)
boot
因为我们亲手创建,这个世界更加美丽。
Floor 3 Posted 2007-06-26 08:56 ·  中国 河南 平顶山 电信
初级用户
★★
Credits 132
Posts 60
Joined 2006-12-21 08:53
19-year member
UID 74134
Gender Male
Status Offline
Full of admiration! The expert is indeed an expert! Thanks a million! It's really "like a surging river........................... ah!!!"
Floor 4 Posted 2007-06-26 10:48 ·  中国 河南 平顶山 电信
初级用户
★★
Credits 132
Posts 60
Joined 2006-12-21 08:53
19-year member
UID 74134
Gender Male
Status Offline
Is it correct to use them together like this?
title 2.*************
cdrom --init
map --hook
map --mem (cd0)/.../floppy.img (fd0)
map --hook
chainloader (fd0)+1
rootnoverify (fd0)
boot

After I used it, the following content was displayed.
cdrom --init
ATAPI device found: Data=170, Ctrl=376, dev=0(Note: 0=master, 1=slave)
CDROM device found: Data=170, Ctrl=376, dev=0(Note:0=master,1=slave)

Found 1 CD-ROM. (Note: Further read could fali if the hardware does not
fully support ATAPI).
map --hook
map --mem (cd0)/img/mm.img (fd0)
Error 17: File not found
Press any key to continue...

[ Last edited by wangfei8842 on 2007-6-26 at 11:05 AM ]
Floor 5 Posted 2007-06-26 12:07 ·  中国 河南 南阳 联通
银牌会员
★★★★
不甘寂寞的人
Credits 2,491
Posts 1,115
Joined 2003-09-24 00:00
22-year member
UID 10292
Gender Male
Status Offline
Learn to use the command line, don't always use the menu. Typing commands on the command line can facilitate debugging.

Either this file does not exist or it is not recognized by GRUB. Try using the file name in uppercase letters again.

Some CD-ROM file system formats are not supported by GRUB. Currently, the CD-ROM formats supported by GRUB are ISO9660 and the Rock Ridge format built on top of it. When you create the CD-ROM, it is best to use mkisofs to create it and use the -R parameter.

Special note: If the CD-ROM is in Joliet format, there is a high possibility that the files on the CD-ROM cannot be read by GRUB.
因为我们亲手创建,这个世界更加美丽。
Floor 6 Posted 2007-06-29 10:15 ·  中国 河南 平顶山 电信
初级用户
★★
Credits 132
Posts 60
Joined 2006-12-21 08:53
19-year member
UID 74134
Gender Male
Status Offline
Thanks! I've got it sorted out!
Forum Jump: