位置: 编程技术 - 正文

通过修改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系统如何安装)

  • 广告制作要交文化部门吗
  • 发票号码不一致可以报销吗
  • 专用发票抵扣联丢失还能抵扣吗
  • 注册商标怎么做账
  • 有限合伙企业中有限合伙人承担责任的方式为
  • 对外贸易出口公司
  • 建筑企业包工包料的税率
  • 退税降低
  • 企业间借贷利息如何入账
  • 确认投资收益是按照出资比例还是股权比例
  • 零税率购房发票
  • 劳保用品增值税税率是多少
  • 出口退税申报显示疑点跳过可以转正式申报吗
  • 购买方申请的红字信息表编号如何查询
  • 应纳个税的工资怎么计算
  • 金融企业贷款损失税前扣除
  • 流动资产周转次数
  • 公司需要给员工提供的帮助
  • 跨年度的暂估入库账务处理
  • 预提费用年终有余额怎么办
  • mac怎么彻底删除一个软件
  • 已经认证抵扣的发票,发生冲红,要怎么处理
  • 厂家赠送的商品如何走账
  • 微信公众号 h5 保存openid
  • 改进yolov4
  • php7安装教程详解
  • 搬迁收入增值税
  • php时间戳转换中国标准时间
  • 怎么安装vue环境
  • 如何用php做到页数显示
  • 小微企业人员认定标准
  • 前端开发软件哪个最好
  • 猪肉税票怎么开
  • vue-element
  • 房地产开发企业会计制度
  • 被投资的公司注销后投资公司怎么处理
  • 其他综合收益什么情况下转入留存收益
  • 借款利息收入发票
  • 财政总预算会计的特点
  • 税前可扣除的税费
  • 用友要怎么删除凭证
  • 装修消防改造费用会计分录
  • 小微企业的认定标准企业所得税
  • 未达起征点免税额怎么计算
  • 税控盘 减免
  • 现金返利的会计分录
  • 业务招待费税前扣除标准2020
  • 非居民企业股权转让特殊性税务处理
  • 小微企业免税如何做账
  • 出口退税进项票跨月勾选
  • 考试报名费都去哪了
  • 福利费属于管理费用还是销售费用
  • 其他应付款转实收资本走什么程序
  • 建筑公司劳务费怎么做账
  • 什么叫商业会计
  • mysql5.7对应的jdbc
  • prometheus operator
  • 序列号错误或不完整
  • fedora s9
  • win7手动装系统步骤
  • win8磁盘占用率高怎么处理
  • win10dll丢失
  • 密码多次错误被锁定怎么办
  • linux系统没有yum
  • Linux操作系统软链接和硬链接的联系与区别
  • windows xp开始菜单桌面图标消失
  • 人物移动素材
  • 浏览器兼容的方法
  • nodejs基本原理
  • great 搬运工
  • js验证正则表达式
  • android获取本地相册中图片
  • javascript位置属性
  • 买药开税票多少税率
  • 广东省国家税务总局班子成员
  • 哪些保险有免赔额
  • 结转城市维护建设税
  • 张劲松身高体重出生年
  • 2022年太原医保缴费时间
  • 免责声明:网站部分图片文字素材来源于网络,如有侵权,请及时告知,我们会第一时间删除,谢谢! 邮箱:opceo@qq.com

    鄂ICP备2023003026号

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

    友情链接: 武汉网站建设