Setting a removable drive partition(UFD) to become a CD-ROM partition

Goi

Diamond Member
Oct 10, 1999
6,763
6
91
Hi,

I have a UFD that I can set to be either a CD-ROM or regular removable drive partition on the fly. I'm trying to hack it such that I can change the contents of the CD-ROM partition. The CD-ROM partition is obviously read only, so what I do is I change the permissions to r/w, set it to become non CD-ROM(regular partition), then I'm able to write files into the partition. However, I'm not sure how to write it such that the file system is ISO-9660/CDFS. What I'm doing so far is just formatting this CD-ROM partition as FAT32 and writing the files in, but in this case it shows up under Windows as FAT32. I want it to show up as CDFS.

I've tried to copy an ISO image file byte by byte into the partition with the DD command, but that doesn't seem to work. After I write it and set it back to CD-ROM/read only, I'm unable to access the partition(shows me an I/O error).

Does anyone have any idea how this may be accomplished?

TIA