位置: 编程技术 - 正文

通过修改Ubuntu的Grub来调整多系统的启动顺序(怎么修改ubuntu的ip地址)

编辑:rootadmin

推荐整理分享通过修改Ubuntu的Grub来调整多系统的启动顺序(怎么修改ubuntu的ip地址),希望有所帮助,仅作参考,欢迎阅读内容。

文章相关热门搜索词:怎么修改ubuntu的ip地址,ubuntu系统修改ip地址命令,ubuntu修改ip地址和网关的方法,ubuntu修改地址,ubuntu修改地址,ubuntu修改地址,ubuntugrub修改,ubuntu修改命令,内容如对您有帮助,希望把文章链接给更多的朋友!

机器上装了双系统(Ubuntu 8.+WinXP),每次启动的时候如果不在Grub那里选择WinXP的话就会默认启动到Ubuntu。但是一般我都是用WinXP的,这样每次选择对我这种懒人来说太麻烦了,所以今天我就修改了Grub的配置,让它默认启动WinXP...

我们进入Ubuntu后,打开终端,先备份一下Grub的启动列表文件menu.lst:复制代码代码如下:sudo cp /boot/grub/menu.lst /boot/grub/menu.lst.bak然后使用Gedit来编辑menu.lst复制代码代码如下:sudo gedit /boot/grub/menu.lst打开以后会看到很长很长的东西,不过那些以"#"开头的东西全部都是没用的,而我们要修改的也只有一个地方(大概在行左右):default 0

这个0就代表了Grub默认启动项为Ubuntu,而我们要改成...这个因机而已了,我们往下看。# 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

## 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/$aWkHK1QfV3P2b2znUoe/# password topsecret

## examples## title Windows //NT/# 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_=root=/dev/hdc2 ro# kopt=root=UUID=cf--4de1-a-7e2f4afda9 ro locale=zh_CN

## default grub root device## e.g. groot=(hd0,0)# groot=b-f3-d-a-cadfdbb

## 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= resume=/dev/hda5# defoptions=quiet splash

## should update-grub lock old automagic boot options## e.g. lockold=false## lockold=true# lockold=false

通过修改Ubuntu的Grub来调整多系统的启动顺序(怎么修改ubuntu的ip地址)

## 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 memtest boot option## e.g. memtest=true## memtest=false# memtest=true

## should update-grub adjust the value of the default booted system## can be true or false# updatedefaultentry=false

## should update-grub add savedefault to the default options## can be true or false# savedefault=false

## ## End Default Options ##

title Ubuntu 8., kernel 2.6.--genericuuid b-f3-d-a-cadfdbbkernel /vmlinuz-2.6.--generic root=UUID=cf--4de1-a-7e2f4afda9 ro locale=zh_CN quiet splashinitrd /initrd.img-2.6.--genericquiet

title Ubuntu 8., kernel 2.6.--generic (recovery mode)uuid b-f3-d-a-cadfdbbkernel /vmlinuz-2.6.--generic root=UUID=cf--4de1-a-7e2f4afda9 ro locale=zh_CN singleinitrd /initrd.img-2.6.--generic

title Ubuntu 8., kernel 2.6.-7-genericuuid b-f3-d-a-cadfdbbkernel /vmlinuz-2.6.-7-generic root=UUID=cf--4de1-a-7e2f4afda9 ro locale=zh_CN quiet splashinitrd /initrd.img-2.6.-7-genericquiet

title Ubuntu 8., kernel 2.6.-7-generic (recovery mode)uuid b-f3-d-a-cadfdbbkernel /vmlinuz-2.6.-7-generic root=UUID=cf--4de1-a-7e2f4afda9 ro locale=zh_CN singleinitrd /initrd.img-2.6.-7-generic

title Ubuntu 8., memtest+uuid b-f3-d-a-cadfdbbkernel /memtest+.binquiet

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

# This entry automatically added by the Debian installer for a non-linux OS# on /dev/sda1

title Microsoft Windows XP Professionalroot (hd0,0)savedefaultmakeactivechainloader +1恩,我用了7种不同的颜色标记了下面的每一部分,依次编号为0、1、2、3、4、5、6。所以我们看到WinXP系统的编号是6,所以我们只要把 default 0 修改为 default 6 就可以了。

这个是我的电脑,XP的编号为6,你的电脑需要你自己去看是多少。

PS.这里有个技巧,你需要数有多少个title就可以啦,哈哈!

另外上面我不同颜色标记的东西是可以删除的,删除以后Grub启动列表里的对应项目就会消失,貌似可以美观一些,嘎嘎...

在Ubuntu系统上安装英特尔核显驱动安装器的方法 IntelHDGraphics是Intel一系列的集成显示核心。不同于以往集成在芯片组的显示核心,显示核心是集成于处理器上,并且拥有独立的品牌。中国大陆官方中文

在笔记本电脑的Ubuntu系统上Nvidia显卡驱动 一、准备工作安装驱动前,需要先关闭图形界面。以下为具体过程:1.这里假设你已经装好了Ubuntu.(.也可以,安装过程不再赘述)2.关闭运行的程

在Ubuntu .系统上安装NVIDIA .显卡驱动 NVIDIA.NVIDIA系列的第一个稳定版本已经发布,并对.中(测试版)做了一些修正,以及一些小的改进。NVIDIA增加了一个新的nvidia-modeset.ko内核模

标签: 怎么修改ubuntu的ip地址

本文链接地址:https://www.jiuchutong.com/biancheng/352789.html 转载请保留说明!

上一篇:Vmware虚拟机中Ubuntu系统找不到网卡的问题解决(VMware虚拟机中卸载java命令)

下一篇:在Ubuntu系统上安装英特尔核显驱动安装器的方法(ubuntu系统如何安装)

  • 最新个税手续费返还会计分录小规模纳税人
  • 累计净值包含业务收入吗
  • 工商年报最迟什么时候申报
  • 递延收益负债类科目
  • 小规模开专票要计提附加税吗
  • 房地产企业预收账款预缴企业所得税
  • 停用的厂房折旧吗
  • 以旧换新销售货物的增值税处理
  • 委托企业和受托企业是什么意思
  • 发票冲红增值税怎么申报
  • 事业单位取暖费什么时候发
  • 出口退税进项税额转出是什么意思
  • 企业购入投资性房地产时借记什么科目
  • 企业收到委托开发软件的货款如何记账?
  • 客户退货不退款会计怎么处理
  • 财产租赁合同金额含税吗
  • 外贸企业需要交哪些税费
  • 非独立核算的公司怎么报税
  • 事业单位去年的年假今年可以休吗
  • 分公司哪些税需要交
  • 申报截止日期前还能用吗
  • 红字发票如果开多了下个月能进行抵扣么?
  • 商品返点收入账务处理
  • 年终奖金计税方式区别
  • 金融资产有哪三类代码
  • 员工用差旅费冲账怎么办
  • 小规模计提增值税的会计科目
  • 利空啥意思
  • system进程有什么用
  • 如何在windows10搜索文件
  • php中this和self的区别
  • linux runit
  • linux源码安装软件的方法介绍
  • 企业所得税退税流程
  • java date类型
  • 被税怎么办
  • node-
  • linuxroot切换
  • vports命令
  • discuz论坛安装步骤
  • 税盘显示已反写
  • 不计提工资直接发放可以吗
  • 文化事业建设费的征收范围
  • 政府向企业发放用工补贴政策
  • 企业注销后还会查账吗
  • sql server 2005怎么用
  • mysql load local
  • 加计扣除的增值税怎么做账
  • 长期待摊费用如何记账
  • 社保怎么进行账户转移
  • 双方投资合作项目合法吗
  • 政府补助都有哪些类型
  • 给股东分利润怎么做账
  • 为什么对子公司控股比例降到49%
  • 预付账款的
  • 现金日记账和银行存款日记账必须逐日结出余额
  • 简易征收租赁税率3还是5
  • 怎么使用winpe
  • windows 批处理
  • winadslave.exe - winadslave是什么进程
  • win7玩dnf总是未响应
  • linux ssh安装包
  • kenmail.exe进程有什么用 是什么进程 kenmail进程查询
  • 获取本机ip地址命令
  • linux那么多命令怎么记
  • 常用at命令集
  • perl脚本教程视频
  • 自动返回主页
  • css ie6 ie7 ff的CSS hack使用技巧
  • vue3官方文档
  • javascript运用
  • linux rsync命令详解
  • python向oracle写入
  • js中的flat
  • node.js怎么用
  • 创建shell脚本命令
  • 深入理解新发展理念
  • python编写登录程序
  • 地税局电话咨询电话
  • 一般纳税人买车可以抵扣进项吗
  • 免责声明:网站部分图片文字素材来源于网络,如有侵权,请及时告知,我们会第一时间删除,谢谢! 邮箱:opceo@qq.com

    鄂ICP备2023003026号

    网站地图: 企业信息 工商信息 财税知识 网络常识 编程技术

    友情链接: 武汉网站建设