特殊:Badtitle/NS100:MountIso:修订间差异

来自Ubuntu中文
跳到导航跳到搜索
Wikibot留言 | 贡献
无编辑摘要
Wikibot留言 | 贡献
无编辑摘要
 
(未显示同一用户的1个中间版本)
第1行: 第1行:
{{From|https://help.ubuntu.com/community/MountIso}}
{{From|https://help.ubuntu.com/community/MountIso}}
{{Languages|UbuntuHelp:MountIso}}
{{Languages|UbuntuHelp:MountIso}}
== Introduction ==
For an introductory explanation of ISO images, instructions for creating and also burning them see [[UbuntuHelp:IsoImage|IsoImage]].
== Mounting ISO Files ==
== Mounting ISO Files ==
=== Introduction ===
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.
An [[UbuntuHelp:IsoImage|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 also possible to mount an [[UbuntuHelp:IsoImage|IsoImage]] to your disk, removing the need for a CD.
=== GUI ===
=== GUI ===
gISOMount is a utility for mounting and managing .iso images with the added capabilities of calculating md5sums and reading various volume information. It can be installed with Synaptic Package Manager or apt-get.
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 [[UbuntuHelp:Repositories/Ubuntu|Software Sources]]. Then to install this software in Ubuntu, [[UbuntuHelp:InstallingSoftware#installing-a-package|install the following package]]: '''''[[UbuntuHelp:apt:gisomount|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.  
=== Command Line ===
=== Command Line ===
The default [http://en.wikipedia.org/wiki/Mount_point mount point] for Ubuntu is under ''/media''.  
The default [[UbuntuHelp: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 an iso file to this location:'''
'''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.
<pre><nowiki>
<pre><nowiki>
sudo mkdir /media/NameOfISO
sudo mkdir /media/example</nowiki></pre>
sudo mount -o loop NameOfISO.iso /media/NameOfISO
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.
</nowiki></pre>
<pre><nowiki>
To mount the image so that it can be written to, do the following instead:
sudo mount -o loop example.iso /media/example </nowiki></pre>
To mount the image so that it can be written to, use the following mount command instead:
<pre><nowiki>
<pre><nowiki>
sudo mkdir /media/NameOfISO
sudo mount -o rw,loop example.iso /media/example
sudo mount -o rw,loop NameOfISO.iso /media/NameofISO
</nowiki></pre>
</nowiki></pre>
'''To unmount the image:'''
'''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.
<pre><nowiki>
<pre><nowiki>
sudo umount /media/NameOfISO
sudo umount /media/example</nowiki></pre>
sudo rmdir /media/NameOfISO
</nowiki></pre>
=== 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'''.
<pre><nowiki>
<pre><nowiki>
ccd2iso imagen.img imagen.iso
sudo rmdir /media/example</nowiki></pre>
</nowiki></pre>
== Manipulating Other Formats ==
* Nero image (.nrg) files can either be converted to iso using '''nrg2iso''' or mounted directly using '''mount'''.
See [[UbuntuHelp:ManageDiscImages|ManageDiscImages]].
* To mount using '''mount''': <pre><nowiki>
== See Also ==
sudo mkdir /media/cdimage
* '''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.)
sudo mount -o loop,offset=307200 myfile.nrg /media/cdimage
</nowiki></pre>
* To install '''nrg2iso''': <pre><nowiki>
sudo apt-get install nrg2iso
</nowiki></pre>
* To convert to iso using '''nrg2iso''': <pre><nowiki>
nrg2iso myfile.nrg myfile.iso
</nowiki></pre>
* Cue/Bin image (.cue/.bin) files must be converted. This can be done using '''bchunk'''.
* To install '''bchunk''': <pre><nowiki>
sudo apt-get install bchunk
</nowiki></pre>
* To convert to iso using '''bchunk''': <pre><nowiki>
bchunk myfile.bin myfile.cue myfile
</nowiki></pre>
* 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 [[UbuntuHelp:ManageDiscImages|ManageDiscImages]].
* To install '''ccd2iso''' download the package http://rarewares.org/debian/packages/unstable/ccd2iso_0.2-0.1_i386.deb. Then install the package: <pre><nowiki>
sudo dpkg -i ccd2iso_0.2-0.1_i386.deb
</nowiki></pre>
* To convert to iso using '''ccd2iso''' <pre><nowiki>
ccd2iso myfile.img myfile.iso
</nowiki></pre>
* Alcohol 120% image (.mdf) files can either be converted to iso using '''mdf2iso''' or mounted directly using '''mount'''.
* To mount using '''mount''': <pre><nowiki>
sudo mkdir /media/cdimage
sudo mount -o loop=/dev/loop0 myfile.iso /media/cdimage
</nowiki></pre>
* To install '''mdf2iso''': <pre><nowiki>
sudo apt-get install mdf2iso
</nowiki></pre>
* To convert to iso using '''mdf2iso''': <pre><nowiki>
mdf2iso myfile.mdf myfile.iso
</nowiki></pre>
* A couple of other image formats can be found on the help page [[UbuntuHelp:ManageDiscImages|ManageDiscImages]].
=== Other Options ===
* '''cdemu''' is a kernel module for mounting Cue/Bin files directly. To install it you would have to setup [[UbuntuHelp:LinuxHeader|LinuxHeader]]s, compile the module and [[UbuntuHelp:modprobe|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 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.
* [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.
----
----
[[category:CategoryDocumentation]] [[category:CategoryCleanup]]


[[category:UbuntuHelp]]
[[category:UbuntuHelp]]

2009年11月17日 (二) 19:58的最新版本

{{#ifexist: :MountIso/zh | | {{#ifexist: MountIso/zh | | {{#ifeq: {{#titleparts:MountIso|1|-1|}} | zh | | }} }} }} {{#ifeq: {{#titleparts:MountIso|1|-1|}} | zh | | }}

Introduction

For an introductory explanation of ISO images, instructions for creating and also burning them see IsoImage.

Mounting ISO Files

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.

GUI

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.

Command Line

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

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.