个人工具

“UbuntuHelp:IomegaZIPDrive”的版本间的差异

来自Ubuntu中文

跳转至: 导航, 搜索
 
(未显示同一用户的5个中间版本)
第4行: 第4行:
 
== Introduction ==
 
== Introduction ==
 
This page describes how to use an Iomega ZIP parallel port drive in Ubuntu 6.06.
 
This page describes how to use an Iomega ZIP parallel port drive in Ubuntu 6.06.
Commands with prompt "#" have to be executed as root (e.g. with sudo). Commands with prompt "$" can be executed as a normal user.
+
Commands with prompt "#" have to be executed as root (e.g. with sudo). Commands with prompt "$" can be executed as a normal user. For Ubuntu 8.10. users only steps 1 and 2 are necessary.  Also, for Ubuntu 9.10, only steps 1 and 2 are necessary.
 +
To open Nautilus with root privileges:
 +
<pre><nowiki>
 +
gksu nautilus
 +
</nowiki></pre>
 
== Installation ==
 
== Installation ==
 
Do the following steps in order to make your Iomega ZIP parallel port drive accessible in Ubuntu:
 
Do the following steps in order to make your Iomega ZIP parallel port drive accessible in Ubuntu:
 
1. Add the following lines into file /etc/modules:
 
1. Add the following lines into file /etc/modules:
 +
 
<pre><nowiki>
 
<pre><nowiki>
 
ppa
 
ppa
第13行: 第18行:
 
</nowiki></pre>
 
</nowiki></pre>
 
You must have root privileges when editing this file. Of course, if your modules file already contains any of these modules then it shall not be added again.
 
You must have root privileges when editing this file. Of course, if your modules file already contains any of these modules then it shall not be added again.
2. Reboot your machine.
+
In Ubuntu 9.10, with an Iomega Zip 100 Parallel port drive, only the following line is needed:
 +
<pre><nowiki>
 +
ppa
 +
</nowiki></pre>
 +
2. Reboot your machine
 +
 
 +
If you are running a version of Ubuntu prior to 8.10, you will need to continue to step 3. 
 +
If you are running Ubuntu 8.10 or later, your parallel port zip drive might be ready for use without additional steps.
 
3. Give command
 
3. Give command
 +
 
<pre><nowiki>
 
<pre><nowiki>
 
$ cat /proc/scsi/scsi
 
$ cat /proc/scsi/scsi
第21行: 第34行:
 
Write down the values of the "Vendor" and "Model" fields from the ZIP drive entry. Vendor should be "IOMEGA" and model may be e.g. "ZIP 100".
 
Write down the values of the "Vendor" and "Model" fields from the ZIP drive entry. Vendor should be "IOMEGA" and model may be e.g. "ZIP 100".
 
4. Create subdirectory rules.d-backup in /etc/udev:
 
4. Create subdirectory rules.d-backup in /etc/udev:
 +
 
<pre><nowiki>
 
<pre><nowiki>
 
# cd /etc/udev
 
# cd /etc/udev
第26行: 第40行:
 
</nowiki></pre>
 
</nowiki></pre>
 
5. Copy file /etc/udev/rules.d/20-names.rules into the backup directory:
 
5. Copy file /etc/udev/rules.d/20-names.rules into the backup directory:
 +
 
<pre><nowiki>
 
<pre><nowiki>
 
# cd /etc/udev/rules.d
 
# cd /etc/udev/rules.d
第31行: 第46行:
 
</nowiki></pre>
 
</nowiki></pre>
 
6. Add the following line at the end of the file 20-names.rules:
 
6. Add the following line at the end of the file 20-names.rules:
 +
 
<pre><nowiki>
 
<pre><nowiki>
 
BUS=="scsi", SYSFS{vendor}=="IOMEGA", SYSFS{model}=="<YOUR MODEL>", NAME="sda4"
 
BUS=="scsi", SYSFS{vendor}=="IOMEGA", SYSFS{model}=="<YOUR MODEL>", NAME="sda4"
第37行: 第53行:
 
You must have root privileges when editing this file.
 
You must have root privileges when editing this file.
 
7. Create mount points for the ZIP drive:
 
7. Create mount points for the ZIP drive:
 +
 
<pre><nowiki>
 
<pre><nowiki>
 
# mkdir /media/zip
 
# mkdir /media/zip
第44行: 第61行:
 
However, it is possible that Nautilus does not show your drive automatically if you create the mount points outside /media.
 
However, it is possible that Nautilus does not show your drive automatically if you create the mount points outside /media.
 
8. Create a backup copy of /etc/fstab:
 
8. Create a backup copy of /etc/fstab:
 +
 
