收到错误-无法激活交换/swapfile

收到错误-无法激活交换/swapfile

我是新手Ubuntu 桌面从 Windows 开始,昨天安装了它。它运行良好,除了 ACPI 错误。但是今天我在启动我的机器时遇到错误。

[ 0.274572] ACPI BIOS Error (bug): Could not resolve symbol [_SB.PCIO.GPP2.BCM5], AE_NOT_FOUND (20210730/dswload2-162)
[ 0.274580] ACPI Error: AE_NOT_FOUND, During name lookup/catalog (20210730/ps
/dev/sda2: clean, 449907/61022208 files, 9220737/244059136 blocks
[FAILED] Failed to activate swap /swapfile.
[DEPEND] Dependency failed for Swaps.
[FAILED] Failed to start Userspace Out-Of-Memory (00M) Killer.
[FAILED] Failed to start Network Name Resolution.
[FAILED] Failed to start Network Time Synchronization.
[FAILED] Failed to start Network Name Resolution.
[FAILED] Failed to start Network Time Synchronization.
[FAILED] Failed to start Network Name Resolution.
[FAILED] Failed to start Network Time Synchronization.
[FAILED] Failed to start Network Name Resolution.
[FAILED] Failed to start Userspace Out-Of-Memory (OOM) Killer.
[ 11.659491] ACPI BIOS Error (bug): Attempt to CreateField of length zero (202
[ 11.659550] ACPI Error: Aborting method HWMC due to previous error (AE_AML_O
[ 11.659571] ACPI Error: Aborting method \_SB.WMID.WMAA due to previous error
[ 11.685486] ACPI BIOS Error (bug): Attempt to CreateField of length zero (202
[ 11.685547] ACPI Error: Aborting method HWMC due to previous error (AE_AML_O
[ 11.685571] ACPI Error: Aborting method_SB.WMID.WMAA due to previous error
[FAILED] Failed to start Network Name Resolution.
[FAILED] Failed to start Network Name Resolution.
[FAILED] Failed to start Network Name Resolution.
[FAILED] Failed to start Network Name Resolution.
[FAILED] Failed to start Network Name Resolution.
[FAILED] Failed to start Network Name Resolution.

/etc/fstab

# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point> <type> <options> <dump> <pass>
# / was on /dev/sda2 during installation
# /boot/efi was on /dev/sda1 during installation
/swapfile none swap sw 0 0

/dev/sda2: UUID="3554c80c-3021-48ef-b6c2-cd4a7f2ef468" BLOCK_SIZE="4096" TYPE="ext4" PARTUUID="9f17a076-e829-4e4f-be84-620be099dd9f"
/dev/sda1: UUID="0535-3488" BLOCK_SIZE="512" TYPE="vfat" PARTLABEL="EFI System Partition" PARTUUID="48f08ef9-73e2-4c60-862c-77519bdf4dba"
NAME FSTYPE FSVER LABEL UUID                                 FSAVAIL FSUSE% MOUNTPOINTS

sda
sda1 vfat   FAT32       0535-34B8
sda2 ext4   1.0         3554c80c-3021-48ef-b6c2-cd4a7f2ef468 849.3G  2%     /

答案1

/etc/fstab

sudo pico /etc/fstab
缺少两行
/dev/sda2 / ext4 errors=remount-ro 0 1

/dev/sda1 /boot/efi vfat defaults 0 1

答案2

我的所有机器都出现了 ACPI(电源管理)错误 - 没什么可担心的。

你的问题是:

[失败] 无法启动用户空间内存不足 (00M) Killer

更正答案

“OOM Killer” 或“Out of Memory Killer” 是 Linux 内核在系统内存严重不足时启用的一个进程。这种情况发生是因为设备上的进程正在消耗大量内存,而系统需要更多内存用于自己的进程并分配给其他进程。

正如 Jos 指出的那样,缺少的不是磁盘空间,而是内存。要解决此问题,您可能必须禁用使用该内存的某些服务。该命令free将显示系统中使用了多少内存。

关于交换问题。有人在此之前,也许你的硬盘是只读的(这将阻止创建任何文件)

相关内容