特殊:Badtitle/NS100:ManageDiscImages:修订间差异
小无编辑摘要 |
小无编辑摘要 |
||
第1行: | 第1行: | ||
{{From|https://help.ubuntu.com/community/ManageDiscImages}} | {{From|https://help.ubuntu.com/community/ManageDiscImages}} | ||
{{Languages|UbuntuHelp:ManageDiscImages}} | {{Languages|UbuntuHelp:ManageDiscImages}} | ||
== Convert CloneCD Images to ISO == | == Convert CloneCD Images to ISO == | ||
=== Installation === | === Installation === | ||
Download the latest version from [http://sourceforge.net/projects/ccd2iso/ ccd2iso homepage] | Download the latest version from [http://sourceforge.net/projects/ccd2iso/ ccd2iso homepage] | ||
extract the archive files | extract the archive files | ||
<pre><nowiki> | <pre><nowiki> | ||
tar xvfz ccd2iso-x.x.tar.gz | tar xvfz ccd2iso-x.x.tar.gz | ||
</nowiki></pre> | </nowiki></pre> | ||
enter the new directory | enter the new directory | ||
<pre><nowiki> | <pre><nowiki> | ||
cd ccd2iso | cd ccd2iso | ||
</nowiki></pre> | </nowiki></pre> | ||
You need aclocal-1.6, therefore we have to install automake1.6 | You need aclocal-1.6, therefore we have to install automake1.6 | ||
<pre><nowiki> | <pre><nowiki> | ||
sudo apt-get install automake1.6 | sudo apt-get install automake1.6 | ||
</nowiki></pre> | </nowiki></pre> | ||
configure and compile it | configure and compile it | ||
<pre><nowiki> | <pre><nowiki> | ||
第26行: | 第21行: | ||
make | make | ||
</nowiki></pre> | </nowiki></pre> | ||
install it | install it | ||
<pre><nowiki> | <pre><nowiki> | ||
sudo make install | sudo make install | ||
</nowiki></pre> | </nowiki></pre> | ||
or to install it via a deb file (CheckInstall) | or to install it via a deb file (CheckInstall) | ||
<pre><nowiki> | <pre><nowiki> | ||
sudo make checkinstall | sudo make checkinstall | ||
</nowiki></pre> | </nowiki></pre> | ||
=== Usage === | === Usage === | ||
Normally you would have 3 file from CloneCD image, they are .ccd, .img, and .sub | Normally you would have 3 file from CloneCD image, they are .ccd, .img, and .sub | ||
general usage: | general usage: | ||
<pre><nowiki> | <pre><nowiki> | ||
ccd2iso <.img filename> <.iso filename> | ccd2iso <.img filename> <.iso filename> | ||
</nowiki></pre> | </nowiki></pre> | ||
for example: | for example: | ||
<pre><nowiki> | <pre><nowiki> | ||
ccd2iso myimage.img myimage.iso | ccd2iso myimage.img myimage.iso | ||
</nowiki></pre> | </nowiki></pre> | ||
== Convert BIN/CUE Images to ISO == | == Convert BIN/CUE Images to ISO == | ||
=== Installation === | === Installation === | ||
第55行: | 第44行: | ||
sudo apt-get install bchunk | sudo apt-get install bchunk | ||
</nowiki></pre> | </nowiki></pre> | ||
=== Usage === | === Usage === | ||
As the name implies, a BIN/CUE CD image has two files. | As the name implies, a BIN/CUE CD image has two files. | ||
BIN being a binary of the raw CD data, and CUE being an ASCII file of CD layout. | BIN being a binary of the raw CD data, and CUE being an ASCII file of CD layout. | ||
general usage: | general usage: | ||
<pre><nowiki> | <pre><nowiki> | ||
bchunk <image.bin> <image.cue> <basename> | bchunk <image.bin> <image.cue> <basename> | ||
</nowiki></pre> | </nowiki></pre> | ||
for example: | for example: | ||
<pre><nowiki> | <pre><nowiki> | ||
第70行: | 第56行: | ||
</nowiki></pre> | </nowiki></pre> | ||
Where basename(myimage) is myimage.iso of the produced file. | Where basename(myimage) is myimage.iso of the produced file. | ||
== Convert DMG (compressed z-lib) to ISO == | == Convert DMG (compressed z-lib) to ISO == | ||
=== Installation === | === Installation === | ||
第78行: | 第63行: | ||
sudo mv dmg2iso.pl /usr/local/bin/ | sudo mv dmg2iso.pl /usr/local/bin/ | ||
</nowiki></pre> | </nowiki></pre> | ||
=== Usage === | === Usage === | ||
dmg2iso.pl <filename.dmg> <filename.iso> | dmg2iso.pl <filename.dmg> <filename.iso> | ||
=== Example === | === Example === | ||
dmg2iso.pl disc1.dmg disc1.iso | dmg2iso.pl disc1.dmg disc1.iso | ||
== Mount ISO Files == | == Mount ISO Files == | ||
Create the directory for mount point: | Create the directory for mount point: | ||
第90行: | 第72行: | ||
sudo mkdir –p /mnt/iso | sudo mkdir –p /mnt/iso | ||
</nowiki></pre> | </nowiki></pre> | ||
Use mount command as follows (assumes that your ISO file name is disk1.iso): | Use mount command as follows (assumes that your ISO file name is disk1.iso): | ||
<pre><nowiki> | <pre><nowiki> | ||
sudo mount -o loop disk1.iso /mnt/iso | sudo mount -o loop disk1.iso /mnt/iso | ||
</nowiki></pre> | </nowiki></pre> | ||
Now your ISO is mounted on <code><nowiki>/mnt/iso/</nowiki></code> | Now your ISO is mounted on <code><nowiki>/mnt/iso/</nowiki></code> | ||
== Integrate Disk Image Mounting/Unmounting into Gnome (Nautilus) == | == Integrate Disk Image Mounting/Unmounting into Gnome (Nautilus) == | ||
The following will allow you to mount disk images (.iso, .img, .bin, .nrg, .mdf) by simply right clicking on the image file and selecting "Mount Disk Image". This solution uses fuse, so it does not require sudo rights or a password! | The following will allow you to mount disk images (.iso, .img, .bin, .nrg, .mdf) by simply right clicking on the image file and selecting "Mount Disk Image". This solution uses fuse, so it does not require sudo rights or a password! | ||
The mounted image will be linked on the desktop, in the Places menu, and on the Places Bar in Nautilus; similar to how removable devices (CD/DVD/USB) appear. | The mounted image will be linked on the desktop, in the Places menu, and on the Places Bar in Nautilus; similar to how removable devices (CD/DVD/USB) appear. | ||
To unmount an image, right click it's desktop icon and select "Unmount Disk Image". | To unmount an image, right click it's desktop icon and select "Unmount Disk Image". | ||
All disk image mounts will be removed upon a restart of gnome. | All disk image mounts will be removed upon a restart of gnome. | ||
*NOTE: Only disk images that are part of the system hierarchy are supported, images on smb://, nfs://, etc. are not supported unless those remote file systems are mounted to a local folder. | *NOTE: Only disk images that are part of the system hierarchy are supported, images on smb://, nfs://, etc. are not supported unless those remote file systems are mounted to a local folder. | ||
Install fuseiso and nautilus-actions package | Install fuseiso and nautilus-actions package | ||
<pre><nowiki> | <pre><nowiki> | ||
sudo apt-get install fuseiso nautilus-actions | sudo apt-get install fuseiso nautilus-actions | ||
</nowiki></pre> | </nowiki></pre> | ||
Add permitted users to the fuse group (run once for each user who should be able to mount using fuse). | Add permitted users to the fuse group (run once for each user who should be able to mount using fuse). | ||
<pre><nowiki> | <pre><nowiki> | ||
第121行: | 第92行: | ||
</nowiki></pre> | </nowiki></pre> | ||
Logout and back in to have the current logged in user get the fuse group permissions. | Logout and back in to have the current logged in user get the fuse group permissions. | ||
Download the userisomount.sh script from [http://thefrys.com/userisomount.sh here]. Copy the script to /usr/local/bin/ and make it executable. | Download the userisomount.sh script from [http://thefrys.com/userisomount.sh here]. Copy the script to /usr/local/bin/ and make it executable. | ||
<pre><nowiki> | <pre><nowiki> | ||
第129行: | 第99行: | ||
</nowiki></pre> | </nowiki></pre> | ||
*note: ~/Desktop is the default firefox download location. If you saved the file elsewhere, adjust as necessary. | *note: ~/Desktop is the default firefox download location. If you saved the file elsewhere, adjust as necessary. | ||
Download the Nautilus Actions Schemas for [http://thefrys.com/mount.schemas MOUNTING] and [http://thefrys.com/umount.schemas UNMOUNTING] disk images from within nautilus. Import these into the Nautilus Actions Extension, by opening (System Menu -> Preferences -> Nautilus Actions Configuration) and clicking Import/Export. | Download the Nautilus Actions Schemas for [http://thefrys.com/mount.schemas MOUNTING] and [http://thefrys.com/umount.schemas UNMOUNTING] disk images from within nautilus. Import these into the Nautilus Actions Extension, by opening (System Menu -> Preferences -> Nautilus Actions Configuration) and clicking Import/Export. | ||
Create an entry named "Clean Disk Image Mounts" in (System Menu -> Preferences -> Sessions -> Startup Programs) that runs the following command at startup. (Place the command below in the command box) | Create an entry named "Clean Disk Image Mounts" in (System Menu -> Preferences -> Sessions -> Startup Programs) that runs the following command at startup. (Place the command below in the command box) | ||
<pre><nowiki> | <pre><nowiki> | ||
/usr/local/bin/userisomount.sh clean | /usr/local/bin/userisomount.sh clean | ||
</nowiki></pre> | </nowiki></pre> | ||
By default, the images are mounted in the user's home directory in a hidden folder called ".mymounts", and the desktop icon used will be gtk-dev-removable from the current icon theme. Both of these parameters can be modified at the top of the /usr/local/bin/userisomount.sh script. | By default, the images are mounted in the user's home directory in a hidden folder called ".mymounts", and the desktop icon used will be gtk-dev-removable from the current icon theme. Both of these parameters can be modified at the top of the /usr/local/bin/userisomount.sh script. | ||
To quickly unmount all of your mounted images, you can press Alt+F2 and execute: | To quickly unmount all of your mounted images, you can press Alt+F2 and execute: | ||
<pre><nowiki> | <pre><nowiki> | ||
userisomount.sh clean | userisomount.sh clean | ||
</nowiki></pre> | </nowiki></pre> | ||
=== Troubleshooting === | === Troubleshooting === | ||
<pre><nowiki> | <pre><nowiki> | ||
cat /etc/group |grep fuse | cat /etc/group |grep fuse | ||
</nowiki></pre> | </nowiki></pre> | ||
should return something like: "fuse:x:###:yourusername". If not, rerun the usermod command above. | should return something like: "fuse:x:###:yourusername". If not, rerun the usermod command above. | ||
<pre><nowiki> | <pre><nowiki> | ||
ls -al ~ |grep .mymounts | ls -al ~ |grep .mymounts | ||
第159行: | 第121行: | ||
sudo userisomount.sh clean ; sudo rm -r ~/.mymounts ; sudo chmod username:username ~/.gtk-bookmarks | sudo userisomount.sh clean ; sudo rm -r ~/.mymounts ; sudo chmod username:username ~/.gtk-bookmarks | ||
</nowiki></pre> | </nowiki></pre> | ||
---- | ---- | ||
[[category:CategoryDocumentation]] [[category:CategoryCleanup]] | [[category:CategoryDocumentation]] [[category:CategoryCleanup]] | ||
[[category:UbuntuHelp]] | [[category:UbuntuHelp]] |
2007年11月30日 (五) 20:12的版本
文章出处: |
{{#if: | {{{2}}} | https://help.ubuntu.com/community/ManageDiscImages }} |
点击翻译: |
English {{#ifexist: {{#if: UbuntuHelp:ManageDiscImages | UbuntuHelp:ManageDiscImages | {{#if: | :}}ManageDiscImages}}/af | • {{#if: UbuntuHelp:ManageDiscImages|Afrikaans| [[::ManageDiscImages/af|Afrikaans]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ManageDiscImages | UbuntuHelp:ManageDiscImages | {{#if: | :}}ManageDiscImages}}/ar | • {{#if: UbuntuHelp:ManageDiscImages|العربية| [[::ManageDiscImages/ar|العربية]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ManageDiscImages | UbuntuHelp:ManageDiscImages | {{#if: | :}}ManageDiscImages}}/az | • {{#if: UbuntuHelp:ManageDiscImages|azərbaycanca| [[::ManageDiscImages/az|azərbaycanca]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ManageDiscImages | UbuntuHelp:ManageDiscImages | {{#if: | :}}ManageDiscImages}}/bcc | • {{#if: UbuntuHelp:ManageDiscImages|جهلسری بلوچی| [[::ManageDiscImages/bcc|جهلسری بلوچی]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ManageDiscImages | UbuntuHelp:ManageDiscImages | {{#if: | :}}ManageDiscImages}}/bg | • {{#if: UbuntuHelp:ManageDiscImages|български| [[::ManageDiscImages/bg|български]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ManageDiscImages | UbuntuHelp:ManageDiscImages | {{#if: | :}}ManageDiscImages}}/br | • {{#if: UbuntuHelp:ManageDiscImages|brezhoneg| [[::ManageDiscImages/br|brezhoneg]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ManageDiscImages | UbuntuHelp:ManageDiscImages | {{#if: | :}}ManageDiscImages}}/ca | • {{#if: UbuntuHelp:ManageDiscImages|català| [[::ManageDiscImages/ca|català]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ManageDiscImages | UbuntuHelp:ManageDiscImages | {{#if: | :}}ManageDiscImages}}/cs | • {{#if: UbuntuHelp:ManageDiscImages|čeština| [[::ManageDiscImages/cs|čeština]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ManageDiscImages | UbuntuHelp:ManageDiscImages | {{#if: | :}}ManageDiscImages}}/de | • {{#if: UbuntuHelp:ManageDiscImages|Deutsch| [[::ManageDiscImages/de|Deutsch]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ManageDiscImages | UbuntuHelp:ManageDiscImages | {{#if: | :}}ManageDiscImages}}/el | • {{#if: UbuntuHelp:ManageDiscImages|Ελληνικά| [[::ManageDiscImages/el|Ελληνικά]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ManageDiscImages | UbuntuHelp:ManageDiscImages | {{#if: | :}}ManageDiscImages}}/es | • {{#if: UbuntuHelp:ManageDiscImages|español| [[::ManageDiscImages/es|español]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ManageDiscImages | UbuntuHelp:ManageDiscImages | {{#if: | :}}ManageDiscImages}}/fa | • {{#if: UbuntuHelp:ManageDiscImages|فارسی| [[::ManageDiscImages/fa|فارسی]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ManageDiscImages | UbuntuHelp:ManageDiscImages | {{#if: | :}}ManageDiscImages}}/fi | • {{#if: UbuntuHelp:ManageDiscImages|suomi| [[::ManageDiscImages/fi|suomi]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ManageDiscImages | UbuntuHelp:ManageDiscImages | {{#if: | :}}ManageDiscImages}}/fr | • {{#if: UbuntuHelp:ManageDiscImages|français| [[::ManageDiscImages/fr|français]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ManageDiscImages | UbuntuHelp:ManageDiscImages | {{#if: | :}}ManageDiscImages}}/gu | • {{#if: UbuntuHelp:ManageDiscImages|ગુજરાતી| [[::ManageDiscImages/gu|ગુજરાતી]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ManageDiscImages | UbuntuHelp:ManageDiscImages | {{#if: | :}}ManageDiscImages}}/he | • {{#if: UbuntuHelp:ManageDiscImages|עברית| [[::ManageDiscImages/he|עברית]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ManageDiscImages | UbuntuHelp:ManageDiscImages | {{#if: | :}}ManageDiscImages}}/hu | • {{#if: UbuntuHelp:ManageDiscImages|magyar| [[::ManageDiscImages/hu|magyar]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ManageDiscImages | UbuntuHelp:ManageDiscImages | {{#if: | :}}ManageDiscImages}}/id | • {{#if: UbuntuHelp:ManageDiscImages|Bahasa Indonesia| [[::ManageDiscImages/id|Bahasa Indonesia]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ManageDiscImages | UbuntuHelp:ManageDiscImages | {{#if: | :}}ManageDiscImages}}/it | • {{#if: UbuntuHelp:ManageDiscImages|italiano| [[::ManageDiscImages/it|italiano]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ManageDiscImages | UbuntuHelp:ManageDiscImages | {{#if: | :}}ManageDiscImages}}/ja | • {{#if: UbuntuHelp:ManageDiscImages|日本語| [[::ManageDiscImages/ja|日本語]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ManageDiscImages | UbuntuHelp:ManageDiscImages | {{#if: | :}}ManageDiscImages}}/ko | • {{#if: UbuntuHelp:ManageDiscImages|한국어| [[::ManageDiscImages/ko|한국어]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ManageDiscImages | UbuntuHelp:ManageDiscImages | {{#if: | :}}ManageDiscImages}}/ksh | • {{#if: UbuntuHelp:ManageDiscImages|Ripoarisch| [[::ManageDiscImages/ksh|Ripoarisch]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ManageDiscImages | UbuntuHelp:ManageDiscImages | {{#if: | :}}ManageDiscImages}}/mr | • {{#if: UbuntuHelp:ManageDiscImages|मराठी| [[::ManageDiscImages/mr|मराठी]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ManageDiscImages | UbuntuHelp:ManageDiscImages | {{#if: | :}}ManageDiscImages}}/ms | • {{#if: UbuntuHelp:ManageDiscImages|Bahasa Melayu| [[::ManageDiscImages/ms|Bahasa Melayu]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ManageDiscImages | UbuntuHelp:ManageDiscImages | {{#if: | :}}ManageDiscImages}}/nl | • {{#if: UbuntuHelp:ManageDiscImages|Nederlands| [[::ManageDiscImages/nl|Nederlands]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ManageDiscImages | UbuntuHelp:ManageDiscImages | {{#if: | :}}ManageDiscImages}}/no | • {{#if: UbuntuHelp:ManageDiscImages|norsk| [[::ManageDiscImages/no|norsk]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ManageDiscImages | UbuntuHelp:ManageDiscImages | {{#if: | :}}ManageDiscImages}}/oc | • {{#if: UbuntuHelp:ManageDiscImages|occitan| [[::ManageDiscImages/oc|occitan]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ManageDiscImages | UbuntuHelp:ManageDiscImages | {{#if: | :}}ManageDiscImages}}/pl | • {{#if: UbuntuHelp:ManageDiscImages|polski| [[::ManageDiscImages/pl|polski]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ManageDiscImages | UbuntuHelp:ManageDiscImages | {{#if: | :}}ManageDiscImages}}/pt | • {{#if: UbuntuHelp:ManageDiscImages|português| [[::ManageDiscImages/pt|português]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ManageDiscImages | UbuntuHelp:ManageDiscImages | {{#if: | :}}ManageDiscImages}}/ro | • {{#if: UbuntuHelp:ManageDiscImages|română| [[::ManageDiscImages/ro|română]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ManageDiscImages | UbuntuHelp:ManageDiscImages | {{#if: | :}}ManageDiscImages}}/ru | • {{#if: UbuntuHelp:ManageDiscImages|русский| [[::ManageDiscImages/ru|русский]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ManageDiscImages | UbuntuHelp:ManageDiscImages | {{#if: | :}}ManageDiscImages}}/si | • {{#if: UbuntuHelp:ManageDiscImages|සිංහල| [[::ManageDiscImages/si|සිංහල]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ManageDiscImages | UbuntuHelp:ManageDiscImages | {{#if: | :}}ManageDiscImages}}/sq | • {{#if: UbuntuHelp:ManageDiscImages|shqip| [[::ManageDiscImages/sq|shqip]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ManageDiscImages | UbuntuHelp:ManageDiscImages | {{#if: | :}}ManageDiscImages}}/sr | • {{#if: UbuntuHelp:ManageDiscImages|српски / srpski| [[::ManageDiscImages/sr|српски / srpski]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ManageDiscImages | UbuntuHelp:ManageDiscImages | {{#if: | :}}ManageDiscImages}}/sv | • {{#if: UbuntuHelp:ManageDiscImages|svenska| [[::ManageDiscImages/sv|svenska]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ManageDiscImages | UbuntuHelp:ManageDiscImages | {{#if: | :}}ManageDiscImages}}/th | • {{#if: UbuntuHelp:ManageDiscImages|ไทย| [[::ManageDiscImages/th|ไทย]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ManageDiscImages | UbuntuHelp:ManageDiscImages | {{#if: | :}}ManageDiscImages}}/tr | • {{#if: UbuntuHelp:ManageDiscImages|Türkçe| [[::ManageDiscImages/tr|Türkçe]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ManageDiscImages | UbuntuHelp:ManageDiscImages | {{#if: | :}}ManageDiscImages}}/vi | • {{#if: UbuntuHelp:ManageDiscImages|Tiếng Việt| [[::ManageDiscImages/vi|Tiếng Việt]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ManageDiscImages | UbuntuHelp:ManageDiscImages | {{#if: | :}}ManageDiscImages}}/yue | • {{#if: UbuntuHelp:ManageDiscImages|粵語| [[::ManageDiscImages/yue|粵語]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ManageDiscImages | UbuntuHelp:ManageDiscImages | {{#if: | :}}ManageDiscImages}}/zh | • {{#if: UbuntuHelp:ManageDiscImages|中文| [[::ManageDiscImages/zh|中文]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ManageDiscImages | UbuntuHelp:ManageDiscImages | {{#if: | :}}ManageDiscImages}}/zh-hans | • {{#if: UbuntuHelp:ManageDiscImages|中文(简体)| [[::ManageDiscImages/zh-hans|中文(简体)]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ManageDiscImages | UbuntuHelp:ManageDiscImages | {{#if: | :}}ManageDiscImages}}/zh-hant | • {{#if: UbuntuHelp:ManageDiscImages|中文(繁體)| [[::ManageDiscImages/zh-hant|中文(繁體)]]}}|}} |
{{#ifeq:UbuntuHelp:ManageDiscImages|:ManageDiscImages|请不要直接编辑翻译本页,本页将定期与来源同步。}} |
{{#ifexist: :ManageDiscImages/zh | | {{#ifexist: ManageDiscImages/zh | | {{#ifeq: {{#titleparts:ManageDiscImages|1|-1|}} | zh | | }} }} }} {{#ifeq: {{#titleparts:ManageDiscImages|1|-1|}} | zh | | }}
Convert CloneCD Images to ISO
Installation
Download the latest version from ccd2iso homepage extract the archive files
tar xvfz ccd2iso-x.x.tar.gz
enter the new directory
cd ccd2iso
You need aclocal-1.6, therefore we have to install automake1.6
sudo apt-get install automake1.6
configure and compile it
./configure make
install it
sudo make install
or to install it via a deb file (CheckInstall)
sudo make checkinstall
Usage
Normally you would have 3 file from CloneCD image, they are .ccd, .img, and .sub general usage:
ccd2iso <.img filename> <.iso filename>
for example:
ccd2iso myimage.img myimage.iso
Convert BIN/CUE Images to ISO
Installation
sudo apt-get install bchunk
Usage
As the name implies, a BIN/CUE CD image has two files. BIN being a binary of the raw CD data, and CUE being an ASCII file of CD layout. general usage:
bchunk <image.bin> <image.cue> <basename>
for example:
bchunk myimage.bin myimage.cue myimage
Where basename(myimage) is myimage.iso of the produced file.
Convert DMG (compressed z-lib) to ISO
Installation
Download the latest version from here
and move the perl script for example into the directory: /usr/local/bin/
sudo mv dmg2iso.pl /usr/local/bin/
Usage
dmg2iso.pl <filename.dmg> <filename.iso>
Example
dmg2iso.pl disc1.dmg disc1.iso
Mount ISO Files
Create the directory for mount point:
sudo mkdir –p /mnt/iso
Use mount command as follows (assumes that your ISO file name is disk1.iso):
sudo mount -o loop disk1.iso /mnt/iso
Now your ISO is mounted on /mnt/iso/
Integrate Disk Image Mounting/Unmounting into Gnome (Nautilus)
The following will allow you to mount disk images (.iso, .img, .bin, .nrg, .mdf) by simply right clicking on the image file and selecting "Mount Disk Image". This solution uses fuse, so it does not require sudo rights or a password! The mounted image will be linked on the desktop, in the Places menu, and on the Places Bar in Nautilus; similar to how removable devices (CD/DVD/USB) appear. To unmount an image, right click it's desktop icon and select "Unmount Disk Image". All disk image mounts will be removed upon a restart of gnome.
- NOTE: Only disk images that are part of the system hierarchy are supported, images on smb://, nfs://, etc. are not supported unless those remote file systems are mounted to a local folder.
Install fuseiso and nautilus-actions package
sudo apt-get install fuseiso nautilus-actions
Add permitted users to the fuse group (run once for each user who should be able to mount using fuse).
sudo usermod -a -G fuse username
Logout and back in to have the current logged in user get the fuse group permissions. Download the userisomount.sh script from here. Copy the script to /usr/local/bin/ and make it executable.
sudo cp ~/Desktop/userisomount.sh /usr/local/bin/ sudo chown root:fuse /usr/local/bin/userisomount.sh sudo chmod 754 /usr/local/bin/userisomount.sh
- note: ~/Desktop is the default firefox download location. If you saved the file elsewhere, adjust as necessary.
Download the Nautilus Actions Schemas for MOUNTING and UNMOUNTING disk images from within nautilus. Import these into the Nautilus Actions Extension, by opening (System Menu -> Preferences -> Nautilus Actions Configuration) and clicking Import/Export. Create an entry named "Clean Disk Image Mounts" in (System Menu -> Preferences -> Sessions -> Startup Programs) that runs the following command at startup. (Place the command below in the command box)
/usr/local/bin/userisomount.sh clean
By default, the images are mounted in the user's home directory in a hidden folder called ".mymounts", and the desktop icon used will be gtk-dev-removable from the current icon theme. Both of these parameters can be modified at the top of the /usr/local/bin/userisomount.sh script. To quickly unmount all of your mounted images, you can press Alt+F2 and execute:
userisomount.sh clean
Troubleshooting
cat /etc/group |grep fuse
should return something like: "fuse:x:###:yourusername". If not, rerun the usermod command above.
ls -al ~ |grep .mymounts
should show you as the owner and group, if it shows root, then you ran the script using sudo and need to run the following command to fix it:
sudo userisomount.sh clean ; sudo rm -r ~/.mymounts ; sudo chmod username:username ~/.gtk-bookmarks