Make an ISO file from Folders or CDROM drive in Linux

(0 votes, average 0 out of 5)

If you want to create an ISO image of a CD/DVD or a folder and its contents for archive purposes, copies, easy mounting, burning out, and other purposes, Linux comes with two quick and easy to use command line utilities to make this happen dd and mkisofs.

First you will need to open a terminal ("CTRL + ALT + T" in Ubuntu) and type in the following commands for the operation you want to accomplish. 

CD/DVD Drive:

Type: sudo umount /dev/cdrom to unmount your CDRom drive from the system.

Then type: dd if=/dev/cdrom of={what you want to call the file name here}.iso bs=1024

This will copy the contents of the CDRom drive to an ISO file in your Home directory under your username.

Then you will want to remount your drive.  In recent versions of Ubuntu, you can go to the Places menu and click on CDROM to mount automatically.  If you can't automatically mount you may need to execute the following commands:

sudo mkdir /media/CDROM    #Makes a new folder called CDROM under /media folder.  Do this command if you don't have a CDROM or similar folder under media that you can use else skip this step.

sudo mount /dev/cdrom /media/CDROM    #Mount your CDROM drive to your /media/CDROM folder so that you can start to read from the drive again.

 

Folders:

Type: mkisofs -r -o {what you want to call the file name here}.iso /{Location of your folder here/

You should now have a xxxxxx.iso file in your Home director under your username.  This file can be mounted through the command line, a helper application, burned as an ISO, stored, etecetera.

 

Congratulations! You made yourself an ISO file! 

Partner Links:
 
Related Articles

» Understanding File and Folder Permissions (POSIX) on Linux and Mac OS X (using chmod)

Linux and Mac OS X both use a -compatible type of filesystem. This has to do with the way files are accessed by their owner and others. Files and folders have permissions for 3 different types of users:Owner: this is the user who owns the file or folderGroup: this is the permissions for any user in the group that the file belongs toOthers: this is the permissions for all other users who don't fall into one of the two above categoriesFor each of these types of users, there are 3 different...

» A Brief Introduction to Grep

One of the most useful features of operating from a linux terminal is being able to easily perform functions like grep, which searches a group of files for a matching string.  It can return lines with the matching expression, lines without the matching expression, the number of lines matched, and more.  This will serve as a basic tutorial and should cover most usage models; grep is an extremely powerful tool.  Consult the grep manual for a much more detailed description....

» How to Show Filename in Title Bar in Emacs

Adding the following snippet into your .emacs file (typically located in your home directory) will cause the filename of the current buffer to appear in the title bar.  This is a quick fix that can make managing multiple emacs windows much easier. ;; Show filename in title bar(setq frame-title-format "%b - Emacs")