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:28
中国DOS联盟论坛 » GRUB4DOS、SYSLINUX及其它启动管理软件讨论专区 » How to write grub4dos to boot from the hard disk? View 1,538 Replies 1
Original Poster Posted 2008-03-21 17:09 ·  中国 广东 佛山 电信
新手上路
Credits 4
Posts 1
Joined 2007-09-19 16:25
18-year member
UID 97801
Gender Male
Status Offline
I boot from the USB flash drive. The USB flash drive has DOS and WinPE systems installed, and grub4dos is started through the Autoexec.bat on the USB flash drive.
Now I want to switch to the boot menu when booting from the hard disk, and select to enter XP (there are XP and Vista systems installed on the hard disk). I want to ask if I can add an item in menu.lst to boot from the hard disk, but I don't know how to write it?
Note: I don't want to boot the XP system, just want to bring up the boot menu, and then select which system to start, because sometimes I may also enter Vista. I hope all the experts can help, thank you!
Floor 2 Posted 2008-03-24 20:51 ·  中国 广东 广州 移动
初级用户
★★
Credits 167
Posts 80
Joined 2005-11-07 05:08
20-year member
UID 44725
Gender Male
Status Offline
This is somewhat related to the boot mode of the USB flash drive (seeing whether the USB flash drive is booted in A drive or hard disk mode, that is, emulating a floppy disk or a hard disk). If it is emulating a floppy disk (A drive), then the first menu is adopted; if it is emulating a hard disk, it may use the first or the second menu (depending on the number and arrangement of the USB flash drive and the actual hard disk). This is only my personal understanding and the situation I encountered. Please correct me if it is wrong.

title 1. Boot from the first primary partition of the first hard disk
rootnoverify (hd0,0)
makeactive
chainloader +1

title 2. Boot from the first primary partition of the second hard disk
map (hd0) (hd1)
map (hd1) (hd0)
map --hook
rootnoverify (hd0,0)
makeactive
chainloader +1
Forum Jump: