linux windows启动顺序修改

http://blog.csdn.net/historicalmemory/article/details/5741294


在使用Windows,Linux等多个不同操作系统的时候,由于使用grub引导,并且设置了默认进入Linux.但是平时还是用Windows多,因此,有时候会不小心就会进入Linux,不太方便.因此,需要调整两个系统的启动顺序.

    调整方法如下,进入Linux使用root用户登陆,编译/boot/grub/grub.conf文件,找到default=0,将0改为1就可以了.(0,1,2....表示顺序的启动选项排列)

 

实在不想麻烦了,就直接把Linux删除,删除之前需要首先修改系统引导程序.修改方法如下,首先进入dos,利用命令fdisk /mbr,如果没有别的提示就是成功了.

 

然后启动windows,进入控制面板->管理工具->计算机管理->存储->磁盘管理.将Linux分区都删除掉,然后重新格式化成windows能够识别的格式就可以了.就可以完全删除Linux了.



http://hi.baidu.com/xqfeng2008/item/b3cfb4ec1a5554255a2d64a4

windows与linux系统的启动顺序设置

root@ns:~# vi /boot/grub/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            6 #从0开始,如果设置第N个Title为启动选项,此值设为N-1
default的意思就是默认情况下计算机要选择启动的系统,如果起后面的参数设置为“0“代表从第一个启动系统计算机,如果设置为“1”代表从第二系统启动计算机,依次类推选择你要优先启动的系统。

第二步:设置启动许等待的时间
## timeout sec
# Set a timeout, in SEC seconds, before automatically booting the default entry
# (normally the first entry defined).
timeout       5   
timeout 的意思是设置计算机默认要启动的系统需要等待的时间。在此设为5秒

好了,差不多设置完毕。此时计算机在5秒后就默认启动Microsoft Windows XP xqfeng2008 系统
## ## End Default Options ##
如下的title是你已安装的操作系统,在开机时显示的顺序。依次为0 1 2 3 4 ......


title       Ubuntu 8.04.2, kernel 2.6.24-23-generic           这是对应default    0
root       (hd0,5)
kernel       /vmlinuz-2.6.24-23-generic root=UUID=0f4e7ca3-9054-4a66-a9b6-d8cfd43eaf3e ro quiet splash
initrd       /initrd.img-2.6.24-23-generic
quiet

title       Ubuntu 8.04.2, kernel 2.6.24-23-generic (recovery mode)    这是对应default   1
root       (hd0,5)
kernel       /vmlinuz-2.6.24-23-generic root=UUID=0f4e7ca3-9054-4a66-a9b6-d8cfd43eaf3e ro single
initrd       /initrd.img-2.6.24-23-generic

title       Ubuntu 8.04.2, kernel 2.6.22-14-generic                                   这是对应default   2
root       (hd0,5)
kernel       /vmlinuz-2.6.22-14-generic root=UUID=0f4e7ca3-9054-4a66-a9b6-d8cfd43eaf3e ro quiet splash
initrd       /initrd.img-2.6.22-14-generic
quiet

title       Ubuntu 8.04.2, kernel 2.6.22-14-generic (recovery mode)        这是对应default   3
root       (hd0,5)
kernel       /vmlinuz-2.6.22-14-generic root=UUID=0f4e7ca3-9054-4a66-a9b6-d8cfd43eaf3e ro single
initrd       /initrd.img-2.6.22-14-generic

title       Ubuntu 8.04.2, memtest86+                                                        这是对应default     4
root       (hd0,5)
kernel       /memtest86+.bin
quiet

### END DEBIAN AUTOMAGIC KERNELS LIST

# This is a divider, added to separate the menu items below from the Debian
# ones.
title       Other operating systems:                                                              这是对应default    5
root


# This entry automatically added by the Debian installer for a non-linux OS
# on /dev/sda1
title       Microsoft Windows XP xqfeng2008                                              这是对应default      6
root       (hd0,0)
savedefault
makeactive
chainloader   +1


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值