首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >缺少/etc/默认/grub

缺少/etc/默认/grub
EN

Ask Ubuntu用户
提问于 2013-02-16 20:27:16
回答 2查看 4.4K关注 0票数 3

我只是重新安装Ubuntu 12.10后,有各种问题,这只是时间重新格式化和重新安装。

安装

安装过程是有史以来最顺利的。不过,在我安装的系统上,我没有需要配置grub的/etc/default/grub文件。出于好奇,我运行了sudo update-grub,尽管文件丢失了,它还是无缝地运行。

我将补充说,我正在安装grub-efi,并在引导时通过rEFInd加载它。

试图修理

我还在新的安装媒体上重新下载了Ubuntu,重新格式化和重新安装,验证了文件和md5和,但是它们仍然没有。我也尝试过Ubuntu引导修复工具,它成功地完成了,但实际上并没有恢复/etc/default/grub文件。

问题

如何获得所需的/etc/default/grub配置文件?

谢谢你提前帮忙。

EN

回答 2

Ask Ubuntu用户

回答已采纳

发布于 2013-02-17 20:58:54

在安装了tuxonice以启用休眠之后,我注意到其中一个输出是它找不到/etc/default/grub,它善意地为我创建了一个。

然而,我仍然想知道重新创建这个文件的实际方式是什么,因为它似乎是一个持续存在的问题。我这么说是因为我已经尝试过重新安装12.10,但仍然存在这个问题。

票数 0
EN

Ask Ubuntu用户

发布于 2014-02-20 15:29:17

没有找到如何再生它的方法,但这里是我的:

代码语言:javascript
复制
# If you change this file, run 'update-grub' afterwards to update
# /boot/grub/grub.cfg.
# For full documentation of the options in this file, see:
#   info -f grub -n 'Simple configuration'

GRUB_DEFAULT=0
#GRUB_HIDDEN_TIMEOUT=0
GRUB_HIDDEN_TIMEOUT_QUIET=true
GRUB_TIMEOUT=10
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
GRUB_CMDLINE_LINUX=""

# Uncomment to enable BadRAM filtering, modify to suit your needs
# This works with Linux (no patch required) and with any kernel that obtains
# the memory map information from GRUB (GNU Mach, kernel of FreeBSD ...)
#GRUB_BADRAM="0x01234567,0xfefefefe,0x89abcdef,0xefefefef"

# Uncomment to disable graphical terminal (grub-pc only)
#GRUB_TERMINAL=console

# The resolution used on graphical terminal
# note that you can use only modes which your graphic card supports via VBE
# you can see them in real GRUB with the command `vbeinfo'
#GRUB_GFXMODE=640x480

# Uncomment if you don't want GRUB to pass "root=UUID=xxx" parameter to Linux
#GRUB_DISABLE_LINUX_UUID=true

# Uncomment to disable generation of recovery mode menu entries
#GRUB_DISABLE_RECOVERY="true"

# Uncomment to get a beep at grub start
#GRUB_INIT_TUNE="480 440 1"
票数 0
EN
页面原文内容由Ask Ubuntu提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://askubuntu.com/questions/257036

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档