![]() |
China DOS Union-- Unite DOS · Advance DOS · Grow DOS --Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum |
| Guest | Log in | Register | Members | Search | China DOS Union |
|
中国DOS联盟论坛 The time now is 2026-08-12 07:17 |
47,811 topics / 349,897 posts / today 0 new / 48,256 members |
| GRUB4DOS、SYSLINUX及其它启动管理软件讨论专区 » How does GRUB call IMG files in non-standard formats? |
| Printable Version 2,439 / 6 |
| Floor1 everest | Posted 2008-04-25 13:33 |
| 初级用户 Posts 32 Credits 76 | |
|
As the title says
|
|
| Floor2 everest | Posted 2008-04-25 13:45 |
| 初级用户 Posts 32 Credits 76 | |
| Floor3 areyong | Posted 2008-04-27 12:02 |
| 中级用户 Posts 39 Credits 211 | |
|
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 |
|
| Floor4 everest | Posted 2008-04-27 22:46 |
| 初级用户 Posts 32 Credits 76 | |
|
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 ] |
|
| Floor5 Climbing | Posted 2008-04-28 10:00 |
| 铂金会员 Posts 2,753 Credits 6,962 From 河北保定 | |
|
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 |
|
| Floor6 everest | Posted 2008-04-28 13:41 |
| 初级用户 Posts 32 Credits 76 | |
|
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 ] |
|
| Floor7 yanglin | Posted 2008-04-29 19:56 |
| 新手上路 Posts 2 Credits 4 | |
Can you send a tutorial for this thing??It's best to be a video!!! ![]() Please!!!!!!! ![]() |
|
|
[ Contact the Union admin team -
中国DOS联盟 -
Standard version ] Sponsored by ifanr Inc | © 2001–2023 |