作者: petcon 出自: http://www.linuxdiyf.com
其实我想每一个装ubuntu的人一开始可能并不想抛弃xp,更多是想双操引导,双系统启动。我是物理隔离下安装的xp和ubuntu,所以当我把两个硬盘都插上电脑的时候,双系统启动肯定是要配置了才能够。前两篇介绍的如何安装和加快更新速度。这篇其实更是急迫一些。下面周详介绍如何双系统启动。
我的xp是安装在sata的250GB硬盘上,ubuntu是安装在ide的80GB的硬盘上。两个系统都是在物理隔离(拔了另一个电源线)的情况下安装的。当然下面的方法对于在一个硬盘安装的双系统,也是能够用的。
首先,到ubuntu的/boot/grub复制menu.lst文档到u盘(假如您的u盘中毒了,能够看我的另一篇),假如您没有u盘能够上传到网络硬盘或您的邮箱。
然后去下载一个名叫glrldr的文档,假如您很难找到,或觉得网络上的不可靠,能够找我要。我的这个至少我用的很好,能够引导双操启动。
然后进windows xp,把刚刚说的两个文档都拷贝到c盘的根目录下。然后显示任何隐藏文档和系统文档。找到一个叫boot.ini的文档,在这个文档上点右键,将只读取消,然后打开这个文档,在最后换行加入一句话C:\grldr=ubuntu 7.10
下面是我的boot.ini的内容(两个-------之间的内容,不包括------------)
----------------------------------
[boot loader]
timeout=3
default=multi(0)disk(0)rdisk(0)partition(1)\WINDOWS
[operating systems]
multi(0)disk(0)rdisk(0)partition(1)\WINDOWS="Microsoft Windows XP Professional" /noexecute=optin /fastdetect
C:\grldr=ubuntu 7.10
----------------------------
这样基本的事情做完了。但是有一个地方要改改才能顺利启动ubuntu。下面是我的menu.lst的原始文档的内容。
-------------------------------
# menu.lst - See: grub(8), info grub, update-grub(8)
# grub-install(8), grub-floppy(8),
# grub-md5-crypt, /usr/share/doc/grub
# and /usr/share/doc/grub-doc/.
## default num
# Set the default entry to the entry number NUM. Numbering starts from 0, and
# the entry number 0 is the default if the command is not used.
#
# You can specify 'saved' instead of a number. In this case, the default entry
# is the entry saved with the command 'savedefault'.
# WARNING: If you are using dmraid do not use 'savedefault' or your
# array will desync and will not let you boot your system.
default 0
## timeout sec
# Set a timeout, in SEC seconds, before automatically booting the default entry
# (normally the first entry defined).
timeout 3
## hiddenmenu
# Hides the menu by default (press ESC to see the menu)
hiddenmenu
# Pretty colours
#color cyan/blue white/blue
## password ['--md5'] passwd
# If used in the first section of a menu file, disable all interactive editing
# control (menu entry editor and command-line) and entries protected by the
# command 'lock'
# e.g. password topsecret
# password --md5 $1$gLhU0/$aW78kHK1QfV3P2b2znUoe/
# password topsecret
#
# examples
#
# title Windows 95/98/NT/2000
# root (hd0,0)
# makeactive
# chainloader 1
#
# title Linux
# root (hd0,1)
# kernel /vmlinuz root=/dev/hda2 ro
#
#
# Put static boot stanzas before and/or after AUTOMAGIC KERNEL LIST
### BEGIN AUTOMAGIC KERNELS LIST
## lines between the AUTOMAGIC KERNELS LIST markers will be modified
## by the debian update-grub script except for the default options below
## DO NOT UNCOMMENT THEM, Just edit them to your needs
## ## Start Default Options ##
## default kernel options
## default kernel options for automagic boot options
## If you want special options for specific kernels use kopt_x_y_z
## where x.y.z is kernel version. Minor versions can be omitted.
## e.g. kopt=root=/dev/hda1 ro
## kopt_2_6_8=root=/dev/hdc1 ro
## kopt_2_6_8_2_686=root=/dev/hdc2 ro
# kopt=root=UUID=b6038bb7-6d4a-4f78-a071-adbb6459113a ro
## Setup crashdump menu entries
## e.g. crashdump=1
# crashdump=0
## default grub root device
## e.g. groot=(hd0,0)
# groot=(hd0,0)
## should update-grub create alternative automagic boot options
## e.g. alternative=true
## alternative=false
# alternative=true
## should update-grub lock alternative automagic boot options
## e.g. lockalternative=true
## lockalternative=false
# lockalternative=false
## additional options to use with the default boot option, but not with the
## alternatives
## e.g. defoptions=vga=791 resume=/dev/hda5
# defoptions=quiet splash locale=zh_CN
## should update-grub lock old automagic boot options
## e.g. lockold=false
## lockold=true
# lockold=false
## Xen hypervisor options to use with the default Xen boot option
# xenhopt=
## Xen Linux kernel options to use with the default Xen boot option
# xenkopt=console=tty0
## altoption boot targets option
## multiple altoptions lines are allowed
## e.g. altoptions=(extra menu suffix) extra boot options
## altoptions=(recovery) single

文章整理:西部数码--专业提供域名注册虚拟主机服务
http://www.west263.com
以上信息与文章正文是不可分割的一部分,如果您要转载本文章,请保留以上信息,谢谢!