我只是重新安装Ubuntu 12.10后,有各种问题,这只是时间重新格式化和重新安装。
安装过程是有史以来最顺利的。不过,在我安装的系统上,我没有需要配置grub的/etc/default/grub文件。出于好奇,我运行了sudo update-grub,尽管文件丢失了,它还是无缝地运行。
我将补充说,我正在安装grub-efi,并在引导时通过rEFInd加载它。
我还在新的安装媒体上重新下载了Ubuntu,重新格式化和重新安装,验证了文件和md5和,但是它们仍然没有。我也尝试过Ubuntu引导修复工具,它成功地完成了,但实际上并没有恢复/etc/default/grub文件。
如何获得所需的/etc/default/grub配置文件?
谢谢你提前帮忙。
发布于 2013-02-17 20:58:54
在安装了tuxonice以启用休眠之后,我注意到其中一个输出是它找不到/etc/default/grub,它善意地为我创建了一个。
然而,我仍然想知道重新创建这个文件的实际方式是什么,因为它似乎是一个持续存在的问题。我这么说是因为我已经尝试过重新安装12.10,但仍然存在这个问题。
发布于 2014-02-20 15:29:17
没有找到如何再生它的方法,但这里是我的:
# 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"https://askubuntu.com/questions/257036
复制相似问题