个人工具

UbuntuHelp:IomegaZIPDrive

来自Ubuntu中文

Wikibot讨论 | 贡献2007年12月6日 (四) 15:27的版本

跳转至: 导航, 搜索

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.

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. 2. Reboot your machine. 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].