相关疑难解决方法(0)

为什么在 16.04 LTS 上的 `/lib/modules` 下有两个内核?

磁盘使用分析器在 /lib/modules 下显示 4.4.0-45 和 4.4.0-47,这是为什么?是否需要有两个内核,还是更新后保留旧内核?删除旧内核是否安全?

kernel

4
推荐指数
2
解决办法
2910
查看次数

双启动Win 10的问题| 开机修复失败

我的 PC 上有一个双启动 Win 10 - Ubuntu 16.04,并且想在一年多后不使用它的情况下运行 Ubuntu。在 GRUB 中选择 Ubuntu 是可行的,但是初始化过程卡在了带有 Ubuntu 徽标的加载阶段。这在 Win 10 主要更新后已经发生过,通常通过boot-repair从实时 USB运行来修复。

我尝试从实时 USB(Ubuntu 20.04)运行引导修复,但它一直显示以下错误:

请创建一个 ESP 分区(>1MB,胖启动标志)。这可以通过 Gparted 等工具执行。然后再试一次。

我想知道为什么会出现这个错误,因为 sda2 上有一个 EFI 分区。更多细节:我的引导修复日志文件

此外,我之前通过点击GRUB 引导加载程序中的 Ubuntu 条目并在行尾添加,然后是 CTRL+X(我认为这更适合我的联想 Yoga 2 Pro 笔记本电脑),成功启动了一次eUbuntu 。不幸的是,重新启动后我无法重复该步骤,并且 GRUB 引导加载程序屏幕现在已被 grub 控制台取代...acpi=offlinux ...

任何帮助将不胜感激!

亲切的问候,

瓦伦丁

grub2 dual-boot boot-repair

4
推荐指数
1
解决办法
1507
查看次数

卷“boot”只剩下 0 字节的磁盘空间

可能的重复:
在 /boot 上释放更多空间

我在Ubuntu 10.04 中

当我使用“更新管理器”安装软件更新时,会弹出一个对话框,告诉我“卷“引导”仅剩余 0 字节磁盘空间

我目前使用的内核是:

myname:~$ uname -r
2.6.32-37-generic
Run Code Online (Sandbox Code Playgroud)

boot文件夹的内容是:

myname:~$ ls -lah /boot
total 217M
drwxr-xr-x  4 root root 3.0K 2012-01-13 15:18 .
drwxr-xr-x 24 root root 4.0K 2012-01-13 15:21 ..
-rw-r--r--  1 root root 626K 2010-04-16 16:01 abi-2.6.32-21-generic
-rw-r--r--  1 root root 637K 2011-01-11 03:18 abi-2.6.32-28-generic
-rw-r--r--  1 root root 637K 2011-02-11 21:56 abi-2.6.32-29-generic
-rw-r--r--  1 root root 637K 2011-03-02 04:27 abi-2.6.32-30-generic
-rw-r--r--  1 root root …
Run Code Online (Sandbox Code Playgroud)

updates filesystem 10.04 boot

3
推荐指数
1
解决办法
9999
查看次数

有没有简单安全的方法来调整 /boot 的大小

我的 /boot 已满。有没有一种简单安全的方法来调整它的大小?我看到一个讨论说不需要 /boot 分区。一个 /boot 目录就可以了。但是,我认为在挂载 /boot 时我不能拥有 /boot 文件夹。同样,我可以调整 /boot 的大小,因为我无法卸载它。

我打算 1. 创建一个新的逻辑卷,2. 挂载它并将所有文件从 /boot 复制到这个新卷,以及 3. 更改挂载表以在 /boot 下挂载新的逻辑卷。

因为它是/boot,如果我犯了错误,我将无法启动。谁能给我指示?

史蒂夫

server boot resize

3
推荐指数
1
解决办法
2276
查看次数

AWS Ubuntu14.04 实例 mktemp 升级失败

在 AWS 上使用 Ubuntu14 升级时遇到问题。这似乎与 full /boot 等问题不同。我该如何纠正?

Setting up initramfs-tools (0.103ubuntu4.2) ...
update-initramfs: deferring update (trigger activated)
Setting up linux-image-3.13.0-35-generic (3.13.0-35.62) ...
Running depmod.
update-initramfs: deferring update (hook will be called later)
The link /initrd.img is a dangling linkto /boot/initrd.img-3.13.0-35-generic
vmlinuz(/boot/vmlinuz-3.13.0-35-generic
) points to /boot/vmlinuz-3.13.0-35-generic
 (/boot/vmlinuz-3.13.0-35-generic) -- doing nothing at /var/lib/dpkg/info/linux-image-3.13.0-35-generic.postinst line 491.
