ubuntu和windows启动顺序改变

我装了两个操作系统,Linux和windows XP. 默认是Linux启动,通过下面的操作可把windows XP改为默认启动系统
    启动ubuntu后,输入:
    sudo gedit /boot/grub/menu.lst
然后找到
    default 0
然后往下看,找你想默认启动的操作系统!修改default 后面的数字,0对应第一个,1对应第二个,依次往下!以下是我的menu.lst
默认是ubuntu!把0改为4就可以了!
# 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'.
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)
## ## End Default Options #www.gprs5.com#
((((((((((由次开始为依次的操作系统启动列表!))
title Ubuntu, kernel 2.6.12-9-386
root (hd0,2)
kernel /boot/vmlinuz-2.6.12-9-386 root=/dev/hda3 ro quiet splash
initrd /boot/initrd.img-2.6.12-9-386
savedefault
boot
title Ubuntu, kernel 2.6.12-9-386 (recovery mode)
root (hd0,2)
kernel /boot/vmlinuz-2.6.12-9-386 root=/dev/hda3 ro single
initrd /boot/initrd.img-2.6.12-9-386
boot
title Ubuntu, memtest86+
root (hd0,2)
kernel /boot/memtest86+.bin
boot
### END DEBIAN AUTOMAGIC KERNELS LIST
# This is a divider, added to separate the menu items below from the Debian
title Other operating systems:
root
# This entry automatically added by the Debian installer for a non-linux OS
# on /dev/hda1
title Microsoft Windows XP Professional
root (hd0,0)
savedefault
makeactive
chainloader +1
# ones. 
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
Ubuntu的内核启动顺序是按照以下步骤进行的。 首先,计算机开机时会加载BIOS(Basic Input/Output System,基本输入/输出系统),BIOS的主要作用是进行硬件初始化,并检查计算机硬件设备是否正常。 接下来,BIOS会寻找可引导的设备,例如硬盘、光盘或USB设备。一旦找到可引导设备,BIOS会将引导顺序传递给引导加载程序(Boot Loader)。 引导加载程序是在硬盘的引导扇区上存储的一小段代码,它的作用是负责加载操作系统。在Ubuntu中,常用的引导加载程序是GRUB(GRand Unified Bootloader)。 引导加载程序在加载过程中会读取硬盘上存储的操作系统内核文件。Ubuntu的内核文件通常位于/boot目录下,并命名为vmlinuz。引导加载程序将内核文件加载到内存中。 一旦内核文件加载完毕,引导加载程序会将控制权交给内核,让内核开始启动。内核首先会进行硬件初始化,然后加载必要的驱动程序,以便操作系统可以与计算机硬件进行通信。 接下来,内核会启动init进程(初始化进程),init进程是Ubuntu中的第一个用户空间进程。它负责加载用户空间程序、初始化系统环境和启动其他进程。 init进程会根据系统配置文件(例如/etc/inittab或/etc/init)启动相应的服务和进程,如网络服务、文件系统、用户登录和其他系统服务。 最后,一旦所有的系统服务和进程都启动完成,系统就进入用户登录界面,等待用户输入用户名和密码,完成Ubuntu启动过程。 综上所述,Ubuntu的内核启动顺序是:BIOS初始化 -> 引导加载程序加载内核文件 -> 内核初始化 -> 启动init进程 -> 启动系统服务和进程 -> 用户登录。

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值