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:41
中国DOS联盟论坛 » GRUB4DOS、SYSLINUX及其它启动管理软件讨论专区 » Can grub for dos load files from a ramdisk? View 2,465 Replies 3
Original Poster Posted 2007-10-26 16:54 ·  中国 台湾 台北市 Verizon通讯公司UUNet互联点
新手上路
Credits 6
Posts 2
Joined 2007-10-26 16:32
18-year member
UID 100858
Gender Male
Status Offline
Dear masters:

Recently I tried to boot with DOS, then opened a ramdisk, then put the image file into the ramdisk, and finally used grub to load this image, but it always said it couldn't find the file.

I'm a novice. I searched the articles and didn't see similar ones or I missed it. Please ask you masters if this is feasible?
Floor 2 Posted 2007-10-26 17:46 ·  中国 河南 南阳 联通
银牌会员
★★★★
不甘寂寞的人
Credits 2,491
Posts 1,115
Joined 2003-09-24 00:00
22-year member
UID 10292
Gender Male
Status Offline
In the readme_grub4dos.txt document of grub4dos, you can find information on this. The hmload command by John Cobb might be useful for you. You can also go to

http://sysdocs.stu.qmul.ac.uk/sysdocs/Comment/GrubForDOS/

to see information on this.

Note that the RAMdisk established directly with DOS won't work. Because after entering grub4dos, DOS disappears, so the DOS RAMdisk device can't be used either.

Therefore, you need to use hmload to place the image file directly in extended memory, so that after entering grub, there is a way to access this image file in extended memory.

This is a more advanced usage. You need to be prepared to study, experiment, and explore by yourself to succeed.
因为我们亲手创建,这个世界更加美丽。
Floor 3 Posted 2007-10-26 17:59 ·  中国 台湾 台北市 Verizon通讯公司UUNet互联点
新手上路
Credits 6
Posts 2
Joined 2007-10-26 16:32
18-year member
UID 100858
Gender Male
Status Offline
I tried hmload before, it can let me use the mirror in grub4dos.

It seems I need to work harder to try.

Thanks for not clicking, very grateful.
Floor 4 Posted 2007-10-27 21:27 ·  中国 上海 浦东新区 电信
金牌会员
★★★★
Credits 3,467
Posts 1,616
Joined 2004-06-21 00:00
22-year member
UID 27148
Status Offline
I tried this before. Before entering DOS, use memdisk to create a ramdisk virtual hard disk first, then enter DOS and copy the image file to this virtual hard disk. Then use grub.exe to enter grub, and in grub, you can access this memdisk and successfully load this image.
Forum Jump: