4

I'm trying to figure out the exact mkisofs cmd to create the ISO with the following directory and file structure. I've tried different commands, but when I mount the ISO that is created the directory tree has not been reproduced.

The initial directory tree is:

master.iso::
mount -o loop /apps/vmware/master.iso /mnt/vmtest


ls /mnt/vmtest
isolinux ks.cfg upgra32 upgra64 upgrade.sh

ls /mnt/vmtest/isolinux
boot.cat initrd.img isolinux.bin isolinux.cfg vmlinuz

I've used different variations of the following mkisofs command without success:

mkisofs -o '/foo/test.iso' -b 'isolinux.bin' -c 'boot.cat' -no-emul-boot  -boot-load-size 4 -boot-info-table 'isolinux'

How do I make an ISO that captures a directory's exact structure?

Wesley
  • 32,690
  • 9
  • 82
  • 117
tom smith
  • 451
  • 2
  • 6
  • 10

1 Answers1

1

Where are you running the mkisofs command from? Have you tried specifying absolute paths? e.g.:

 mkisofs -o '/foo/test.iso' -b '/mnt/vmtest/isolinux/isolinux.bin' -c '/mnt/vmtest/isolinux/boot.cat' -no-emul-boot  -boot-load-size 4 -boot-info-table /mnt/vmtest
cjc
  • 24,916
  • 3
  • 51
  • 70