Installing a iOmega Zip Plus drive
Here is a bash script and additional commands to allow one to install a Zip (Plus) drive. Be sure to be ‘root’ for this activity.
The script zip.sh resides in /mnt. Be sure to have a directory /mnt/zip (Or whatever you choose your mountpoint to be.
# mkdir /mnt/zip
Here is the script zip.sh
#!/bin/bash
/sbin/modprobe imm
mount /dev/sda4 /mnt/zip
Be sure to have previously created the directory /zip in /mnt.
If modprobe immfails, replace “imm” with “ppa”
Back at the command line, for the first time after writing the script, issue the following:
# chmod 774 zip.sh
To mount the Zip-disk, simply call the script
# /mnt/zip.sh
Remember to unmount the Zip drive before taking out the disk.
# umount /mnt/zip
Also, do an “exit” (at the bash prompt) to do your work out of being root.
Also, don’t confuse the use of # within the script as a comment and otherwise as root’s prompt.
Allowing users to mount the disk
With the steps above, only root could mount and unmount zip-disks. With the following steps, you can allow users to these tasks, too.
- Make sure the required module is loaded at boot time:
Put the modprobe-command into /etc/init.d/boot.local (or whatever your distribution uses)
- Add the following to /etc/fstab:
/dev/sda4 /mnt/zip auto noauto,user,noexec 0 0
What could go wrong here?
1. The device might be named differently. So you might try replacing the "a" and the "4" in /dev/sda4 with the letters b through h and numbers 1 through 4
- Comment on Question 1: To avoid this, I mount it at boot - put it in /etc/fstab. I include users so that a mere user can umount it and mount it. I did not have it mount at boot time until I started using a jump drive. The zip was the only thing looking for a SCSI device. Then came the jump drive and all was well as long as I mounted the zip first, but if I mounted the jump first, it grabbed
/dev/sda. So now I mount the zip right at boot and prevent that problem. I am running a daily backup on the zip which umounts at the end; so that leaves the drive unmounted after that morning cron job runs. Here is what I have in /etc/fstab for both drives:
/dev/sda4 /zip vfat users,exec,suid,dev,rw,auto 0 0
/dev/sdb1 /jump vfat users,exec,suid,dev,rw,noauto 0 0
- ‘users’ allows a mere user to umount the drive and mount it. This means that you do not have to be logged in as root to mount and umount your zip. I am using vfat but you can also use ‘auto’ for the filesystem type. If I had ‘user’ instead, the user could not umount it if someone else had mounted - like at the beginning when root mounts it during boot. It is set to ‘auto’ so that it mounts at boot time. I keep a zip disk in it for my daily backup of important files. Note that jump is set to not mount at boot time. – by Anita
If you need to use the ppa-module, it might interfere with printing. (It used to. Does anybody have current information on this?)
- Comment on Question 2: I have an old zip drive which uses ppa module. My printer is plugged into the zip drive. They fixed that problem a long time ago. I remember it was a problem when I was using RedHat? 5.2 - maybe 1998? but it was not long after, that it was fixed. – by Anita
Additional comments
- I don’t have a special script like this, because I have the automatic mount setup in /etc/fstab and I have the module loading at boot time also. In my case it is in /etc/rc.modules which is the file Slackware uses for this. Other distros use something like rc.local. There are a series of module loading scripts in the file and I just had to uncomment this one.
/sbin/modprobe ppa
If the line is in /etc/fstab and you have the module loading in rc.local or whatever file your system uses at boot time to load special modules not included in the normal init scripts, then you can mount the drive with ‘mount /mnt/zip’ or in my case ‘mount /zip’.
If I were going to make a script like this for my user, I would put it in /home/username/bin. If it is to be used by all to include root, then I’d put it in /usr/local/bin. I would change the mount to include ‘users’ but it is really cleaner to put this in /etc/fstab.
I would say that the methodology that has been created here is probably very similar to what people originally had to do. As time has gone by, files have been set up to take on this job so that you don’t have to make your own scripts and remember all their names. Very good detective work and creativity here. In fact, I had a similar script years ago which I called ‘zip’ and which ran ‘insmod’ for each module needed rather than the much easier ‘modprobe’ - why - well, I didn’t know about modprobe at the time.
Anita
Comment: Mounting Zip Drives at Bootup Posted by hrosen 2004-08-27
Finally I got around to making the changes Anita suggested. Running Red Hat Linux version 7.1. I added a line at the very end of the file /etc/rc.d/rc.local as such: modprobe imm and modified fstab as suggested. During boot the fstab failed, but then I only had to click on the Zip drive icon to mount it, as a regular user. I was easily able to read the zip drive contents. Very nice.
$ umount /mnt/zip
then ejected the disk, replaced with another disk
$ mount /mnt/zip
$ ls /mnt/zip
read the contents of the replacement zip. That was truly great and I am appreciative.
Howard
Created by Howard Rosen, Stefan Waidele
Copyright (c) by the authors.
Prior to editing, authors agreed to license their contributions by the terms of the GPL.
See our licensing page for details.
Linux® is a registered trademark of Linus Torvalds.
tutorials/using/installing_a_iomega_zip_plus_drive.txt · Last modified: 2007/11/16 12:24
Welcome to LinuxBasics.org - The online community that helps people to get Linux installed and running.
During this tour, we will guide you through our website, which has many facets which wait to be explored
The biggest project we are running is our Linux course, based on the LBook.
The book is stored in wiki-format, which enables us to update and correct it as we go.
Discussion for the course is on our Forum
Our mailing-list is for any Linux-related question.
The questions and answers from the list are stored in the list's archives in order to help others with the same problems.
Every weekend, we meet to chat in IRC. These meetings are NOT mandatory, but are a nice chance to get to know each other better.
IRC is also a great tool to solve many problems, since it is very quick and easy to ask for more details if you need them.
The tutorials are one of the oldest sections on the LBo-website.
Here you find explanations on how to do specific tasks in Linux. Many of the tutorials were created after a certain problem
has been discussed (and usually solved :) on the mailing-list.
The tutorials are categorized in
In the links section, you find outbound links to other valuable resources.
One of our later additions to the site. We maintain a mirror of the Linux Documentation Project. This is our contribution to the "home of the HOWTOs"
Another later addition is the LBlog which focuses on how to do stuff on the Linux Desktop. It begins with the basics on installing Ubuntu.
Using the integrated site-search, you can search the tutorials, the LBook and all other wiki-pages
Simply type the search term into the box in the upper-right corner of our webpages
As a community, we depend on your feedback and collaboration. So, if you have something to share with others, please contact us. If you have a suggestion for a topic you would like to see covered here, please add it on the Wishlist.
There are many ways to contribute: You can answer questions on the mailing-list, you can write a complete tutorial or just a step-by-step documentation on how you completed a specific task using linux. Ask questions if the information on this site is not clear, tell us if we got something wrong, spell-check our writings, whatever.
We are looking forward to meeting you at LinuxBasics.org
Anita, Jisao, Sam and Stefan