我最近将我的 Linux 系统从 HDD 移至 SSD。我设法让它启动,一切都很好,直到我从硬盘中删除旧的启动分区。现在,当我尝试启动时,我最终在 dracut shell 中出现/dev/disk/by-uuid/xxxxx doesn't exist
错误,xxxxx
我的前一个/boot
或/boot/efi
分区的 UUID 在哪里(我不确定是哪一个,因为我不再拥有它们)。
现在我需要重新生成 initramfs 以使用我从 HDD 克隆到 SSD 的新分区。我尝试dracut --regenerate-all --force
从救援启动运行,但没有帮助。
我使用的是 Fedora 21,那么我该怎么做呢?还是其他方面有问题?
我几个月来一直在运行自定义内核,没有模块,没有 initramfs,没有 initrd。
\n我已经安装了一个新的网络摄像头(锁定...),当然它不起作用,因为我没有正确的模块。我从 5.7.9 开始构建新内核。
\n(...)copying an oldconfig from the original kernel from the distribution (linux mint) into the source rep(...)\nmake oldconfig\nmake\nmake modules_install\n
Run Code Online (Sandbox Code Playgroud)\n但最后一步失败了
\nmake install\n\nsh ./arch/x86/boot/install.sh 5.9.7 arch/x86/boot/bzImage \\\n System.map "/boot"\nrun-parts: executing /etc/kernel/postinst.d/apt-auto-removal 5.9.7 /boot/vmlinuz-5.9.7\nrun-parts: executing /etc/kernel/postinst.d/dkms 5.9.7 /boot/vmlinuz-5.9.7\n * dkms: running auto installation service for kernel 5.9.7 [ OK ] \nrun-parts: executing /etc/kernel/postinst.d/initramfs-tools 5.9.7 /boot/vmlinuz-5.9.7\nupdate-initramfs: Generating /boot/initrd.img-5.9.7\nW: Possible missing firmware /lib/firmware/rtl_nic/rtl8125b-2.fw for module r8169\nI: The initramfs will attempt to resume from /dev/sda3\nI: (UUID=8630d321-f53f-410f-a44a-8d6e91235129)\nI: …
Run Code Online (Sandbox Code Playgroud) 在我上次启动后,yum update
我的测试盒已kernel-3.10.0-327.13.1
安装。在安装时,dracut 生成了initramfs-3.10.0-327.13.1.el7.x86_64.img
,但initramfs-0-rescue-7da0bd6ff130413b99bf0b6a1bde637e.img
留下了旧的kernel-3.10.0-327
. 如何在安装了新内核和新内核模块(如 zfs)的情况下生成新的救援 initramfs 映像?