LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 6136|回复: 38

问一下Grub可以引导Vista吗?

[复制链接]
发表于 2006-10-3 11:58:57 | 显示全部楼层 |阅读模式
准备把XP格掉装Vista但不知道Grub能不能引导,因为Vista和以前的Windows引导方式不太一样的
发表于 2006-10-3 12:44:01 | 显示全部楼层
有什么不一样的?
换了别的loader?没听说.

没问题的,装吧.
回复 支持 反对

使用道具 举报

发表于 2006-10-3 13:21:26 | 显示全部楼层
Vista 应该是换个 loader 吧
能自动识别其他系统么?

Grub 没问题
回复 支持 反对

使用道具 举报

发表于 2006-10-3 14:00:54 | 显示全部楼层
为什么vista不用grub引导呢?
回复 支持 反对

使用道具 举报

发表于 2006-10-3 14:06:03 | 显示全部楼层

应该没问题

应该没问题。
回复 支持 反对

使用道具 举报

发表于 2006-10-3 21:59:12 | 显示全部楼层
vista的loader跟xp的不一样,是独立的一个程序,放在c盘的(我c盘装xp,g盘装vista)。用grub能不能引导我不清楚。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-10-4 11:17:23 | 显示全部楼层
到远景论坛看了下,版主说GRUB不能引导Vista,现在只有想办法用Vista来引导Linux了。
我的grub安装在MBR里了,请问怎么再在linux分区里的启动扇区再安装一份,
然后在vista的bootManager或者boot.ini里怎么写才能让windows的启动管理器引导grub的运行?
暂时不想用grubForDos了,启动比较麻烦
回复 支持 反对

使用道具 举报

发表于 2006-10-4 11:34:52 | 显示全部楼层
Post by imfool
到远景论坛看了下,版主说GRUB不能引导Vista,现在只有想办法用Vista来引导Linux了。
我的grub安装在MBR里了,请问怎么再在linux分区里的启动扇区再安装一份,
然后在vista的bootManager或者boot.ini里怎么写才能让windows的启动管理器引导grub的运行?
暂时不想用grubForDos了,启动比较麻烦


告诉你说了能.你偏不信.很乐呵啊.
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-10-4 12:35:04 | 显示全部楼层
找到了一篇文章,看上去好像用Grub来引导Vista和XP好像也没什么区别:
This tutorial guides you through the steps of installing Windows Vista on a computer which already have an Ubuntu installation.

I wrote this tutorial because I haven't found a "Ubuntu/Vista dual-boot" that works when Ubuntu is already installed. There are only tutorials saying "Install Vista first, then Ubuntu!".

But if you have a working Ubuntu and you don't want to reinstall everything?! Then read this...
Ubuntu Logo

Most of you out there have propably heard of Windows Vista: the next generation of Windows from MS that is going to replace XP as desktop standard. It is still in beta stage and is not for stable enough to use as your primary os. That is why you should have a dual-boot install.
Windows Vista Logo

Microsoft has made Vista a public beta, meaning that you can download it for free(!) and try out (but only use it for a year or so...)

As primary OS I use the brilliant Linux distribution Ubuntu Dapper Drake. Now I wanted to make my computer able to start both Ubuntu and Windows Vista...

Before leaving Ubuntu you have to prepare your harddrive. It can be done with gparted. In a Terminal:
> sudo apt-get install gparted
> sudo gparted

Or if you prefer to do it in a gui:

    * Start Synaptic, find and install gparted
    * System -> Administration -> Gnome-partition editor

There are lots of guides to help you partition your harddrive. resize your partitions and leave room (unallocated) for Vista. It needs at least 15 GB space. I recommend 20+ GB. I installed Vista on a second harddrive, but a single drive with lot of space would do it.

    * Download the dvd-image ( 4GB )
    * Burn it to a dvd with your favourite burn-app (GnomeBaker), put it in the drive and restart your computer
    * Go on with installing Windows Vista!

Vista is easy to install, almost as easy as Ubuntu. During the install choose the empty space to create a new ntfs partition.

By experience I know that Microsoft don't care about the user; they will just run over you. The installer for Vista is a good example of that. It deleted my Ubuntu loader (GRUB). Next time I booted the machine it loaded Vista. I got no option to start Ubuntu. The same will happen to you, my friend. But do not fear! Ubuntu is a Linux distro, and you can always make Linux work again.

Well, hopefully Vista is working now. You can play around with it for a while if you want. I got addicted to a small game called Inkball...

Here is more info about GRUB's way of naming the disks.

Now stop playing! You must have your Ubuntu to work again. Microsoft erased GRUB and replaced it with it's own crappy loader (wich cannot load Linux). It's time to get GRUB back into the MBR. Find your Ubuntu Live-CD (other Live discs may also work) and boot it. Then launch a terminal:
> sudo grub

grub> root (<press tab>

Now you will see a list of available harddrives if you have several (In my case hd0,hd1). Choose the one where you have ubuntu (probably hd0)
grub> root (hd0,<press tab>

This time you should see a list of partitions and their filesystems on the drive. This is what it may look like:
grub> root (hd0,
Possible partitions are:
   Partition num: 0, Filesystem type unknown, partition type 0x7
   Partition num: 2, Filesystem type is ext2fs, partition type 0x83

Note the number of your Ubuntu partition (with ext2fs filesystem). Also remember (or write down) the partition number with an unknown filesystem 0x07; that is your Vista on an ntfs partition. Now set grub's root to the right partition (In my case (hd0,2)) and then install grub to mbr.
grub> root (hd0,2)
grub> setup (hd0)
grub> quit

Now restart your computer! You should see GRUB loading and you are able to boot Ubuntu. The last you have to do now is to add Vista to the GRUB list. Once again, fire up a terminal:
> gksudo gedit /boot/grub/menu.lst

At the bottom of the file add the following:
title  Microsoft Windows Vista Beta 2
root   (hd0,0)  #Remember Vistas partition number?
savedefault
makeactive
chainloader +1

Save the file and restart your machine to see if it's working. Hopefully it is. It worked fine for me. Now enjoy your dual boot system!
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-10-4 12:38:19 | 显示全部楼层
Post by 种草得草
告诉你说了能.你偏不信.很乐呵啊.

Vista确实是换了loader的,以前是ntldr换成了boot manager,而且ntldr已经不能引导vista,新的loader和以前变化很大的
你知道能却不给出一个详细的解释,或者只是一个指导性的链接也好,那就请你不要在这里说风凉话,谢谢
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表