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 18:28
中国DOS联盟论坛 » GRUB4DOS、SYSLINUX及其它启动管理软件讨论专区 » [Help] How can GRUB boot Windows from the second primary partition? hd(0,1)? View 1,970 Replies 8
Original Poster Posted 2004-08-26 00:00 ·  中国 重庆 渝中区 电信
银牌会员
★★★
Credits 2,165
Posts 730
Joined 2004-04-21 00:00
22-year member
UID 22966
Gender Male
Status Offline
It has been like this: both primary partitions are in FAT format, 518MB, and currently the first partition is active.
title DOS/Win9x on (hd0,0)
root (hd0,0)
chainloader +1
title DOS/Me/2K on (hd0,1)
rootnoverify (hd0,1)
chainloader +1

It freezes when selecting the second item!
If you add makeactive, it returns an error message.
I think: Although the second partition is not active, but hd0,1 means it's okay?

I saw such a writing on the Linux Knowledge Base website; could it be that those who play Linux didn't test on MS machines?
Floor 2 Posted 2004-08-26 00:00 ·  中国 重庆 渝中区 电信
银牌会员
★★★
Credits 2,165
Posts 730
Joined 2004-04-21 00:00
22-year member
UID 22966
Gender Male
Status Offline
Additionally: Ask about whether the compile files, patch, and files ending with 1-5 are necessary? Do I have to compile them myself?
Floor 3 Posted 2004-08-26 00:00 ·  中国 河南 南阳 联通
银牌会员
★★★★
不甘寂寞的人
Credits 2,491
Posts 1,115
Joined 2003-09-24 00:00
22-year member
UID 10292
Gender Male
Status Offline
The causes of system freeze are that Windows gets into a muddle (I don't know what version of Windows you are using).

When a primary partition is activated, Windows may try to treat it as drive C:, which may cause confusion.

GRUB has several specific commands to deal with this situation, such as makeactive, hide partition, etc. You can study them first.

Typing the info grub command under Linux can view detailed explanations of GRUB commands.

-------------

If you don't compile, you won't be able to use those files. They are for those who look at the source code by themselves.

You only need grub.exe (under DOS), or only one file GRLDR is enough (under NT/2K/XP)
因为我们亲手创建,这个世界更加美丽。
Floor 4 Posted 2004-08-28 00:00 ·  中国 重庆 渝中区 电信
银牌会员
★★★
Credits 2,165
Posts 730
Joined 2004-04-21 00:00
22-year member
UID 22966
Gender Male
Status Offline
The hide and unhide commands? I've tried it! hide (hd0,0) hides the first partition; unhide (hd0,1) shows the second partition; is it used like this? The result of practice is: the first partition is hidden, but the second partition is still hidden! The original D drive on the machine has become the C drive. The reason for the crash is: the current C drive is not a bootable partition. Could it be that GRUB can't display partitions hidden by PM? It seems there are no other GRUB commands to handle this problem?! Also: later I opened PM to display a partition, and found that the first partition is still marked as: ACTIVE——It is said that there must be a primary partition in the displayed state, how can both primary partitions be hidden?
Floor 5 Posted 2004-08-28 00:00 ·  中国 重庆 渝中区 电信
银牌会员
★★★
Credits 2,165
Posts 730
Joined 2004-04-21 00:00
22-year member
UID 22966
Gender Male
Status Offline
The day before yesterday, I was operating in the GRUB command line with the second partition activated. At that time, I attempted to boot the system of the first partition and used the commands hide (hd0,1) unhide (hd0,0). As a result, the boot was not successful. It was found that the first partition was already visible, but the second partition was not hidden. Then I repeated the operation twice, and suddenly all the extended partitions disappeared!

In a panic, I mistakenly used a tool that does not support multiple primary partitions to repair, and the partition was damaged even more. Later, it took me almost a whole day to retrieve the loss.

Now I want to ask: Both times above were failures in handling the second primary partition, while the same operation on the first primary partition was completely normal. Is this a problem with GRUB?

Floor 6 Posted 2004-09-06 00:00 ·  中国 重庆 渝中区 电信
银牌会员
★★★
Credits 2,165
Posts 730
Joined 2004-04-21 00:00
22-year member
UID 22966
Gender Male
Status Offline
Could it be that my question is too simple? No one pays attention~
Floor 7 Posted 2004-09-06 00:00 ·  中国 天津 南开区 联通
高级用户
★★
Credits 924
Posts 243
Joined 2003-07-09 00:00
22-year member
UID 6612
Gender Male
Status Offline
It is possible that (hd0,1) is an extended partition rather than a primary partition. First, type "(hd0," and then press the Tab key to check.
Floor 8 Posted 2004-09-07 00:00 ·  中国 河南 南阳 内乡县 联通
银牌会员
★★★★
不甘寂寞的人
Credits 2,491
Posts 1,115
Joined 2003-09-24 00:00
22-year member
UID 10292
Gender Male
Status Offline
I don't dare to say that GRUB is fine. But your own problem may be the main one.

If you only use hide/unhide, your partitions won't be damaged.

I guess your extended partition may have been hidden by you, so it seems to be gone.

Your problem is really not very complicated. As long as you are more careful, you can solve it by yourself.
因为我们亲手创建,这个世界更加美丽。
Floor 9 Posted 2004-09-13 00:00 ·  中国 重庆 渝中区 电信
银牌会员
★★★
Credits 2,165
Posts 730
Joined 2004-04-21 00:00
22-year member
UID 22966
Gender Male
Status Offline
My mistake! hd(0,1) is indeed an extended partition! Now I finally understand that the partition table is arranged like this: the first primary partition, extended partition (second primary partition, third primary partition), and other logical partitions... It took so much effort to figure it out, it's really hard-won!
Forum Jump: