I have created a boot CD using the stage2_eltorito GRUB image.
I placed my kernel and initrd image inside the boot directory.
Also , I have placed the kernel modules in another directory on the CD.
My objective is to try and create an install CD for an LFS System that I have already created(not a LiveCD)
This is only the first step towards achieving that.
The kernel boots fine and also mounts the initrd. I have installed busybox (latest version) in this initrd. In the linuxrc script , I mount the /proc and /sys file systems.
My problem :
At the 'ash' shell , I am not able to mount the CDROM from which I just booted. I have created the device node hda for the cdrom and infact on digging deeper in the /proc/ide files , I see that the media type for the ide for hda is infact cdrom. However , I do not see an entry in /sys/block for hda. Although there is an entry for hdb in /sys/block.
When I try to mount the cdrom for e.g. :
mount -t iso9660 /dev/hda /mnt/cdrom
I get the error : No such device or address.
I am stumped.
Can somebody please help me how to mount my cdrom once I have booted from the CD and also mounted the initrd image ?