A- Can you (or are you already) take a raw image of the CF card and use that as your virtual drive in qemu?
Yes, I have taken out card data in which I found following two files, I am using QNX-IFS as a QNX VM image
for the BOOT.bin I dont have any idea
B- I suspect you want to access the data on the CF card anyway in your virtual machine?
I actually dont know what they have put in the image/CF card, I guess they just put only the OS related stuff.
but at the moment I am not looking for any data in the SD card other than OS.
C- Do either of the ‘pidin’ or ‘ps’ commands work (or ‘sin’ command if you are using QNX 4). Those will tell us which kind of disk driver is being used?
Yes, only Pidin command is working in the VM.
unfortunately the command below did not worked for me
And fortunately, now there is further progress,
I have created SD card image in my host machine and attached that with Qemu. after that one partition is now visible as /dev/hd0.
dd if=/dev/zero of=qemu_sd.img bs=256M count=1
mkfs.vfat -F 32 qemu_sd.img
I executed a script manually that I received from them, for mounting and creating the folder structure.
now, I can see some /mnt/conf folder but I can not create further directories inside these folders like
`/bin/sh: mkdir: cannot execute - No such file or directory`
interestingly it allowed me to create a file so I created a bash script with touch command
if I execute I can see more directories but previously only ifs row was visible.
ifs 42184 42184 0 100% /
/dev/hd0t179 378848 14392 364456 4% /mnt/data/
/dev/hd0t178 94176 3624 90552 4% /mnt/conf/
/dev/hd0t177 40928 1600 39328 4% /mnt/apps/
/dev/hd0t11 10160 0 10160 0% /mnt/boot/
/dev/hd0 524288 524288 0 100%
I would also like to know the cause, what could be the reason for the error
/bin/sh: mkdir: cannot execute - No such file or directory
Secondly, is there any way I can take mounting script while creating a VM for automated mounting and creating folder structure.
Meanwhile let me also try the proposed solution