My SBC has a host USB port that can accept a flash memory stick. After inserting the memory stick I have verified that I can do this in shell commands:
mount /dev/sda1 /mnt cp filename /mnt/filename umount /mnt
So now I would like to access this memory stick from my C application. But I cannot require that the memory stick be inserted first. I must allow the memory stick to be inserted after my program has begun. I must be able to write to a file on that memory stick, or detect that no memory stick is inserted. I guess I need to do the equivalent of the mount command programatically. How is this normally done?
Robert Scott Ypsilanti, Michigan