-
-
【求助】qume虚拟机运行Linux根文件系统时报错:Kernel panic - not syncing: Out of memory and no killable processes
-
发表于:
2023-1-28 09:51
10535
-
【求助】qume虚拟机运行Linux根文件系统时报错:Kernel panic - not syncing: Out of memory and no killable processes
```bash
# 建立目标根目录映像
dd if=/dev/zero of=initrd.img count=1024 bs=4096
mkfs.ext2 initrd.img
mkdir rootfs
mount -o loop initrd.img rootfs/
# 创建字符设备
mkdir rootfs/dev
mknod rootfs/dev/console c 5 1
mknod rootfs/dev/ram b 1 0
```
通过这种方法可以创建出4MB的根文件系统,可以在qume上正常运行。
但是容量太小,于是我想加大容量,但是在使用dd创建4MB以上容量的img时,出现如下报错:

如何解决?

[培训]内核驱动高级班,冲击BAT一流互联网大厂工作,每周日13:00-18:00直播授课