|
|

楼主 |
发表于 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! |
|