我试图隐藏Linux 19肉桂上的GRUB菜单。
我使用并输入我的管理密码两次编辑grub文件
gedit admin:///etc/default/grub
然后,我编辑了grub文件如下所示:
# 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
我碰巧删除了我系统上的/boot目录,而不是我应该删除的目录。我找到这是为了恢复它,但是apt --reinstall有问题,所以我决定手动删除和安装软件包。可能不是最聪明的想法,现在有两个破碎的图像,我不知道如何修复。
运行dpkg --audit告诉我
The following packages are only half configured, probably due to problems
configuring them the first time. The configuration should be retried using
dpkg --configure or
我希望更改grub.cfg中的菜单项,例如:
从…
### BEGIN /etc/grub.d/10_linux ###
menuentry 'Ubuntu is wonderful'
至
### BEGIN /etc/grub.d/10_linux ###
menuentry 'Ubuntu is world famous'
有人能帮我吗?在ubuntu服务器安装过程中,我意外地在usb闪存驱动器上安装了grub。现在,我无法启动系统,没有驱动器连接到服务器。
我想在硬盘上安装grub,安装grub,但是我不知道如何设置引导加载程序的位置?
我的小弟弟看起来是这样的:
file system mount point type
proc /proc proc
/dev/mapper/pdc_jdbeghhjg1 / ext4
/dev/mapper/pdc_jdbeghhjg5 none
我做了一个更新,其中包括内核升级,然后我的Wifi和以太网停止工作。我尝试了一些命令,包括Ubuntu建议的命令:
$ sudo apt-get install -f
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following packages were automatically installed and are no longer required:
linux-
当我清理我的电脑时,我意外地卸载了一个我不该卸载的包(我真的记不起我卸载了什么)。
因此,总共删除了599个包(包括linux),当然,现在我无法启动。
如果我尝试从grub引导前辈,我会得到以下输出:
Booting 'Antergos Linux'...
error: file '/vmlinuz-linux' not found
loading initial ram-disk...
error: you need to load the kernel first.
我最近没有做任何备份,最近我一直很努力地用我的电脑工作。我现在真的不能重新安装任何Li
/usr/share/grub/default/grub和/etc/default/grub的用途是什么?我应该编辑哪一个使grub的行为有所不同?(如果您知道,两个不同的grub文件的技术或历史原因是什么?)
两个文件的内容是一样的..。
# 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
我有我的grub菜单显示在启动时,它不应该。我试过了下面是,但还是不能用。这里供参考的是grub.cfg文件的内容:
# 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_TIMEOU
为了制作一个安装完整的Linux发行版的USB,我已经登陆了一堆页面(如:我怎样才能修理食物?(如何在安装后恢复Ubuntu?)),解释了如何在设备上安装/重新安装grub。
为了了解程序和方法,提出了一些问题:
grub-install命令如何知道在哪里找到要引导的O.S.s的(分区)?
我看到了-菲。使用Linux驱动器--我们安装要安装Grub的设备的一个分区,并使用命令:for i in /sys /proc /run /dev; do sudo mount --bind "$i" "/mnt$i"; done,我们挂载所有目录grub-安装需要定位所有
当我运行sudo update-grub2或sudo update-grub时
我得到了回应
资源文件`/etc/default/grub‘/usr/sbin/: 1: /etc/default/grub: If: not
但是,我的/etc/default/grub文件肯定在那里。内容如下:
If you change this file, run 'update-grub' afterwards to update
# /boot/grub/grub.cfg.
# For full documentation of the options in this file, se
所以,我有一个双引导,只是打开了窗口分区,然后摆脱了windows的启动文件,更新了grub,现在我的PC引导直接进入了ubuntu。但是,我仍然希望有grub选项,这样我就可以在内核之间切换,并且我想使它永久化。
我读过关于这个问题的文章,我发现的是建议在grub文件中注释下面一行:
GRUB_HIDDEN_TIMEOUT=0
但是,文件中没有这样的行,其中唯一的内容是:
# If you change this file, run 'update-grub' afterwards to update
# /boot/grub/grub.cfg.
# For full doc
我从源代码编译了Linux内核2.6.24.6 (没有问题),并试图安装它。具体来说,在解压缩Linux源代码之后,我做到了。
make && make modules
来编译。然后在进行了一些配置之后,我简单地使用了
sudo make modules_install install
若要安装新建的二进制文件,请执行以下操作。在此过程中,在定位文件/sys/class/net/eth0/device/bus时出现了错误。它还会抛出肮脏的致命错误。详细的错误堆栈如下:
sh /mnt/factor/myProj3/linux-2.6.24.6/arch/x86/boot/ins