Examining /etc/kernel/postinst.d.
run-parts: executing /etc/kernel/postinst.d/apt-auto-removal 3.13.0-35-generic /boot/vmlinuz-3.13.0-35-generic
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 3.13.0-35-generic /boot/vmlinuz-3.13.0-35-generic
update-initramfs: Generating /boot/initrd.img-3.13.0-35-generic
mktemp: failed to create file via template ‘/var/tmp/mkinitramfs-FW_XXXXXX’: No such file …
Run Code Online (Sandbox Code Playgroud)

upgrade

3
推荐指数
1
解决办法
1318
查看次数

安全删除 /boot 中的旧文件

哪些文件可以安全删除以释放空间/boot?对于未来的需求,我如何知道哪些文件正在使用,哪些已过时?

root@ubu:/boot# ls -l
total 153003
-rw-r--r-- 1 root root  1162712 ago 13 18:45 abi-3.13.0-34-generic
-rw-r--r-- 1 root root  1163858 ago 15 04:56 abi-3.13.0-35-generic
-rw-r--r-- 1 root root  1164509 nov 13 19:30 abi-3.13.0-40-generic
-rw-r--r-- 1 root root  1164720 dic  8 21:28 abi-3.13.0-43-generic
-rw-r--r-- 1 root root   165611 ago 13 18:45 config-3.13.0-34-generic
-rw-r--r-- 1 root root   165652 ago 15 04:56 config-3.13.0-35-generic
-rw-r--r-- 1 root root   165745 nov 13 19:30 config-3.13.0-40-generic
-rw-r--r-- 1 root root   165745 dic  8 21:28 config-3.13.0-43-generic …
Run Code Online (Sandbox Code Playgroud)

boot kernel

3
推荐指数
1
解决办法
2万
查看次数

如何避免更新软件包 linux-firmware 创建 initrd.img 文件?

在 Ubuntu 14.04 LTS 上,每次尝试更新我的 linux-firmware 包都会用名为 like 的文件填充我的 /boot/ 挂载点initrd.img-3.13.0-*-generic,从而阻止成功更新。

kgrittn@Kevin-Desktop:~$ sudo apt-get upgrade
阅读包裹清单...完成
构建依赖树       
读取状态信息...完成
正在计算升级...完成
0 升级,0 新安装,0 删除,0 未升级。
1 未完全安装或拆除。
此操作后,将使用 0 B 的额外磁盘空间。
你要继续吗?[是/否]
设置 linux 固件 (1.127.23) ...
update-initramfs:生成/boot/initrd.img-3.13.0-106-generic
update-initramfs:生成/boot/initrd.img-3.13.0-105-generic
update-initramfs:生成/boot/initrd.img-3.13.0-103-generic
update-initramfs:生成/boot/initrd.img-3.13.0-101-generic
更新initramfs:生成/boot/initrd.img-3.13.0-100-generic
update-initramfs:生成/boot/initrd.img-3.13.0-98-generic
grep: /boot/config-3.13.0-98-generic: 没有那个文件或目录
update-initramfs:生成/boot/initrd.img-3.13.0-96-generic
grep: /boot/config-3.13.0-96-generic: 没有那个文件或目录
update-initramfs:生成/boot/initrd.img-3.13.0-95-generic
grep: /boot/config-3.13.0-95-generic: 没有那个文件或目录
update-initramfs:生成/boot/initrd.img-3.13.0-93-generic
grep: /boot/config-3.13.0-93-generic: 没有那个文件或目录
更新initramfs:生成/boot/initrd.img-3.13.0-92-generic
grep: /boot/config-3.13.0-92-generic: 没有那个文件或目录
update-initramfs:生成/boot/initrd.img-3.13.0-91-generic
grep: /boot/config-3.13.0-91-generic: 没有那个文件或目录
update-initramfs:生成/boot/initrd.img-3.13.0-88-generic
grep: /boot/config-3.13.0-88-generic: 没有那个文件或目录
update-initramfs:生成/boot/initrd.img-3.13.0-87-generic
grep: /boot/config-3.13.0-87-generic: 没有那个文件或目录
update-initramfs:生成/boot/initrd.img-3.13.0-86-generic
grep: /boot/config-3.13.0-86-generic: 没有那个文件或目录
update-initramfs:生成/boot/initrd.img-3.13.0-85-generic …

