How to mount/unmount Image (ISO) files without burning
- Read #General Notes
- To mount Image (ISO) file
sudo mkdir /media/iso
sudo modprobe loop
sudo mount file.iso /media/iso/ -t iso9660 -o loop
- To unmount Image (ISO) file
sudo umount /media/iso/
sudo mkdir /media/iso
sudo modprobe loop
sudo mount file.iso /media/iso/ -t iso9660 -o loop
sudo umount /media/iso/
I recently found a Nautilus shell script on an older post to the forum that could mount .iso files, but it couldn't handle spaces in filenames or mount more than one file at once. After some struggle I've come up with these scripts which handle multiple concurrent mounts and filenames with spaces. You'll want to save these under ~/.gnome2/nautilus-scripts/ and make them executable:
Mount:
| |
|
|
Unmount:
| |
|
|
To use either one just right-click on the .iso file and use scripts -> mount.
Below you will find Nautilus scripts that allow you to mount cdrom images in .iso, .nrg or .bin format.
You can mount multiple .iso or .nrg files, and up to 8 .bin files.
A shortcut is placed on your desktop for each mounted image for easy access.
Be sure to complete step 7, otherwise your new Nautilus scripts will not be available for use.
Most of the work was already done by the author of the Mount-ISO service menu for KDE.
1. Add the universe repository: http://easylinux.info/wiki/Ubuntu#How_to_add_extra_repositories
2. In order to mount .bin files, you need to install cdemu.
cdemu requires that you have the correct linux-headers package installed, so open a terminal, and choose the option that corresponds to your system.
Intel Pentium:
| |
| sudo apt-get install linux-686 linux-image-686 linux-headers-686 linux-restricted-formats-686 |
AMD K Series (Duron, Athlon, Sempron):
| |
| sudo apt-get install linux-k7 linux-image-k7 linux-headers-k7 linux-restricted-formats-k7 |
Older legacy PC (Intel Pentium Pro or 486):
| |
| sudo apt-get install linux-386 linux-image-386 linux-headers-386 linux-restricted-formats-386 |
Reboot to take advantage of the linux-headers, you've just installed.
3. Install cdemu.
Paste the following code into a text file and save the file to your desktop:
| |
|
|
Open a terminal:
| |
| cd ~/Desktop |
Wait for the installation to finish, then enable the cdemu module:
| |
| sudo gedit /etc/modules |
Add this line to the end of the /etc/modules file:
| |
| cdemu |
Save the file.
4. Mount-CDImage Nautilus script.
Paste the following code into a text editor and save the file under your nautilus-scripts directory:
| |
|
|
5. UnMount-CDImage Nautilus script.
Paste the following code into a text editor and save the file under your nautilus-scripts directory:
| |
|
|
6. Create-CUESheet Nautilus script.
This Nautilus script creates a .cue file from a .bin file, if the .cue is missing. A .cue file is required to mount a .bin file. This only works for basic .bin files. If your .bin file happens to be a multi-track CD image, you will need specialized software to create a more advanced .cue file.
Paste the following code into a text editor, and save the file under your nautilus-scripts directory:
| |
|
|
7. Open a terminal:
| |
| sudo chmod 700 ~/.gnome2/nautilus-scripts/* |
sudo apt-get install cvs scons build-essential libgtk2.0-dev libglade2-dev zlib1g-dev libbz2-dev
sudo apt-get install libglitz1-dev
cvs -d:pserver:anonymous@cvs.linuxdcpp.berlios.de:/cvsroot/linuxdcpp login
[hit enter when prompted for the password]
cvs -z3 -d:pserver:anonymous@cvs.linuxdcpp.berlios.de:/cvsroot/linuxdcpp co linuxdcpp
cd linuxdcpp
scons release=1 PREFIX=/usr/local
sudo scons install
linuxdcpp
cd /path/to/source/dir
cvs update -d
cd /path/to/source/dir
sudo scons -c install