我想在没有 initrd 的情况下启动我的系统,并且我编译了一个自定义内核。我添加了我需要的一切(文件系统、设备驱动程序等),但它们不是模块。但是当我尝试在没有 initrd/initramfs 的情况下启动时,它显示:没有 initramfs 就无法打开根设备或未知块 (0 0)。我该如何解决这个问题? 错误信息
lspci-k:
00:00.0 Host bridge: Intel Corporation 82Q35 Express DRAM Controller (rev 02)
Subsystem: Hewlett-Packard Company Device 2819
Kernel modules: intel_agp
00:01.0 PCI bridge: Intel Corporation 82Q35 Express PCI Express Root Port (rev 02)
Kernel driver in use: pcieport
00:03.0 Communication controller: Intel Corporation 82Q35 Express MEI Controller (rev 02)
Subsystem: Hewlett-Packard Company Device 2819
Kernel driver in use: mei_me
Kernel modules: mei_me
00:03.2 IDE interface: Intel Corporation 82Q35 Express PT IDER Controller (rev 02)
Subsystem: Hewlett-Packard Company Device 2819
Kernel driver in use: ata_generic
Kernel modules: pata_acpi, ata_generic
00:03.3 Serial controller: Intel Corporation 82Q35 Express Serial KT Controller (rev 02)
Subsystem: Hewlett-Packard Company Device 2819
Kernel driver in use: serial
00:19.0 Ethernet controller: Intel Corporation 82566DM-2 Gigabit Network Connection (rev 02)
Subsystem: Hewlett-Packard Company Device 2818
Kernel driver in use: e1000e
Kernel modules: e1000e
00:1a.0 USB controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #4 (rev 02)
Subsystem: Hewlett-Packard Company Device 2819
Kernel driver in use: uhci_hcd
00:1a.1 USB controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #5 (rev 02)
Subsystem: Hewlett-Packard Company Device 2819
Kernel driver in use: uhci_hcd
00:1a.7 USB controller: Intel Corporation 82801I (ICH9 Family) USB2 EHCI Controller #2 (rev 02)
Subsystem: Hewlett-Packard Company Device 2819
Kernel driver in use: ehci-pci
00:1b.0 Audio device: Intel Corporation 82801I (ICH9 Family) HD Audio Controller (rev 02)
Subsystem: Hewlett-Packard Company Device 2819
Kernel driver in use: snd_hda_intel
Kernel modules: snd_hda_intel
00:1c.0 PCI bridge: Intel Corporation 82801I (ICH9 Family) PCI Express Port 1 (rev 02)
Kernel driver in use: pcieport
00:1c.1 PCI bridge: Intel Corporation 82801I (ICH9 Family) PCI Express Port 2 (rev 02)
Kernel driver in use: pcieport
00:1d.0 USB controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #1 (rev 02)
Subsystem: Hewlett-Packard Company Device 2819
Kernel driver in use: uhci_hcd
00:1d.1 USB controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #2 (rev 02)
Subsystem: Hewlett-Packard Company Device 2819
Kernel driver in use: uhci_hcd
00:1d.2 USB controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #3 (rev 02)
Subsystem: Hewlett-Packard Company Device 2819
Kernel driver in use: uhci_hcd
00:1d.7 USB controller: Intel Corporation 82801I (ICH9 Family) USB2 EHCI Controller #1 (rev 02)
Subsystem: Hewlett-Packard Company Device 2819
Kernel driver in use: ehci-pci
00:1e.0 PCI bridge: Intel Corporation 82801 PCI Bridge (rev 92)
00:1f.0 ISA bridge: Intel Corporation 82801IO (ICH9DO) LPC Interface Controller (rev 02)
Subsystem: Hewlett-Packard Company Device 2819
Kernel driver in use: lpc_ich
Kernel modules: lpc_ich
00:1f.2 SATA controller: Intel Corporation 82801IR/IO/IH (ICH9R/DO/DH) 6 port SATA Controller [AHCI mode] (rev 02)
Subsystem: Hewlett-Packard Company Device 2819
Kernel driver in use: ahci
01:00.0 VGA compatible controller: NVIDIA Corporation GT218 [GeForce 210] (rev a2)
Subsystem: ZOTAC International (MCO) Ltd. Device 7214
Kernel driver in use: nouveau
Kernel modules: nouveau
01:00.1 Audio device: NVIDIA Corporation High Definition Audio Controller (rev a1)
Subsystem: ZOTAC International (MCO) Ltd. Device 7214
Kernel driver in use: snd_hda_intel
Kernel modules: snd_hda_intel
答案1
您似乎有一个 /dev/md0 作为您的根设备。
为了使您的 SW RAID 在启动期间自动组装,需要:
- 位于 FD 类型分区(Linux Raid)上。
- 要拥有一个较旧的超级块(使用
--metadata=0.90
添加到您的mdadm --create
.