位置: 编程技术 - 正文

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

  • 提完折旧的车卖掉划算吗
  • 会计核算是否健全 填错了有影响吗
  • 国外公司税号查询
  • 租赁个人汽车
  • 公司清算后未处理财产
  • 高速公路通行费电子发票怎么打印
  • 教育费附加计费单位
  • 营改增后装修材料如何抵扣?
  • 异地存款手续费2022最新规定
  • 外聘技术人员合同
  • 过路费占运费比例
  • 实收资本与账簿不一致
  • 劳务派遣工资需要发票吗
  • 缴纳印花税税会计分录怎么做
  • 固定资产一次性扣除账务处理
  • 办理核定企业所需资料
  • 所得税季度申报营业收入填什么
  • 电子税务局首次申请专票
  • 进口增值税13可以抵扣多少
  • 个人所得税的征收
  • 内存频率调整教程图解
  • 收到融资租赁发票怎么做账
  • 华为matex3爆料
  • 物流丢失了货品如何报警处理
  • php怎么把数组变成字符串
  • 股权转让分期付款协议
  • 给子公司开票 总公司付款
  • 支付本月职工薪酬
  • PHP:pcntl_exec()的用法_PCNTL函数
  • 富贵竹怎么养才能更旺盛水培生根
  • 无私有住房证明怎么开
  • 出租门面是否缴增值税
  • 手续费在银行系统哪里查
  • 工程项目成本核算的依据主要有
  • 无票收入需要开票吗
  • vue.js.
  • yolov5结构解析
  • SpringBoot+Vue实现简单用户管理平台第一篇(后端接口设计)
  • 人工智能答案
  • linux调试工具有哪些
  • 编程 开发
  • vue开发小技巧
  • 建筑保温材料施工规范
  • 合伙企业与公司一样具有高度的人合性
  • java中double是什么数据类型
  • phpcms模板下载
  • mysqldump -s
  • Shading-JDBC、ShadingSphere、ShardingProxy 使用详解
  • 记账凭证粘贴顺序银行回单
  • 施工企业暂估成本
  • 出口退税的会计处理
  • 工地上报销项目有哪些
  • 资固定资产清理
  • 弥补亏损怎么做账
  • 投标保证金退回是不是没中标
  • 实收资本认缴怎么做账,要做账吗
  • 车辆保险证明怎么开
  • 科目余额表上的销项税额贷方余额表示
  • 违反会计规定承担责任
  • Ubuntu Server 11.04安装GNOME 3的方法
  • rhel7.5重置密码
  • blos是什么意思
  • win8 侧边栏
  • 平板电脑截图
  • win10大更新2020
  • window10重置和做系统的区别
  • windows8.1仿win7
  • cocos2dx官方教程
  • javascript事件绑定学习要点
  • js响应式布局
  • Linux base shell重定向详解
  • unity shaderlab新手宝典
  • django 自定义权限管理
  • angular页面加载完后执行方法
  • nodejs集成sqlite使用示例
  • unity备份工程
  • 重庆市国家税务局电子税务局官网
  • 企业欠税交不起怎么办
  • 重庆税务信息采集如何操作
  • 大理市国税局
  • 免责声明:网站部分图片文字素材来源于网络,如有侵权,请及时告知,我们会第一时间删除,谢谢! 邮箱:opceo@qq.com

    鄂ICP备2023003026号

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

    友情链接: 武汉网站建设