Pages

Wednesday, June 13, 2012

Create ISO Images & Mount an ISO image under linux


If we need to create a iso image under linux, we can

cd /data/network/rhel
dd if=/dev/cdrom of=filename.iso bs=32k

you will get the iso image under the current directory


Mounting a ISO Image is also a simple procedure

mkdir –p /mnt/disk
mount –o loop filename.iso /mnt/disk
cd /mnt/disk

loop: a loop device is a pseudo device that makes a file accessible as a block device. These are often used for cd and Floppy disk images.