Thursday, September 30, 2010

Mount an iso file in linux

mount -o loop /path/to/file.iso /mnt/iso

-o loop: specifies mounting the iso as a loopback device

/path/to/file.iso is the source file

/mnt/iso is the mount point on the filesystem

Make iso in linux

mkisofs -r -o /path/to/file.iso /path/to/directory/

all the files in the /path/to/directory/ will be made into a cd iso image at /path/to/file.iso

-r: preserves long filenames upto 31 characters
-o: output iso image