Copy a directory tree from the hard drive into an ISO-9660 image:
mkisofs -r -o /tmp/cd_image.iso /path_to_directory/
where:
-r preserves long file names, by enabling the Rock Ridge protocol.
/path_to_directory the directory containing the files to format into the ISO image.