How filesystems work together.
Really straight forward this. Create a folder to mount to - say bar:
mkdir ~/bar
Then mount the image:
sudo mount foo.iso /media/bar/ -t iso9660 -o loop
Needless to say, to unmount:
sudo umount /media/bar
The automount system is fine and dandy for DVDs and CDs but is a real pain in the arse for things like USB drives. The answer is to take a step back and use the traditional /etc/fstab method.
For example, I need to access two things from my desktop - a USB drive and my windows hard disk partition. So as root (su) I type “vi /etc/fstab” and append two new lines - one for each filesystem:
/dev/hda1 /mnt/windows vfat auto,users 0 0 /dev/sdb1 /mnt/usbkey vfat auto,users,rw,exec 0 0
The first entry column is the device to mount, in this case the first partition on the first IDE channel.
Column two is where its to be mounted, you need to create these folders.
Next column is the filesystem type - common types are iso9660 (Used on CD-ROM), vfat (better known as Fat32) and ntfs (Windows NTFS). Note that ntfs support needs to be added to the kernel by “yum install kmod-ntfs”.
The next column lists mount options. Auto makes the OS mount it at boot time. users allows users to mount it (very important!), rw mounts with read/write access (note that ntfs really needs to be ro - read only) and exec means files can be executed from the file system.
The last two columns are dump and fsck respectively, the former determines if the mount point is to be backed up and the latter whether fsck (disk checking) is run. A 0 means no and a 1 yes - leave this as 0.
Now you can create shortcuts from the desktop using “Create New/Link To Device” on the desktop and selecting the new entries.
Open a terminal (Applications→Accessories→Terminal):
sudo mkdir /mnt/ISO sudo mount -o loop image-name.iso /mnt/ISO