One of the things in Ubuntu that has always driven me crazy is the addition of new items into the grub menu without removing the old entries that likely don’t even work anymore. I’m sure most experienced Ubuntu users already know how to do this, but here’s the method anyway.

Ubuntu中一直令我着迷的一件事是在grub菜单中添加了新项目,而没有删除可能甚至无法使用的旧条目。 我敢肯定,大多数经验丰富的Ubuntu用户已经知道如何执行此操作,但是无论如何,这就是方法。

Important: If you’re using a newer version of Ubuntu with grub 2 (like Ubuntu 9.10 or later), you’ll need to read about how to clean up the New boot menu instead.

重要提示:如果您正在使用带有grub 2的较新版本的Ubuntu(例如Ubuntu 9.10或更高版本),则需要阅读有关如何清理New boot菜单的信息 。

I just installed this box recently, and then did an upgrade…. already there are 7 items in the menu.

我最近刚刚安装了此盒子,然后进行了升级…。 菜单中已经有7个项目。

To remove these entries, we’ll need to edit the file /boot/grub/menu.lst. You can do this by using Alt+F2 and then typing in the following command:

要删除这些条目,我们需要编辑文件/boot/grub/menu.lst。 您可以使用Alt + F2,然后输入以下命令来执行此操作:

gksu gedit /boot/grub/menu.lst

gksu gedit /boot/grub/menu.lst

Now that we’ve got the file open, scroll down to the bottom of the file where it says “End Default Options”, and you’ll find all the menu entries for the various kernels in here. You can just select and delete the ones you don’t want.

现在我们已经打开了文件,向下滚动到文件底部,显示“ End Default Options”,然后您将在此处找到各个内核的所有菜单项。 您可以选择并删除不需要的内容。

Save the file, and then the next time you boot up you’ll see a much nicer set of options.

保存文件,然后在下次启动时,会看到一组更好的选项。

I’m guessing it would also be prudent to clean up the other unused kernel files that are sitting out there… I’m sure there’s some automated tool to do that, but I’ve not taken the time to figure it out yet.

我猜想清理坐在那里的其他未使用的内核文件也是明智的……我确定有一些自动工具可以做到这一点,但是我还没有花时间来弄清楚它。

翻译自: https://www.howtogeek.com/howto/ubuntu/clean-up-ubuntu-grub-boot-menu-after-upgrades/

升级后清理Ubuntu Grub引导菜单相关推荐

  1. grub linux修复 pe,恢复Ubuntu GRUB引导的方法

    恢复 Ubuntu 引导 Ubuntu 的 GRUB 引导不在使用 GRUB 1 了,改用 GRUB 2(其实是beta版本).重装 Windows 系统后,用原来的 Live CD 方法无法再修复了 ...

  2. 网络安全系列之五十四 为GRUB引导菜单设置密码

    在之前的博文中曾介绍过Linux中的单用户模式,单用户模式类似于Windows中的WinPE,可以绕过系统的诸多限制来对系统进行配置,比如修改root用户密码等.单用户模式的使用参见博文http:// ...

  3. Ubuntu18.04 更改GRUB引导菜单背景图片和默认启动项

    一.更改GRUB引导菜单背景图片 1.首先准备一张想要的照片,文件名是啥无所谓,只要格式是*.jpg *.JPG *.jpeg *.JPEG *.png *.PNG *.tga *.TGA都行,都能自 ...

  4. GRUB引导菜单加密

    GRUB引导菜单加密 GRUB引导菜单加密(明文): # vi    /boot/grub/grub.conf password 123456 title  Red Hat Enterprise Li ...

  5. ubuntu GRUB 引导加载 Beini(WiFi破解神器) Tiny Core Linux

    身处热点环境,手上又有本本,但是不知道wifi热点密码...怎么破??? 那些wifi万能钥匙什么的等类似安卓软件都是扯淡的,对于技术宅类型的大家应该是不屑一顾.那么有什么好的工具呢??? 个人推荐& ...

  6. 内核升级后linux ubuntu无线网卡wifi驱动安装上网问题

    起因:因为用的工控机需要额外的无线网卡,内核升级后make编译失败. ###########(1)终端命令如下,ubuntu18.04/20.04 ########### For 5.10 kerne ...

  7. 安装XP后恢复ubuntu的引导

    有两种方法,一种是直接利用Ubuntu的Live CD,另一种是在XP下利用grub4dos工具实现 方法一: 必备工具:有光驱的电脑,ubuntu光盘(liveCD)一张. 1.从光盘启动电脑,出现 ...

  8. 双系统重装win10后恢复grub引导

    双系统重装win10后恢复grub引导 Win10+ubuntu18.04双系统,通常是先装win10,再装ubuntu,这样可以产生grub引导项. 但,若双系统已安装后,若因不可知原因而重装了wi ...

  9. Linux 之十七 Ubuntu 22.04 配置内核版本、GRUB 引导、远程桌面

      前段时间重新安装了 Ubuntu 22.04 LTS,安装后没有显示 GRUB 引导页面(默认自动跳过),直接使用默认内核启动,而我需要变更一下默认的内核版本,特此记录一下修改过程. 安装其他版本 ...

最新文章

  1. 一次线上故障之Java对象的一生简单总结
  2. 区块链相关论文研读4: Monoxide异步共识组
  3. [share]PHP购物车类的源码
  4. 2017年9月9日普级组 优美三角剖分
  5. python获取路由器数据包pppoe_PPPoE协议***4:如何得到PPPoE服务器的mac地址
  6. Airflow使用入门指南
  7. 怎样管理计算机制动开关时间,3分钟让你明白按钮启动如何工作的。
  8. Java高并发编程详解系列-JVM类加载器
  9. 【Spring】Spring NoSuchMethodError okhttp3.internal.platform.Platform.log(ILjava/lang/String;Ljava/lan
  10. Linux装好MATLAB无法启动的解决办法
  11. 阿里每天纳税超 1.4 亿元;余承东:苹果很难和华为竞争;三星 Note 7 爆炸案终审 | 极客头条...
  12. Google IO 2018 来啦!
  13. 【ES实战】_forcemerge API 使用说明
  14. Python使用openpyxl插入excel批注,修改批注
  15. vue 自定义 文字背景
  16. Java坑人面试题系列: 包装类(中级难度)
  17. 自定义gii生成模块
  18. xml保存图片和读取图片
  19. ftp服务器与共享文件对比,ftp服务器与共享的区别
  20. JAVA_协同过滤算法商品推荐

热门文章

  1. pdf 无须浏览直接下载
  2. 关于知乎搜索页面x-zes-96解密思路方法
  3. html怎样把字幕贴着色块走,手把手教你用HTML做音画贴
  4. calltransaction弹出新的窗口_SAP刘梦_新浪博客
  5. 人生苦短,饕餮docker
  6. 第一话 QQ盗号攻防战
  7. php高级程序员/php开发工程师/web技术员
  8. 【Benewake(北醒) 】长距 TF03 100m/180m介绍以及资料整理
  9. “游方之旅”的纯美爱情
  10. header = struct.pack(!i, n) struct.error: 'i' format requires -2147483648 number 2147483647