I'm attempting to boot a linux kernel, ramdisk, and a drive using qemu:
qemu -initrd ramdisk.cpio.gz -kernel mylinux.i686 -m 1024 -append console=ttyS0,38400 -serial file:serial.out -hdd raw.img
Upon boot I don't see the drive under /dev. The main goal is for my drive to be recognized. More info:
- I created raw.img via qemu-img. It's 3GB and a raw format
- I can recognize and mount raw.img via another linux distro: tinycore_3.5.1.iso
- /dev/hdd doesn't exist on the mylinux side nor does any /dev/hd*
- I don't see anything under /sys/class/block that would lead me to believe the drive was recognized by the kernel
- the ramdisk contains /init and other processes. for now assume this is my root volume.
- the system uses udev
I'm new to linux at this level. Hopefully someone can help me with my understanding of the OS events. My assumption was that /sys would be what the kernel recognized as a drive. udev would then listen to kernel events and translate drive information into nodes under /dev. Correct? Any insight and steps to debug this out would be much appreciated. Again, the goal is to have the drive recognized (i.e. show up under /dev), not to boot from it.