Mount an .iso image in Ubuntu
Posted by Sharar Ravitz in Linux on Monday, December 24, 2007
Ever want to mount an .iso image permanently in Linux? Got a program installed under wine that always searches for the disk? A solution:
First, create a directory which will be the mount point for the .iso image.
sudo mkdir /media/ISO/
If you've already ripped your .iso image - a tip. The file name should be in all CAPS - it may not work otherwise. Rename if necessary - or rip your image now being sure the file name is in all CAPS.
Now mount the image to the directory created earlier using the mount command. Here's an example.
sudo mount -o loop /home/user/FILE-NAME.iso /media/ISO/
Another tip: if you are in fact mounting a program to run under wine - you may need to create a symbolic link between your mount point - and wine:
sudo ln -s /media/ISO ~/.wine/dosdevices/m:
The final step is to edit the /etc/fstab file so that your .iso will automatically mount on start up. Type the command:
sudo gedit /etc/fstab
It will open the file. Add this line (edit as necessary for your .iso's directory location - and mount point location) to the bottom.
/home/user/FILE-NAME.iso /media/ISO/ iso9660 ro,loop,auto 0 0
Save and close the file. The .iso should now be automatically mounted on start up.
This entry was posted on Monday, December 24, 2007 at 1:10 AM and is filed under Linux. You can follow any responses to this entry through the RSS 2.0. You can leave a response.
# by Anonymous - October 26, 2010 at 1:44 AM
thank you!
# by Anonymous - January 27, 2012 at 3:13 PM
Super useful post. Thank you very much!
Post a Comment