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-07-22 18:17
中国DOS联盟论坛 » DOS启动盘 & LOGO技术 (启动盘室) » [Help] About the problem of automatically starting GRUB under pure DOS View 1,838 Replies 1
Original Poster Posted 2010-11-30 11:27 ·  中国 河北 衡水 电信
新手上路
Credits 16
Posts 7
Joined 2010-11-26 12:26
15-year member
UID 178308
Gender Male
Status Offline
I successfully made a DOS bootable USB drive using a USB flash drive, and I successfully automatically started GRUB through autoexec.bat. But the root directory is a bit too messy. I newly created a directory BOOT and put all the main GRUB program and IMG files into BOOT. But now I can't start GRUB when booting, and I can only start GRUB by entering commands. I once found a command in the forum that I could add to autoexec.bat, but I lost it. Can someone give me a new command so that the USB drive can automatically enter the GRUB menu after booting?

The original AUTOEXE only had one sentence "GRUB". After I moved the GRUB main program to the BOOT folder, I added the path "/BOOT/GRUB" inside, but it still didn't work. I couldn't enter the GRUB main menu when booting, which means GRUB didn't start. How should I change this command to make GRUB execute automatically when booting?

[ Last edited by zrn0681 on 2010-11-30 at 12:56 ]
Floor 2 Posted 2010-11-30 19:11 ·  中国 浙江 杭州 电信
初级用户
Credits 30
Posts 9
Joined 2008-04-27 20:00
18-year member
UID 117121
Gender Male
Status Offline
Fainted! Just add a cd command.
cd boot

--------AUTOEXEC.BAT--------
@ECHO OFF
CD BOOT
GRUB
Forum Jump: