位置: 编程技术 - 正文

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

  • 自创商誉可以税前扣除吗
  • 个体工商户个人经营所得税优惠政策
  • 实收款比应收账款少3万怎么处理
  • 销项发票能不能留抵
  • 先出货后开票
  • 未担保余值列报
  • 工程物资和特种设备区别
  • 企业购进货物暂估入库的会计分录如何处理?
  • 公司固定资产丢失谁负责
  • 软件即征即退怎么算
  • 农业公司没发票可以入账吗
  • 处置固定资产增值税税率
  • 消费税的征收范围
  • 车间设备折旧计入哪个科目
  • 个人转支票属于什么业务
  • 收取手续费的委托代销 发票谁来开
  • 溢价转让股权的会计处理
  • 行政事业单位绿化工程完工应结转资产吗
  • 逾期申报会对纳税人产生哪些不良影响?
  • 银行承兑汇票如何承兑分录
  • 同一年可以先娶后嫁吗
  • 广告补贴申请报告
  • 买水果送什么赠品
  • 入账价值和账面余额一样吗
  • 收到厂家商品的会计分录
  • bios 和 uefi
  • linux多网卡聚合
  • 微信小程序商城创建
  • vmware虚拟机安装在移动硬盘
  • vue设置元素不可点击
  • 小规模纳税人按简易计税法计税时也可以进行税额的抵扣
  • look 查明
  • 进口增值税抵扣期限
  • rabbitmq work queue
  • 织梦停止更新了吗
  • 日常费用明细表格式
  • 企业内部研发支持方案
  • Sqlserver 2005使用XML一次更新多条记录的方法
  • 实收资本核算内容是什么
  • 购买软件使用费计入什么科目
  • 专项资金账务体现不出怎么办
  • 应收账款未收到是否要交税
  • 营改增阶段
  • 内含增长率简易公式如何理解
  • 应收票据到期收回的会计分录
  • 权益法下股权投资包括
  • 劳务派遣公司小规模纳税人如何开票
  • 固定资产抵扣影响税负
  • 弱电工程怎么入账
  • 加油账务处理
  • 费用发票的种类
  • 月末结转各项费用支出479000
  • 法人能去税务局开个人发票吗
  • 中国的法律依据是什么
  • 年末结账与财务的关系
  • 待摊费用是什么意思
  • 银行固定资产有哪些
  • 税收会计记账方法
  • 删除用户mysql
  • mysql 5.7.17 winx64安装配置方法图文教程
  • mysql 5.7.13 winx64安装配置方法图文教程(win10)
  • win8旗舰版和专业版区别
  • 微软软件怎么用
  • windows server 2003 密钥
  • win 10 ie8
  • ubuntu系统中怎么安装mathematica13.1.0
  • winhlp32.exe - winhlp32是什么进程
  • linux的文件和目录的区别
  • win7如何删除无法删除的文件
  • Win10 Mobile 10586.36预览版怎么更新?
  • Linux禁止MySQL开机自启动的小技巧
  • 2015.6.28开始写博客记录cocos2dx学习历程
  • css div模糊
  • js内置对象方法有哪些
  • 在Debian(Raspberry Pi)树莓派上安装NodeJS的教程详解
  • python爬取某人所有朋友圈
  • 重庆电子税务局网页版登录
  • 汽车购置税退税需要多长时间
  • 廉政谈话什么是廉政?
  • 审计程序检查的定义
  • 免责声明:网站部分图片文字素材来源于网络,如有侵权,请及时告知,我们会第一时间删除,谢谢! 邮箱:opceo@qq.com

    鄂ICP备2023003026号

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

    友情链接: 武汉网站建设