Tuesday, February 10, 2009

mount iso image in ubuntu without burning them to disk

Another thing that could be done in linux is that you can mount the ISO image of any CD and browse/work on it. Following are the simple commands which help you achieve it

suppose you have a downloaded kubuntu-8.10-desktop-amd64.iso, and you want to check its contents.

jayant@localhost:~/$ sudo mkdir /tmp/kubuntu
jayant@localhost:~/$ sudo mount kubuntu-8.10-desktop-amd64.iso /tmp/kubuntu -t iso9660 -o loop
jayant@localhost:~/$ ls /tmp/kubuntu/
autorun.inf casper dists install isolinux md5sum.txt pics pool preseed README.diskdefines ubuntu umenu.exe wubi.exe

Bingo, your iso image is mounted and you can easily browse thru it. You dont need to burn it now.

To unmount the image simply issue

jayant@localhost:~/$ sudo umount /tmp/kubuntu

I hope this helps.

No comments: