位置: 编程技术 - 正文

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

  • 山东省增值税发票查验平台
  • 小微企业税收优惠政策2023年
  • 应税工资怎么计算出来的
  • 开发票怎么操作
  • 季报利润总额是填本季度金额还是本年累计数
  • 利润表的未分配利润是哪个
  • 低于5000是什么意思
  • 资产减值测试是什么意思
  • 外汇税收怎么缴纳增值税
  • 向非关联企业捐赠现金会计分录
  • 银行承兑汇票收费标准
  • 确认主营业务成本的依据是什么单据
  • 收到假钱的会计分录
  • 在建工程非应税项目有哪些?
  • 土地转让增值税计税依据
  • 营改增的案例分析
  • 企业哪些可以抵扣增值税
  • 北京房产税如何申报缴纳
  • 最新房产税费
  • 备用金 退款
  • 福利费用属于什么费用
  • 开票软件上怎么抄税
  • 企业对外投资需要哪些审批
  • 车间固定资产修理费
  • 企业取得出售可供出售金融资产该如何写分录呢?
  • 集体企业属于事业单位吗
  • 农副产品的进项税额
  • 电脑维修中常用的软件
  • mac如何打印预览
  • php实现上传图片到数据库
  • 电脑CPU性能天梯
  • 出租固定资产取得的净收益计入什么科目
  • php中的require
  • 员工租房管理规定
  • php axios
  • 员工自己垫付的费用怎么走账
  • gws.exe是啥
  • php获取参数值的三种方式
  • 与资产相关的政府补助所得税处理
  • 调整以前年度少计提的工资
  • t typescript
  • php模板教程
  • chatgpt的多种免费使用方式
  • vue实战开发项目视频
  • WGAN(Wasserstein GAN)看这一篇就够啦,WGAN论文解读
  • node l
  • 大模型时代的自然语言处理
  • jsp连接mysql8数据库
  • openai发布企业版
  • mtd命令
  • 增值税普通发票可以抵扣吗
  • 合作公司投资方式
  • css中字符间距怎么设置
  • 研发人员具备的条件
  • 销售退回的会计分录怎么做
  • 应付职工薪酬余额方向
  • 纳税人应纳税额怎么算
  • 外贸出口增值税附表二填哪项
  • 增值税一般纳税人是什么意思
  • 交易性金融资产公允价值变动怎么算
  • 年金现值系数和复利现值系数的公式
  • 已认证的发票怎么做账
  • 长期待摊费用怎么记账
  • 公司代个人缴纳社保
  • 会计账簿按用途分类分为什么
  • 出现错误,请联系客服
  • win10预览版选哪个
  • linux系统中可用于添加用户账号
  • windows下键盘不能用
  • win7系统防火墙无法关闭
  • 电脑开机后出现win7画面后一直黑屏
  • 如何关闭win8自带杀毒
  • 实现点击下箭头的方法
  • 在dos下删除文件
  • python中re.m
  • shell 执行sh
  • jQuery+Ajax+PHP弹出层异步登录效果(附源码下载)
  • 四川省地方税务局关于城镇土地使用税困难减免
  • 可以抵扣的消费税有哪些
  • acfunp
  • 免责声明:网站部分图片文字素材来源于网络,如有侵权,请及时告知,我们会第一时间删除,谢谢! 邮箱:opceo@qq.com

    鄂ICP备2023003026号

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

    友情链接: 武汉网站建设