Size: 3779
Comment:
|
← Revision 33 as of 2012-11-12 22:05:40 ⇥
Size: 4861
Comment: Clarify administrator role in use of fuseiso
|
Deletions are marked like this. | Additions are marked like this. |
Line 1: | Line 1: |
||<tablestyle="float:right; font-size: 0.9em; width:40%; background:#F1F1ED; margin: 0 0 1em 1em;" style="padding:0.5em;">'''Contents'''[[BR]][[TableOfContents(2)]]|| | ||<tablestyle="float:right; font-size: 0.9em; width:40%; background:#F1F1ED; margin: 0 0 1em 1em;" style="padding:0.5em;"><<TableOfContents(2)>>|| ## Work in progress, eventually planning on merger with ManageDiscImages to cull overlap resulting in deletion of this page. |
Line 3: | Line 4: |
= Mounting ISO Files = | = Introduction = |
Line 5: | Line 6: |
== Introduction == | For an introductory explanation of ISO images, instructions for creating and also burning them see [[IsoImage]]. |
Line 7: | Line 8: |
An IsoImage is an image of a CD or DVD disk that can be stored on your computer and used to write to a new disk. It is a simple process to mount an iso image under Ubuntu. | The mounting of images is a very useful operation. It can allow a user to easily access data on an ISO without the need to burn and waste a disc. It also is much faster when dealing with the need to manage many images at once. These operations can be performed from a graphical user interface (GUI) or from a standard Terminal. |
Line 9: | Line 10: |
== GUI == | = Graphical Interface = gISOMount is a graphical utility for mounting and managing ISO images with the added ability to calculate md5sums and read volume information. |
Line 11: | Line 13: |
You can install the GUI called gIsoMount using ["Synaptic"]. | To get gISOMount ensure '''Universe''' section of the Ubuntu repositories is enabled in your [[Repositories/Ubuntu|Software Sources]]. Then to install this software in Ubuntu, [[InstallingSoftware#installing-a-package|install the following package]]: '''''[[apt:gisomount|gisomount]]'''''. |
Line 13: | Line 15: |
== Command Line Instructions == | The program can then be launched from '''Applications''' -> '''System Tools''' -> '''gISOMountUsage'''. |
Line 15: | Line 17: |
The default [http://en.wikipedia.org/wiki/Mount_point mount point] under linux is under ''/media''. To mount an iso file here do the following: | Usage is straightforward, simply browse to an ISO image on your hard drive and then either mount, calculate the md5 for comparison with a reference, or burn it to a disc. Additionally, once an image is select, the program can read off volume information in the pane. A favourites functionality allows commonly used images to be pulled up quickly. |
Line 17: | Line 19: |
{{{ sudo mkdir /media/cdimage sudo mount -o loop myfile.iso /media/cdimage |
= From the Command Line (Normal Superuser Mount) = The default [[Mount|mount point]] for Ubuntu is under ''/media''. It is recommended a user create subdirectories to this folder for mounting to keep things organized. There is no physical limitation preventing mounting to any other directory on a drive. '''To Mount ''' <<BR>> To mount the image to a directory is a simple two step procedure. Sudo is required because we are working in directories owned by root. First make a directory with a name that identifies the contents of the ISO, usually its name. {{{ sudo mkdir /media/example}}} Then mount the file with the following command to the newly created directory. In the following example, it is assumed that NameOfISO.iso is in the users working directory, if not replace with the absolute path to the file. {{{ sudo mount -o loop example.iso /media/example }}} To mount the image so that it can be written to, use the following mount command instead: {{{ sudo mount -o rw,loop example.iso /media/example |
Line 22: | Line 37: |
Where myfile.iso is replaced with the file you want to mount. To mount the image so that it can be written to do the following instead: {{{ sudo mkdir /media/cdimage sudo mount -o rw,loop myfile.iso /media/cdimage }}} To unmount the image do this: {{{ sudo umount /media/cdimage rmdir /media/cdimage }}} == Convert Other Formats To ISO == Other formats of CD or DVD images can be converted to iso and then mounted as above. * .img files can be converted to iso using '''ccd2iso'''. |
'''To Unmount ''' <<BR>> Umounting media is simply the reverse. First unmount the image, then remove the directory it was mounted to. Unmounting is universal, it doesn't matter what image was mounted it can be unmounted this way. |
Line 44: | Line 40: |
ccd2iso imagen.img imagen.iso }}}} * Nero image (.nrg) files can either be converted to iso using '''nrg2iso''' or mounted directly using '''mount'''. * To mount using '''mount''': {{{ sudo mkdir /media/cdimage sudo mount -o loop,offset=307200 myfile.nrg /media/cdimage }}} * To install '''nrg2iso''': {{{ sudo apt-get install nrg2iso }}} * To convert to iso using '''nrg2iso''': {{{ nrg2iso myfile.nrg myfile.iso }}} * Cue/Bin image (.cue/.bin) files must be converted. This can be done using '''bchunk'''. * To install '''bchunk''': {{{ sudo apt-get install bchunk }}} * To convert to iso using '''bchunk''': {{{ bchunk myfile.bin myfile.cue myfile }}} * Clone CD (.ccd/.img/.sub) files must be converted. This can be done using '''ccd2iso'''. The package for this program is ''extremely unstable'' and has been taken from the Ubuntu forums http://www.ubuntuforums.org. It is also only packaged for Pentium (i386) systems. You can also compile from the source using the guide on ManageDiscImages. * To install '''ccd2iso''' download the package http://rarewares.org/debian/packages/unstable/ccd2iso_0.2-0.1_i386.deb. Then install the package: {{{ sudo dpkg -i ccd2iso_0.2-0.1_i386.deb }}} * To convert to iso using '''ccd2iso''' {{{ ccd2iso myfile.img myfile.iso }}} * Alcohol 120% image (.mdf) files can either be converted to iso using '''mdf2iso''' or mounted directly using '''mount'''. * To mount using '''mount''': {{{ sudo mkdir /media/cdimage sudo mount -o loop=/dev/loop0 myfile.iso /media/cdimage }}} * To install '''mdf2iso''': {{{ sudo apt-get install mdf2iso }}} * To convert to iso using '''mdf2iso''': {{{ mdf2iso myfile.mdf myfile.iso }}} * A couple of other image formats can be found on the help page ManageDiscImages. == Other Options == * '''cdemu''' is a kernel module for mounting Cue/Bin files directly. To install it you would have to setup LinuxHeader s, compile the module and ["modprobe"] it. This is out of the scope of this page. There is a script under development in the Ubuntu forums for automating the building of '''cdemu''' http://www.ubuntuforums.org/showthread.php?t=149963. (Use this at your own risk.) |
sudo umount /media/example}}} {{{ sudo rmdir /media/example}}} |
Line 94: | Line 45: |
* [http://www.debianadmin.com/mount-and-unmout-iso-images-without-burning-them.html "Mount and Unmount ISO images without burning them"] has a nice step-by-step explaination (with screenshots) showing how to mount an unmount ISO images. | = From the Command Line (As a Regular User) = The [[FuseIso|fuseiso]] program, along with the FUSE package, allows you to mount an ISO image as a regular user. You still need administrator rights to set it up, but you don't need to enter your password every time you use it. First you must install the fuseiso package ('''''[[apt:fuseiso|install fuseiso now]]'''''): {{{ sudo apt-get install fuseiso}}} See [[FuseIso]] for a more detailed explanation of fuseiso. This also describes how to configure the permissions on fuseiso. To make the permissions permanent, you must add your userid to the fuse group, and add fuse to the /etc/modules file (both these actions require sudo access, but this is a one-off). '''To Mount ''' <<BR>> When you use FUSE (via fuseiso in this case) to mount a filesystem, the logged in user must have write access to the directory on which the filesystem is to be mounted. For instance, you could create a new, empty directory in your home directory. {{{ cd ~ mkdir example fuseiso example.iso example}}} '''To Unmount ''' <<BR>> {{{ fusermount -u example}}} |
Line 98: | Line 68: |
CategoryDocumentation CategoryCleanup | = Manipulating Other Formats = See [[ManageDiscImages]]. = See Also = * '''cdemu''' is a kernel module for mounting Cue/Bin files directly. To install it you would have to setup linux headers, compile the module and modprobe it in. This is out of the scope of this page. There is a script under development in the Ubuntu forums for automating the building of '''cdemu''' [[http://www.ubuntuforums.org/showthread.php?t=149963|Located Here]] (Use this at your own risk.) * [[http://www.debianadmin.com/mount-and-unmout-iso-images-without-burning-them.html|"Mount and Unmount ISO images without burning them"]] has a nice step-by-step explanation (with screen shots) showing how to mount and unmount ISO images. |
Introduction
For an introductory explanation of ISO images, instructions for creating and also burning them see IsoImage.
The mounting of images is a very useful operation. It can allow a user to easily access data on an ISO without the need to burn and waste a disc. It also is much faster when dealing with the need to manage many images at once. These operations can be performed from a graphical user interface (GUI) or from a standard Terminal.
Graphical Interface
gISOMount is a graphical utility for mounting and managing ISO images with the added ability to calculate md5sums and read volume information.
To get gISOMount ensure Universe section of the Ubuntu repositories is enabled in your Software Sources. Then to install this software in Ubuntu, install the following package: gisomount.
The program can then be launched from Applications -> System Tools -> gISOMountUsage.
Usage is straightforward, simply browse to an ISO image on your hard drive and then either mount, calculate the md5 for comparison with a reference, or burn it to a disc. Additionally, once an image is select, the program can read off volume information in the pane. A favourites functionality allows commonly used images to be pulled up quickly.
From the Command Line (Normal Superuser Mount)
The default mount point for Ubuntu is under /media. It is recommended a user create subdirectories to this folder for mounting to keep things organized. There is no physical limitation preventing mounting to any other directory on a drive.
To Mount
To mount the image to a directory is a simple two step procedure. Sudo is required because we are working in directories owned by root. First make a directory with a name that identifies the contents of the ISO, usually its name.
sudo mkdir /media/example
Then mount the file with the following command to the newly created directory. In the following example, it is assumed that NameOfISO.iso is in the users working directory, if not replace with the absolute path to the file.
sudo mount -o loop example.iso /media/example
To mount the image so that it can be written to, use the following mount command instead:
sudo mount -o rw,loop example.iso /media/example
To Unmount
Umounting media is simply the reverse. First unmount the image, then remove the directory it was mounted to. Unmounting is universal, it doesn't matter what image was mounted it can be unmounted this way.
sudo umount /media/example
sudo rmdir /media/example
From the Command Line (As a Regular User)
The fuseiso program, along with the FUSE package, allows you to mount an ISO image as a regular user. You still need administrator rights to set it up, but you don't need to enter your password every time you use it.
First you must install the fuseiso package (install fuseiso now):
sudo apt-get install fuseiso
See FuseIso for a more detailed explanation of fuseiso. This also describes how to configure the permissions on fuseiso. To make the permissions permanent, you must add your userid to the fuse group, and add fuse to the /etc/modules file (both these actions require sudo access, but this is a one-off).
To Mount
When you use FUSE (via fuseiso in this case) to mount a filesystem, the logged in user must have write access to the directory on which the filesystem is to be mounted. For instance, you could create a new, empty directory in your home directory.
cd ~ mkdir example fuseiso example.iso example
To Unmount
fusermount -u example
Manipulating Other Formats
See ManageDiscImages.
See Also
cdemu is a kernel module for mounting Cue/Bin files directly. To install it you would have to setup linux headers, compile the module and modprobe it in. This is out of the scope of this page. There is a script under development in the Ubuntu forums for automating the building of cdemu Located Here (Use this at your own risk.)
"Mount and Unmount ISO images without burning them" has a nice step-by-step explanation (with screen shots) showing how to mount and unmount ISO images.