Thursday, October 30, 2008

Making ISO Images in Linux

Traditionally I used UltraISO to make my ISO images in Windows. As a linux power user, I needed a way to directly making my ISO images in it. Hopefully linux has a good tool called: mkisofs
My system hadn't it so I needed to install it first:
MyServer:~# aptitude install mkisofs
After that I typed this command to make an ISO file:
mkisofs -o /tmp/cd.iso /tmp/directory/
But it has a weak point! mkisofs, by default doesn't go deeply in directories. So you must force it to do by "-D" switch:
mkisofs -D -o /tmp/cd.iso /tmp/directory/
Also we can make an ISO image directly from CD, DVD or our SCSI optical drive:
dd if=/dev/dvd of=dvd.iso # for dvd
dd if=/dev/cdrom of=cd.iso # for cdrom
dd if=/dev/scd0 of=cd.iso # if cdrom is scsi
That's it :D. Thanks to Scott Granneman for his guide.

No comments: