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:27
中国DOS联盟论坛 » GRUB4DOS、SYSLINUX及其它启动管理软件讨论专区 » How does GRUB call IMG files in non-standard formats? View 2,328 Replies 6
Original Poster Posted 2008-04-25 13:33 ·  中国 山东 聊城 联通
初级用户
Credits 76
Posts 32
Joined 2006-03-31 15:57
20-year member
UID 53104
Status Offline
As the title says
Floor 2 Posted 2008-04-25 13:45 ·  中国 山东 聊城 联通
初级用户
Credits 76
Posts 32
Joined 2006-03-31 15:57
20-year member
UID 53104
Status Offline
Floor 3 Posted 2008-04-27 12:02 ·  中国 湖南 湘潭 联通
中级用户
Credits 211
Posts 39
Joined 2003-06-25 00:00
23-year member
UID 5859
Gender Male
Status Offline
The key is to set memdisk c=? h=? s=? floppy correctly.
The format is as follows:
kernel /boot/grub/memdisk.gz c=100 h=8 s=36 floppy

And what are the values of C, H, S? You can use the WinImage tool to make an IMG floppy disk image.
Refer to the detailed article:
http://www.cn-dos.net/forum/viewthread.php?tid=38093&fpage=1
Floor 4 Posted 2008-04-27 22:46 ·  中国 山东 聊城 联通
初级用户
Credits 76
Posts 32
Joined 2006-03-31 15:57
20-year member
UID 53104
Status Offline
These days, I've learned a lot by lurking, and I've gained something.
I'm using grub4dos-0.4.3
The following is part of the help file:
BCDW bootable CD for GRUB

This method is to use BCDW to make a bootable CD, and execute grldr through BCDW to load the menu.lst menu.

Steps:

1) First, download the BCDW software package, extract it to get the required files.

2) Organize the files. For example, create a bcdwcd directory under E:, the files in this directory will be in the root directory of the CD, then create the boot\grub directory and the bcdw directory under it, copy bcdw.bin, bcdw.ini and loader.bin from the bcdw directory in the software package to the bcdwcd\bcdw directory; copy files such as grldr, various imgs, fonts, etc. to the bcdwcd\boot\grub directory. The editing method of the menu.lst file is the same as introduced in 2.1 above.

3) Edit the bcdw.ini file. Open bcdw.ini, find the section, for example:


C:\ ; Boot from drive C:
\I386\setupldr.bin ; Microsoft Windows XP Setup


The above is an example of the BCDW boot menu. Add items like grub here to become:




\images\gghost.img ; GGhost v6.0 (Ghost8.3/11)
\images\mynet.img ; My net (Ghost8.3)(tcp/ip,cd/usb)
\boot\grub\grldr ; Grub4dos
\WXPE\SETUPLDR.BIN ; Micro Windows XPE (by LaoMaotao)
C:\ ; Boot from drive C:
\I386\setupldr.bin ; Microsoft Windows XP Setup

4) The method of making the ISO file and burning the ISO is basically the same as in 2.1. The only difference is that when making the ISO file, loader.bin (or bcdw.bin) should be used as the boot file of the ISO. Sample Text

The following is the content of the bcdw.ini file in the first successfully made CD I made:


\WXPE\SETUPLDR.BIN; Micro Windows XPE (by LaoMaotao)
\boot\grub\dostools.img ; dostools
\boot\grub\diskgen.img ; diskgen
\boot\grub\setup98.img ; setup98
\boot\grub\remove.img ; remove
C:\ ; Boot from drive C:
:PowerOff ; Power Off

1. The BOOT and BCDW folders are established when making the boot disk, and other files and folders are generated by extracting the LaoMaotao PE.iso to the root directory of the CD.

2. Try to modify the DOS tools of Shenshan Hongye, and increase the total number of sectors to 20,000. The file capacity is larger, add SPFDISK and NTFSDSO to it, and it can start successfully in the virtual machine. I like the DOS toolbox of Shenshan Hongye, but I found that there is only the name of SPFDISK in it, and no file. SPFDISK can partition the disk by sectors, which is very convenient for handling disks with bad sectors.

3. When using BCDW to make a bootable CD, the involved grammar feels very few, which is more convenient than other methods of GRUBDOS, and is suitable for dishes like me.

4. I don't know how to set the background picture when using BCDW to make a bootable CD. Please ask experts for guidance.

[ Last edited by everest on 2008-4-27 at 10:49 PM ]
Floor 5 Posted 2008-04-28 10:00 ·  中国 河北 保定 联通
铂金会员
★★★★
网络独行侠
Credits 6,962
Posts 2,753
Joined 2003-04-16 00:00
23-year member
UID 1565
Gender Male
From 河北保定
Status Offline
Using the map function of grub4dos, there's no need to specify the non-standard chs parameters for the img format; it will detect automatically, which is quite simple.

title Boot img file
find --set-root /boot/your.img
map --mem /boot/your.img (fd0)
map --hook
rootnoverify (fd0)
chainloader +1
偶只喜欢回答那些标题和描述都很清晰的帖子!
如想解决问题,请认真学习“这个帖子”和“这个帖子”并努力遵守,如果可能,请告诉更多的人!
Floor 6 Posted 2008-04-28 13:41 ·  中国 山东 聊城 联通
初级用户
Credits 76
Posts 32
Joined 2006-03-31 15:57
20-year member
UID 53104
Status Offline
Thanks, learned a trick.
Also, I would like to ask a question. I modified the sector count item of the IMG file in the Deep Mountain Red Leaf DOS Toolkit. It cannot be booted using MAP, but it can be booted when made with BCDW. I don't know what's going on.

[ Last edited by everest on 2008-4-28 at 01:45 PM ]
Floor 7 Posted 2008-04-29 19:56 ·  中国 福建 福州 电信
新手上路
Credits 4
Posts 2
Joined 2008-04-22 20:48
18-year member
UID 116633
Gender Male
Status Offline
Can you send a tutorial for this thing??

It's best to be a video!!!


Please!!!!!!!
Forum Jump: