突然有个很彪悍的想法,关于bios,win,gpt,grub2

启动讨论 grub/grub2/syslinux/grub4dos/Lilo
头像
adam8157
帖子: 2794
注册时间: 2009-03-05 16:31
联系:

突然有个很彪悍的想法,关于bios,win,gpt,grub2

#1

帖子 adam8157 » 2009-05-15 19:26

起因,已经是gpt+grub2+纯linux了,由于以后工作(虽然是linux的工作)外加PES2009,想装个win了

想过gpt转MBR,一种先弄成空磁盘(放弃),一种用gptsync之类的弄成混合分区(怕乱,某bill同学解释下)

突然想,要么直接把win装gpt上?
16. Windows Vista 和 Windows Server 2008 能在 GPT 磁盘上读、写和启动吗?
是的,所有版本都能使用 GPT 分区磁盘进行数据操作。只有基于 EFI 的系统支持启动。
不能启动我怀疑是启动器不支持,如果我用grub2呢?就像bios+grub2的组合,bios识别假mbr的grub2,grub2识别gpt,引导内核。搞成bios识别假mbr的grub2,grub2识别gpt,引导分区(chainload+1什么的),billbear兄解释下?你喜欢的帖子类型,应该会进来吧,呵呵...
头像
adagio
论坛版主
帖子: 22110
注册时间: 2008-02-17 23:47
来自: 美丽富饶的那啥星球

Re: 突然有个很彪悍的想法,关于bios,win,gpt,grub2

#2

帖子 adagio » 2009-05-15 20:00

插嘴一下,你整个虚拟机不久行了?折腾啥? :em04
明天就换大三八!
——8核CPU、8G内存、8T硬盘……
8卡交火,80寸大屏放8个……
IPv8的光纤要8条……

---------------------------------------------------------------------------------
[图片版]新手当自强(续)FAQ
[新手进阶]挂载、fstab、调整linux分区
[图片版]E17桌面环境配置手把手
头像
adam8157
帖子: 2794
注册时间: 2009-03-05 16:31
联系:

Re: 突然有个很彪悍的想法,关于bios,win,gpt,grub2

#3

帖子 adam8157 » 2009-05-15 20:17

虚拟机慢啊,pes2009玩不了啊
头像
eexpress
帖子: 58428
注册时间: 2005-08-14 21:55
来自: 长沙

Re: 突然有个很彪悍的想法,关于bios,win,gpt,grub2

#4

帖子 eexpress » 2009-05-15 20:20

还不如这样:
bios里面只设置一个硬盘位置,比如分区-磁道-柱面。机器启动就从这里开始执行。

bios现在作的那套,有嘛用哦,早过时了。

搞什么复杂的哦。
● 鸣学
billbear
帖子: 3681
注册时间: 2008-05-03 23:42

Re: 突然有个很彪悍的想法,关于bios,win,gpt,grub2

#5

帖子 billbear » 2009-05-16 1:12

用了 GPT 回头路难走啊 :em04
再弄个旧硬盘插上喽。
或者弄个杂交分区表 :)
mbr 表可以是 gpt 表的一个子集,但第一个 mbr 分区一定要是第一个 gpt 分区,并且是 ee (我不是说 4 楼 :em05 )
gptsync 好像只能弄成取 gpt 表的 1,2,3,4 分区。
如果你要取 1,7,8,9 ,就想办法自己 hexedit 写分区表了。写前 dd 备份一下,不怕不怕啦。

windows 的 gpt 支持印象里仅止于读写,而不能启动。
billbear
帖子: 3681
注册时间: 2008-05-03 23:42

Re: 突然有个很彪悍的想法,关于bios,win,gpt,grub2

#6

帖子 billbear » 2009-05-16 1:19

噢 你的想法挺有意思
我研究下
billbear
帖子: 3681
注册时间: 2008-05-03 23:42

Re: 突然有个很彪悍的想法,关于bios,win,gpt,grub2

#7

帖子 billbear » 2009-05-16 1:20

先记录点资料
13. Can Windows XP x64 read, write, and boot from GPT disks?
Windows XP x64 edition can use GPT disks for data only. Only Windows for Itanium-based systems can boot from GPT partitions.

14. Can the 32-bit version of Windows XP read, write, and boot from GPT disks?
No. The 32-bit version will see only the Protective MBR. The EE partition will not be mounted or otherwise exposed to application software.

15. Can the 32-bit versions of Windows Server 2003 read, write, and boot from GPT disks?
All versions of Windows 2003 since Server Pack 1 can use GPT partitioned disks for data. Booting is only supported for Itanium-based systems.

16. Can Windows Vista and Windows Server 2008 read, write, and boot from GPT disks?
Yes, all versions can use GPT partitioned disks for data. Booting is only supported for EFI-based systems.

