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-24 23:26
中国DOS联盟论坛 » GRUB4DOS、SYSLINUX及其它启动管理软件讨论专区 » How to perform multi-booting on a single hard drive with GRUB for DOS View 1,833 Replies 4
Original Poster Posted 2006-08-04 18:59 ·  中国 四川 成都 电信
初级用户
Credits 62
Posts 27
Joined 2006-08-02 17:41
19-year member
UID 59703
Status Offline
Partition C is the primary partition, installed with winxp as the active partition. Partition D is also a primary partition, installed with maxosx. No matter how I use grub to boot d:macosx, it just shows HFS+ partition error.

////////////////////////////
timeout 30
default 0

color black/light-gray light-gray/black
title 1. c: winxp
rootnoverify (hd0,0)
chainloader (hd0,0)+1

title 2. d:macosx
rootnoverify (hd0,1)
chainloader (hd0,1)+1
/////////////////////

If changed to

////////////////////////////
timeout 30
default 0

color black/light-gray light-gray/black
title 1. c: winxp
rootnoverify (hd0,0)
chainloader (hd0,0)+1

title 2. d:macosx
rootnoverify (hd0,1)
makeactive //Add boot, it can start, but next time can only start from d, d has become activve
chainloader (hd0,1)+1
/////////////////////
Floor 2 Posted 2006-08-04 20:20 ·  中国 上海 浦东新区 电信
金牌会员
★★★★
Credits 3,467
Posts 1,616
Joined 2004-06-21 00:00
22-year member
UID 27148
Status Offline
It seems that GRUB doesn't say it supports macOS, or just use the built-in bootloader of macOS.
Floor 3 Posted 2006-08-05 15:13 ·  中国 四川 成都 电信
初级用户
Credits 62
Posts 27
Joined 2006-08-02 17:41
19-year member
UID 59703
Status Offline
Originally posted by fujianabc at 2006-8-4 20:20:
It seems that GRUB doesn't say it supports macOS. It's better to use the bootloader that comes with macOS.


Then why can it boot by adding an extra makeactive? :P
Theoretically speaking
GRUB's chainloader is to load the sector chain loader, so it doesn't care about the partition format of the destination. As long as it reads the boot information and then hands it over to the BIOS to start, that's how I understand it. If I'm wrong, please correct me.

[ Last edited by paldos on 2006-8-5 at 15:22 ]
Floor 4 Posted 2006-08-05 15:44 ·  中国 上海 浦东新区 电信
金牌会员
★★★★
Credits 3,467
Posts 1,616
Joined 2004-06-21 00:00
22-year member
UID 27148
Status Offline
According to what you said, maybe macOS must boot from an active partition. The makeactive command activated this primary partition.
Floor 5 Posted 2006-08-05 18:00 ·  中国 四川 成都 电信
初级用户
Credits 62
Posts 27
Joined 2006-08-02 17:41
19-year member
UID 59703
Status Offline
But with Power Quest Boot Magic, although I don't know its principle, it seems that it doesn't modify the active partition attribute either. It can achieve dual-booting of WinXP and macOS.
Forum Jump: