Howto create ISO images from Hard Drive, CD or DVD

Do you know there is a simple and efficient Linux command line program to create ISO image of a directory or filesystem or CD or DVD? This is very helpful to backup your hard drive, cd and dvd into iso images.

Create ISO from Hard Drive
To make an ISO from files on your hard drive, create a directory which holds the files you want. Then use the mkisofs command. The mkisofs package comprises of few tiny but really useful programs to deal with CD image, i.e. isodebug, isodump, isoinfo, isovfy, mkhybrid, and mkisofs.

$ mkisofs -o /tmp/hd.iso /home/jonboy60/
(This results in a file called hd.iso in folder /tmp which contains all the files and directories in /home/jonboy60/)

To create CD ISO image of directories that contain long file name or non-8.3 format (particularly if you want to burn the CD image for use in Windows system), use the -J option switch that generates Joliet directory records in addition to regular iso9660 file names. For example:

$ mkisofs -o /tmp/hd.iso -J /home/jonboy60

Create ISO from CD and DVD
To make an ISO from your CD/DVD, place the media in your drive but do not mount it. If it automounts, unmount it. Automount so you need to unmount, that’s quite easy, just choose the option unmount from the shell. Example:

$ umount /dev/cdrom
OR
$ umount /mnt/cdrom

dd is a perfect tool for copy a file, converting and formatting according to the operands. It can create exact CD-ROM ISO image.

$ dd if=/dev/cdrom of=/tmp/cd.iso
(for cdrom – if=/dev/cdrom: Read from /dev/cdrom, of=/tmp/cd.iso: write to FILE cd.iso in tmp directory)

$ dd if=/dev/scd0 of=/tmp/cd.iso
(for cdrom is scsi – if=/dev/scd0: Read from /dev/scd0, of=/tmp/cd.iso: write to FILE cd.iso in tmp directory)

$ dd if=/dev/dvd of=/tmp/dvd.iso
(for dvd – if=/dev/dvd: Read from /dev/dvd, of=/tmp/dvd.iso: write to FILE dvd.iso in tmp directory)

For more info, see the man pages for mkisofs, losetup, and dd at http://www.tldp.org.

jonboy60

I’m a Malaysian, my name is Jon Loh (jonboy60) living in Kuala Lumpur and working in Petaling Jaya, Malaysia. Jonboy60.com is a blog magazine about Linux and other open source softwares. All about to a daily jobs or real life experiences I had since the year 2002 administrating Linux and Windows server in a hosting company. Basically i will be offering Linux tips, howto, tricks, latest news and tutorial. Contact Me for Career opportunities, business offers, Linux solutions for business or home, web and email server solutions, Linux consulting and expertise requests. Email to me on jonboy60{@}gmail.com. The site I’m running is VenCouture.com – Malaysia Online Fashion Shopping Boutique, VenCouture. We sell fashion clothes, sexy lingeries, baby clothing and etc.

More PostsWebsite

Follow Me:
TwitterFacebook

Leave a Reply

Your email address will not be published. Required fields are marked *

Connect with Facebook

*


2 − 1 =

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

CommentLuv badge