Make an ISO Image

Linux specific questions/information are gathered here. The main thrust of topics are applied to Centos/RedHat(RH)/Debian/Ubuntu/Gentoo distributives

Make an ISO Image

Postby lik » Tue Apr 20, 2010 6:20 pm

To make an ISO from your CD/DVD, place the media in your drive but do not mount it. If it automounts, unmount it.
Code: Select all
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

To make an ISO from files on your hard drive, create a directory which holds the files you want. Then use the mkisofs command.
Code: Select all
mkisofs -o /tmp/cd.iso /tmp/directory/

This results in a file called cd.iso in folder /tmp which contains all the files and directories in /tmp/directory/.

Create a mount point for the ISO:
Code: Select all
mkdir /mnt/iso

Now mount the ISO in the mount point with the following command:
Code: Select all
mount myiso.iso /mnt/iso/ -t iso9660 -o ro,loop=/dev/loop0
lik
Founder
Founder
 
Posts: 497
Joined: Wed Dec 15, 2010 3:21 am

Return to Linux specific

 


  • Related topics
    Replies
    Views
    Last post