Ubuntu 22.04 Live USB 失败,报告“内存不足”,但没有详细信息,即使在其他机器上工作后也是如此

jon*_*vel 9 software-installation 22.04

机器:戴尔 XPS 13 9380

启动到使用 Rufus 创建的 USB 后: 将显示标准文本:

Try or install Ubuntu
Ubuntu (safe graphics)
OEM install (for manufacturers)
Boot from next volume
UEFI Firmware Settings
Run Code Online (Sandbox Code Playgroud)

我选择尝试或安装 Ubuntu。然后它会进入黑屏并显示以下文本:

error: out of memory.

Press any key to continue...
Run Code Online (Sandbox Code Playgroud)

没有其他错误信息或详细信息。几秒钟后,或按下某个键后,它会转到制造商徽标启动屏幕并冻结,直到我手动关闭电源并重新启动。

我找不到任何其他出现此错误的错误,也没有很多其他更详细的错误输出,但“内存不足”错误相当普遍,所以我可能错过了一些东西。

小智 7

我在启动 HP Elitebook 840 G8 时遇到了这个问题,并且 Ubuntu 无法从 USB 记忆棒启动。然后我检查了另一台同型号笔记本电脑上的 BIOS 设置,发现出现错误的笔记本电脑上的“视频内存”大小设置为 512 MB,而另一台笔记本电脑上的“视频内存”大小为 64 MB。

我将“视频内存”大小更改为 64 MB,错误不再出现,Ubuntu 正常启动。我测试了“视频内存”大小的不同值,我注意到新的 HP 笔记本电脑允许的最大值是 256 MB。在联想笔记本电脑上,“视频内存”大小可以设置为 512 MB,没有问题。


rus*_*tyx 5

我的华硕笔记本电脑也有同样的问题。

error: out of memory.

Press any key to continue...
Run Code Online (Sandbox Code Playgroud)

接下来是(禁用启动时可见)

. . .
VFS: Cannot open root device "(null)" or unknown-block(0,0): error -6
Please append a correct "root=" boot option: here are the available partitions:
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
CPU: 3 PID: 1 Comm: swapper/0 Not tainted 5.15.0-25-generic #25-Ubuntu
Hardware name: ASUSTeK COMPUTER INC. UX550VD/UX5S0VD, BIOS UX550VD.307 04/19/2019
Call Trace:
. . .
Kernel Offset: Ox7a00000 from Oxffffffff81000000 (relocation range: Oxffffffff80000000-Oxffffffffbfffffff)
---[ end Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0) ]---
Run Code Online (Sandbox Code Playgroud)

这是一个 GRUB 问题(Ubuntu bug 1842320)。

ISO 模式下的Rufus应该可以工作。它将安装一个可用的 GRUB。

如果没有,并且您已经在计算机上安装了 GRUB - 启动到现有的 GRUB(在 HDD 上,而不是 USB),按c输入命令提示符并“手动”从 USB 启动:

  1. 找到UBUNTU分区

    grub> ls
    (proc) (hd0) (hd0,gpt1) (hd1) . . .
    grub> ls (hd0,gpt1)
            Partition hd0,gpt1: Filesystem type ... - Label 'UBUNTU 22_0' ...
    grub> ls (hd0,gpt1)/
    boot/ boot.catalog casper/ dists/ efi/ install/ md5sum.txt pool/ ubuntu ...
    
    Run Code Online (Sandbox Code Playgroud)
  2. 设置 rootfs、kernel、initrd 并启动内核

    grub> set root=(hd0,gpt1)
    grub> linux /casper/vmlinuz
    grub> initrd /casper/initrd
    grub> boot
    
    Run Code Online (Sandbox Code Playgroud)