apt kernel

3
推荐指数
1
解决办法
1万
查看次数

引导分区不断被旧的 inird.img 文件填满

以下是 的内容/boot

drwxr-xr-x  5 root root     3072 Apr 18 09:10 .
drwxr-xr-x 26 root root     4096 Mar 22 15:43 ..
-rw-r--r--  1 root root   217495 Jan 17 05:59 config-4.15.0-76-generic
-rw-r--r--  1 root root   217457 Feb 28 02:45 config-4.15.0-91-generic
drwxr-xr-x  3 root root     4096 Dec 31  1969 efi
drwxr-xr-x  5 root root     1024 Mar 22 15:50 grub
-rw-r--r--  1 root root 60196828 Apr 18 09:05 initrd.img-4.15.0-76-generic
-rw-r--r--  1 root root 60206115 Apr 18 09:05 initrd.img-4.15.0-91-generic
drwx------  2 root root …
Run Code Online (Sandbox Code Playgroud)

apt boot dpkg kernel initrd

3
推荐指数
1
解决办法
1654
查看次数

在缺少依赖项的情况下使用 apt-get autoremove

我的 Ubuntu 服务器实例的/boot分区当前为 100%,我想使用sudo apt-get autoremove. 但是,似乎我缺少一些依赖项,我无法安装这些依赖项/boot,因为 . 我尝试使用sudo apt-get autoremove -f来删除和修复依赖项,但它似乎想在删除其他所有内容之前安装依赖项。有没有办法在安装缺少的依赖项的情况下删除未使用的依赖项/包?如果有帮助,我已经在下面包含了我的终端输出。

mkoch@ubuntu:~$ sudo apt-get autoremove -f
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Correcting dependencies... Done
The following extra packages will be installed:
  linux-generic linux-headers-3.13.0-39 linux-headers-3.13.0-39-generic
  linux-headers-generic linux-image-3.13.0-39-generic
  linux-image-extra-3.13.0-39-generic linux-image-generic
Suggested packages:
  fdutils linux-doc-3.13.0 linux-source-3.13.0 linux-tools
The following packages will be REMOVED:
  linux-headers-3.13.0-24 linux-headers-3.13.0-24-generic
  linux-headers-3.13.0-27 linux-headers-3.13.0-27-generic
  linux-headers-3.13.0-29 linux-headers-3.13.0-29-generic
  linux-headers-3.13.0-30 linux-headers-3.13.0-30-generic
  linux-headers-3.13.0-32 linux-headers-3.13.0-32-generic
  linux-headers-3.13.0-33 …
Run Code Online (Sandbox Code Playgroud)

apt dependencies

2
推荐指数
1
解决办法
7908
查看次数

我可以手动删除/boot 中的旧vmlinuz 吗?

我的 /boot 已满。apt-get autoremove autoclean 不起作用。我选择手动删除旧的 linux-image*。有很多文件,例如:config VERSION、vmlinuz VERSION、initrd.img*VERSION...

这些也可以手动删除吗?

VERSION 是旧版本(其中一些是 2012 年的!)。

kernel

1
推荐指数
1
解决办法
8462
查看次数

如何调整启动分区大小

这是我的问题。我想重新安装 Ubuntu。我的笔记本电脑是一台旧的 HP Compaq nx7400。光驱出问题,无法读取光盘。我会使用 USB 端口,但笔记本电脑无法从它启动。(即使我在BIOS设置中将USB设置为启动顺序第一个,也不会启动。而且按F9选择启动设备后启动时USB不会出现在列表中,只有光盘,上网本磁盘和网络如果我启用它。)

我想调整引导分区的大小以为安装腾出空间,但我无法这样做,因为似乎整个 HDD 都是引导分区,因此无法使用 Gparted 卸载它。

我的分区系统如下:

Disk /dev/sda: 250.1 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders, total 488397168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x000e6661

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *        2048   486318079   243158016   83  Linux
/dev/sda2       486320126   488396799     1038337    5  Extended
/dev/sda5       486320128   488396799 …
Run Code Online (Sandbox Code Playgroud)

partitioning boot resize

0
推荐指数
1
解决办法
2611
查看次数