17. Can Windows 2000, Windows NT 4, or Windows 95/98 read, write, and boot from GPT?
No. Again, legacy software will see only the Protective MBR.
我还真没研究过 windows@gpt
头像
adam8157
帖子: 2794
注册时间: 2009-03-05 16:31
联系:

Re: 突然有个很彪悍的想法,关于bios,win,gpt,grub2

#8

帖子 adam8157 » 2009-05-16 1:20

想想要装win就不爽,保持现状,以后工作赚钱买ps玩pes好了。。。至于是win不能在gpt中启动还是win的启动器不支持gpt,待我查查,不行就虚拟机试试,呵呵
billbear
帖子: 3681
注册时间: 2008-05-03 23:42

Re: 突然有个很彪悍的想法,关于bios,win,gpt,grub2

#9

帖子 billbear » 2009-05-17 9:39

你是对的,不能启动的原因是微软的傻 MBR 要根据 MBR 表引导激活分区,而 mbr 表已经是伪表了。但是可以用 grub 来引导,chainloader +1 就可以了。我用的是 grub 0.97。

根据 7 楼,server 2003 sp1 即认识 gpt (我一直不知道这个事实),刚好手里有 server 2003 sp1 的 iso,就在 vmware 里试验了一下。

先用 mbr 磁盘安装 2003,安装完取得 ghost 映像。接着添加另一个虚拟磁盘,用 gpt 安装 ubuntu 9.04,在末尾预留空白, grub 安装到 gpt 的伪 mbr。再次启动 mbr 磁盘的 2003,在 gpt 磁盘的空白建立 ntfs 分区,然后把 ghost 映像还原到 gpt 磁盘的 ntfs 分区。(是的,ghost11 支持 gpt,并且当把分区1 的映像恢复到分区 3 的时候会自动修改 boot.ini 里的分区号)接着移除 mbr 磁盘,从 gpt 磁盘启动 ubuntu,在 menu.lst 里添加
title server 2003
rootnoverify (hd0,2)
chainloader +1
重启成功进入 2003 sp1。下面的截图是 2003 sp1 的。

接着安装了 sp2,firefox 和其他软件均正常运行,在网上瞎转了一会,avast 免费版不能在 server 里安装,又去下了个 avast server 试用版,装上以后发现系统已经中了个把木马,呵呵。

结论:2003 可以在 gpt 磁盘启动(在 linux 的帮助下),但是不能通过正常途径被安装到 gpt。
附件
10.png
bean
帖子: 238
注册时间: 2008-06-03 12:25

Re: 突然有个很彪悍的想法,关于bios,win,gpt,grub2

#10

帖子 bean » 2009-05-17 11:34

grub2里新增了gptsync命令,功能比refit的强大,你可以把任意的efi分区映射为mbr里的分区。
头像
adam8157
帖子: 2794
注册时间: 2009-03-05 16:31
联系:

Re: 突然有个很彪悍的想法,关于bios,win,gpt,grub2

#11

帖子 adam8157 » 2009-05-17 12:21

果然只是启动器得原因,哈哈哈,这下好玩了,win竟然因为启动器废掉gpt启动,脑残啊

ps:也用不着gptsync了,不喜欢混合分区,虽然看起来没什么损失,呵呵
头像
adam8157
帖子: 2794
注册时间: 2009-03-05 16:31
联系:

Re: 突然有个很彪悍的想法,关于bios,win,gpt,grub2

#12

帖子 adam8157 » 2009-05-17 12:25

下载vista gho中。。。。 我的本子有oem授权哦 :em06

更新:还是不要了,一想到装win就不爽...
上次由 adam8157 在 2009-05-17 17:28,总共编辑 1 次。
billbear
帖子: 3681
注册时间: 2008-05-03 23:42

Re: 突然有个很彪悍的想法,关于bios,win,gpt,grub2

#13

帖子 billbear » 2009-05-17 13:02

adaml:
vista 不灵,至少我还没有找到办法。用 2003 吧。
mbr 磁盘安装好的 ghost 恢复到 gpt 磁盘,同样用 grub 帮忙,启动出错,讨厌的 bootmgr 和 bcd,完全不了解。
附件
11.png
billbear
帖子: 3681
注册时间: 2008-05-03 23:42

Re: 突然有个很彪悍的想法,关于bios,win,gpt,grub2

#14

帖子 billbear » 2009-05-17 13:07

bean 写了:grub2里新增了gptsync命令,功能比refit的强大,你可以把任意的efi分区映射为mbr里的分区。
谢大师。 grub2 最近很活跃啊。 :em09
billbear
帖子: 3681
注册时间: 2008-05-03 23:42

Re: 突然有个很彪悍的想法,关于bios,win,gpt,grub2

#15

帖子 billbear » 2009-05-17 13:09

adaml 动手前一定记得备份。 Anything can happen.
回复