I'm trying to do a PXE boot with an image I created, but after loading the image and the kernel, I get the following error message:
The main error message is this:
No filesystem could mount root, tried: ext3 ext2 iso9668
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(1,0
Pid: 1, comm: swapper not tainted 2.6.34.1 #4
I've tried looking up advice for this online, but what I found was that either the hardware was incompatible, or to use another kernel. I'm confident that the hardware is compatible because I was able to boot the same exact kernel (a custom kernel that I did not create, unfortunately) and operating system (Scientific Linux 5) from an SD card without problems, so I think this network boot should also work for the same kernel and system. To make my SL5 image for the network boot, I've copied all files exactly from the SD card (except those in /sys
and /proc
), yet I still get this error message. I've also only tried copying necessary directories, like /bin
, /dev
, /etc
, /lib
, etc. Even with only these directories though, the image is 2.6GB or so, and I still get this error message.
Right now I feel like I have two options to tackle: either the image is just too big to be mounted onto ram0
(is there a size limit?), in which case I should trim the contents of the directories; or the system is just not recognizing ram0
at all, and there is a problem with the initrd process.
Here are the relevant contents of my pxelinux.cfg/default
file, as well:
LABEL SL5
MENU LABEL SL5
KERNEL images/vmlinuz-2.6.34.1-32-v7805
APPEND initrd=images/SL5rootfs.gz root=/dev/ram0 ramdisk_size=3100000 rw ip=dhcp fastboot mem=3g