Reputation: 362
I have a directory which is having many files and folders(some are hidden). I tried the below commands for creating ISO: cd /path/of/content/dir/ && mkisofs -o /path/of/iso/file.iso * [In this case it is leaving hidden dirs]
&&
cd /path/of/content/dir/ && mkisofs -o /path/of/iso/file.iso ./{*,.[^.]*} [In this case ISO is building with completely unexpected structure]
Please help?
Upvotes: 0
Views: 750
Reputation: 7243
replace the italicized sections with your CD label and directory, of course:
mkisofs -V LABEL -r DIRECTORY | gzip > cdrom.iso.gz
Upvotes: 2
Reputation: 375
The below worked for me just fine:
mkisofs -allow-leading-dots -o /tmp/test.iso ./
Upvotes: 0