<pre><nowiki>
 
<pre><nowiki>
 
# cd /etc
 
# cd /etc
第49行: 第67行:
 
</nowiki></pre>
 
</nowiki></pre>
 
9. Add the following lines at the end of /etc/fstab:
 
9. Add the following lines at the end of /etc/fstab:
 +
 
<pre><nowiki>
 
<pre><nowiki>
 
/dev/sda4      /media/zip      auto    user,noauto            0      0
 
/dev/sda4      /media/zip      auto    user,noauto            0      0
第72行: 第91行:
 
Linux Parallel Port Home Page can be found at [http://www.torque.net/linux-pp.html].
 
Linux Parallel Port Home Page can be found at [http://www.torque.net/linux-pp.html].
 
----
 
----
[[category:CategoryDocumentation]] [[category:CategoryHardware]]
+
[[category:CategoryHardware]]
  
 
[[category:UbuntuHelp]]
 
[[category:UbuntuHelp]]

2010年5月19日 (三) 22:57的最新版本

Author: Tommi Höynälänmaa

Introduction

This page describes how to use an Iomega ZIP parallel port drive in Ubuntu 6.06. Commands with prompt "#" have to be executed as root (e.g. with sudo). Commands with prompt "$" can be executed as a normal user. For Ubuntu 8.10. users only steps 1 and 2 are necessary. Also, for Ubuntu 9.10, only steps 1 and 2 are necessary. To open Nautilus with root privileges:

gksu nautilus

Installation

Do the following steps in order to make your Iomega ZIP parallel port drive accessible in Ubuntu: 1. Add the following lines into file /etc/modules:

ppa
sg

You must have root privileges when editing this file. Of course, if your modules file already contains any of these modules then it shall not be added again. In Ubuntu 9.10, with an Iomega Zip 100 Parallel port drive, only the following line is needed:

ppa

2. Reboot your machine.

If you are running a version of Ubuntu prior to 8.10, you will need to continue to step 3. If you are running Ubuntu 8.10 or later, your parallel port zip drive might be ready for use without additional steps. 3. Give command

$ cat /proc/scsi/scsi

You should see your ZIP drive in the list of devices. Write down the values of the "Vendor" and "Model" fields from the ZIP drive entry. Vendor should be "IOMEGA" and model may be e.g. "ZIP 100". 4. Create subdirectory rules.d-backup in /etc/udev:

# cd /etc/udev
# mkdir rules.d-backup

5. Copy file /etc/udev/rules.d/20-names.rules into the backup directory:

# cd /etc/udev/rules.d
# cp -v 20-names.rules ../rules.d-backup/

6. Add the following line at the end of the file 20-names.rules:

BUS=="scsi", SYSFS{vendor}=="IOMEGA", SYSFS{model}=="<YOUR MODEL>", NAME="sda4"

where <YOUR MODEL> shall be replaced by the model string that you wrote down in step 3, e.g. ZIP 100. You must have root privileges when editing this file. 7. Create mount points for the ZIP drive:

# mkdir /media/zip
# mkdir /media/zipvfat

Here the first mount point is for autodetected filesystems and the second one for VFAT filesystems. You may omit one of these and you can use different directory names. The mount points need not necessarily be subdirectories of /media. However, it is possible that Nautilus does not show your drive automatically if you create the mount points outside /media. 8. Create a backup copy of /etc/fstab:

# cd /etc
# cp fstab fstab-backup

9. Add the following lines at the end of /etc/fstab:

/dev/sda4       /media/zip      auto    user,noauto             0       0
/dev/sda4       /media/zipvfat  vfat    user,noauto             0       0

If you used different directory names or omitted one of the mount points in step 7 you have to change these lines, too. 10. Reboot your machine. 11. Put a disk containing a VFAT file system into your ZIP drive and try to mount it using both of the mount points:

$ mount /media/zip
$ ls /media/zip
$ umount -v /media/zip
$ mount /media/zipvfat
$ ls /media/zipvfat
$ umount -v /media/zipvfat

You may have to repeat the mount commands a few times. I suspect that this is a driver bug. The ls commands should list the contents of the ZIP drive. If this step works you have installed your ZIP drive successfully. 12. For Gnome users: Open Nautilus file manager and press the "Computer" button on the tool bar (the button with a monitor icon). You should see icons for your ZIP drive and the zipvfat mount point. You can mount, unmount, and use your ZIP drive with both of these icons using Nautilus.

Other resources

Linux ZIP Drive Mini-HOWTO can be found at [1]. The instructions in the Mini-HOWTO are outdated for a Linux system with udev. Linux Parallel Port Home Page can be found at [2].