- 浏览: 522637 次
- 性别:
- 来自: 上海
文章分类
最新评论
-
c7887qin:
貌似还要使用相同的证书进行签名。。。
Android - 如何将两个/多个应用放到一个进程中去? -
北极光之吻:
天天向上1989 写道不是有OnDoubleTapListen ...
android实现双击事件监听 -
nielong123:
nielong123 写道onCheckedChanged(M ...
Android RadioGroup 换行, 支持多行多列 -
nielong123:
onCheckedChanged(MultiRadioGrou ...
Android RadioGroup 换行, 支持多行多列 -
zk_Ming:
zk_Ming 写道我用了你的,但是radiogroup 点击 ...
Android RadioGroup 换行, 支持多行多列
很多朋友在电脑上装了Windows和ubuntu双系统,电脑是一个人用的还好;假如是公用的,其他用户在启动时看到多系统启动界面会不知所措,对于自己而言,这样的启动也会给自己浪费很多时间。所以,将默认启动的系统改为Windows是很有必要的。
在ubuntu系统中打开终端,输入:sudo gedit/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 change this entry to 'saved' 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 10
## 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=2d1136cb-416a-4329-8c6d-703537a2d578 ro
## Setup crashdump menu entries
## e.g. crashdump=1
# crashdump=0
## default grub root device
## e.g. groot=(hd0,0)
# groot=(hd0,7)
## 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
# altoptions=(recovery mode) single
## controls how many kernels should be put into the menu.lst
## only counts the first occurence of a kernel, not the
## alternative kernel options
## e.g. howmany=all
## howmany=7
# howmany=all
## should update-grub create memtest86 boot option
## e.g. memtest86=true
## memtest86=false
# memtest86=true
## should update-grub adjust the value of the default booted system
## can be true or false
# updatedefaultentry=false
## ## End Default Options ##
title Ubuntu, kernel 2.6.20-16-generic
root (hd0,7)
kernel /boot/vmlinuz-2.6.20-16-generic root=UUID=2d1136cb-416a-4329-8c6d-703537a2d578 ro quiet splash locale=zh_CN
initrd /boot/initrd.img-2.6.20-16-generic
quiet
savedefault 0
title Ubuntu, kernel 2.6.20-16-generic (recovery mode)
root (hd0,7)
kernel /boot/vmlinuz-2.6.20-16-generic root=UUID=2d1136cb-416a-4329-8c6d-703537a2d578 ro single
initrd /boot/initrd.img-2.6.20-16-generic 1
title Ubuntu, memtest86+
root (hd0,7)
kernel /boot/memtest86+.bin
quiet 2
### END DEBIAN AUTOMAGIC KERNELS LIST
# This is a divider, added to separate the menu items below from the Debian
# ones.
title Other operating systems:
root 3
# This entry automatically added by the Debian installer for a non-linux OS
# on /dev/sda1
title Microsoft Windows XP Professional
root (hd0,0)
savedefault
makeactive
chainloader +1 4
-----------------------------------------------------------------------------------------------------------------------------------
在上面的内容中原本的default值为0,意即启动排行第一的操作系统,这里代表的就是title Ubuntu, kernel 2.6.20-16-generic。
现在对其进行修改,将其值改到与Windows 相对应,Windows 对应的索引号为4,那么就将default后的值改为4,以后启动的默认系统即为Windows了。
另外,启动界面的等待时间也可通过修改timeout后面的值进行修改。
在ubuntu系统中打开终端,输入:sudo gedit/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 change this entry to 'saved' 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 10
## 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=2d1136cb-416a-4329-8c6d-703537a2d578 ro
## Setup crashdump menu entries
## e.g. crashdump=1
# crashdump=0
## default grub root device
## e.g. groot=(hd0,0)
# groot=(hd0,7)
## 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
# altoptions=(recovery mode) single
## controls how many kernels should be put into the menu.lst
## only counts the first occurence of a kernel, not the
## alternative kernel options
## e.g. howmany=all
## howmany=7
# howmany=all
## should update-grub create memtest86 boot option
## e.g. memtest86=true
## memtest86=false
# memtest86=true
## should update-grub adjust the value of the default booted system
## can be true or false
# updatedefaultentry=false
## ## End Default Options ##
title Ubuntu, kernel 2.6.20-16-generic
root (hd0,7)
kernel /boot/vmlinuz-2.6.20-16-generic root=UUID=2d1136cb-416a-4329-8c6d-703537a2d578 ro quiet splash locale=zh_CN
initrd /boot/initrd.img-2.6.20-16-generic
quiet
savedefault 0
title Ubuntu, kernel 2.6.20-16-generic (recovery mode)
root (hd0,7)
kernel /boot/vmlinuz-2.6.20-16-generic root=UUID=2d1136cb-416a-4329-8c6d-703537a2d578 ro single
initrd /boot/initrd.img-2.6.20-16-generic 1
title Ubuntu, memtest86+
root (hd0,7)
kernel /boot/memtest86+.bin
quiet 2
### END DEBIAN AUTOMAGIC KERNELS LIST
# This is a divider, added to separate the menu items below from the Debian
# ones.
title Other operating systems:
root 3
# This entry automatically added by the Debian installer for a non-linux OS
# on /dev/sda1
title Microsoft Windows XP Professional
root (hd0,0)
savedefault
makeactive
chainloader +1 4
-----------------------------------------------------------------------------------------------------------------------------------
在上面的内容中原本的default值为0,意即启动排行第一的操作系统,这里代表的就是title Ubuntu, kernel 2.6.20-16-generic。
现在对其进行修改,将其值改到与Windows 相对应,Windows 对应的索引号为4,那么就将default后的值改为4,以后启动的默认系统即为Windows了。
另外,启动界面的等待时间也可通过修改timeout后面的值进行修改。
发表评论
-
正则表达式大全
2014-03-18 17:05 953正则表达式匹配网址: (https://[\w]*.|http ... -
正则表达式大全
2014-03-18 16:53 0正则表达式匹配网址: (https://[\w]*.|http ... -
root卸载系统程序
2013-02-20 10:31 1684大家知道,卸载程序分为两种。一种是普通的应用程序,一种 ... -
java.lang.IllegalStateException: tried to write 1544 bytes with content-length
2013-01-31 14:57 1398上传文件时,content-length定义的长度小于 ... -
基于socket简单通信协议实现(c/c++)
2012-09-03 10:48 127491 场景 当用socket进行进 ... -
Ubuntu adb devices :???????????? no permissions 解决方法
2012-04-06 16:54 1785因为ubuntu这样的系统都是默认以非root身份在运行的,要 ... -
sysv-rc-conf 设置ubuntu开机自启动
2012-03-08 15:49 3529Java代码 sudo apt-get install s ... -
Ubuntu 创建开机自启动脚本
2012-03-08 14:27 2002Ubuntu 创建开机自启动脚本的步骤如下: 1) 将你的启动 ... -
Swing界面美化
2012-02-13 18:18 9545转发自:http://blog.163.com/li_hy20 ... -
Android JNI知识简介
2011-10-20 13:47 1659Java Native Interface (JNI)标准是j ... -
一个JNI入门级教程(linux版)
2011-10-16 21:46 3654学了JAVA一段时间后,如果你意识到JAVA的瓶颈所在,那就是 ... -
解决java.lang.NoClassDefFoundError错误
2011-10-16 21:30 1861一个基础问题: package com.test; pu ... -
Eclipse ADT插件在ubuntu从10.04升级到10.10后失效的问题解决
2011-07-28 17:34 2214原文出处:http://sonalsantan.blogspo ... -
SDL init failure, reason is: No available video device: On Ubuntu64 .
2011-07-21 15:48 1625If you are installing Android S ... -
Android系统源码导入到eclipse
2011-07-21 11:05 74091.把eclipse工程配置文件复制到android源码根目录 ... -
JAVA执行Linux命令的方法
2011-07-20 15:59 2256/** 执行Linux命令,并返回执行结果。 ... -
ubuntu 10.04 设置ibus自启动
2011-05-13 18:11 1240System -> administration -&g ... -
常用的VIM命令列表
2011-04-25 15:59 1056移动光标 上:k nk:向上移 ... -
ubuntu下eclipse的svn切换用户的方法
2010-12-29 16:09 1505ubuntu下eclipse使用svn 想更改用户,但上一个 ... -
Ubuntu10.04配置adb环境变量
2010-12-15 23:18 36801、sudo gedit ~/.bashrc 2、将下面 ...
相关推荐
FastTrak TX4660/TX8660 阵列卡驱动 Windows XP/Windows 2003/Vista
windows Linux 双系统 启动顺序更改为默认windows启动 Windows XP sp3; Ubuntu LTS 12.10 64bit桌面版本; http://download.csdn.net/detail/hongwulu/4491637 2012-11-14 我的系统是Windows XP sp3,之后又安装了...
Ubuntu、Windows XP、Windows Vista三系统启动引导教程
Ubuntu 和 Windows7 双系统修改启动顺序问题是指在 Ubuntu 和 Windows7 双系统中,如何修改启动顺序,使得系统默认从 Windows 启动。解决这个问题的关键是修改 GRUB 启动器的配置文件。 GRUB(GRand Unified ...
修改UBUNTU里的GRUB的启动菜单.
linux centos ubuntu windows win10 win7 win8安装,不同系统都可以,只需在第一步下载不同系统即可。。。。。。。。。。。。。。。。
修改 Ubuntu 开机启动项顺序 GRUB 设置删除多余内核 GRUB(Grand Unified Bootloader)是 Ubuntu 中的开机引导程序,它负责在系统启动时加载操作系统。GRUB 的配置文件是 `/boot/grub/grub.cfg`,该文件定义了开机...
Ubuntu和XP双系统 grub2 默认启动项的更改
Ubuntu、XP、Vista 三系统启动引导全教程 Ubuntu、XP、Vista 三系统启动引导全教程是一篇关于三系统安装和启动引导的详细教程。该教程通过分章节的方式,详细介绍了三系统的安装和启动引导过程。 第一个章节介绍...
1)在UBUNTU上安装配置squid3。 2)通过假设的squid3来实现xp/win7通过ubuntu实现上网功能。
在 早期的Ubuntu中,使用Grub作为系统的启动引导程序,想修改系统启动项非常简单,只要用gedit打开系统菜单设定文件( sudo gedit /boot/grub/menu.lst ),修改该文件中到内容即可,但是到了Grub 2中,不能采用这种...
重装 Win7 系统之后恢复 Ubuntu 启动项 在重装 Win7 系统之后,恢复 Ubuntu 启动项是一件需要小心和细致的事情。本文将指导您一步步恢复 Ubuntu 启动项。 首先,需要将安装 Ubuntu-winboot 文件夹下的 wubidr 和 ...
安装win7后Ubuntu启动项恢复,里面集合了各种方法,一试不行,再试其它,保证你能重新拾回你的Ubuntu。
Windows 7 与 Ubuntu 10.04系统完美共存
在本文中,我们将讨论如何在卸载 Ubuntu 后修改 Windows 启动项,使 Windows 成为默认启动系统。这个问题对于那些需要经常使用 Windows 的用户来说非常重要,因为在卸载 Ubuntu 后,默认启动项仍然是 Ubuntu,而不是...
windows多系统下安装ubuntu不覆盖默认引导为windows经验总结,实测对win7.win8.XP有效
修改ubuntu启动顺序,适用于多系统默认的开机选项
解决Win10与Ubuntu双系统 开机不能 进入Ubuntu的问题,更换启动项目和顺序的方法
ubuntu和windows双系统启动顺序的修改攻略,让你不再为开机启动选择的时候按方向键来选择windows,修改后windows选项在第一个位而ubuntu在第二位。
多操作系统攻略 1 一、多操作系统的安装 1 A、安装单系统 1 1.安装XP 1 2.安装windows7旗舰版 4 3. Ubuntu Linux 10.10 的安装...C、多操作系统的安装(XP、win7双系统下安装Ubuntu Linux) 14 二、多操作系统的卸载 15