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
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