Saturday, April 10, 2010

Mount ISO image in Linux


Mount ISO image in Linux

A loop device is a pseudo-device that makes a file accessible as a block device. Loop devices are often used for CD ISO images and floppy disc images. They appear in the mount point directory using following commands:

1. Copy or ftp the iso image to /tmp or any other directory
2. Login as root
3. Create the directory "disk1" under /mnt directory as shown below
# mkdir -p /mnt/disk1
4. Use mount command to mount "test1.iso" image to above directory:
#mount -o loop /tmp/test1.iso /mnt/disk1
5. Change directory to see files:
# cd /mnt/disk1
# ls
6. Unmount using "umount" after finishing your job:
# cd /
# umount /mnt/disk1


Have a nice day! Techie

No comments:

Post a Comment