LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 05-22-2007, 12:35 AM   #1
jscottdl
LQ Newbie
 
Registered: May 2007
Location: AB, Canada
Distribution: Mandriva 2007, PCLinuxOS, SLAX
Posts: 16

Rep: Reputation: 0
zip 100 MB parallel port drive on Mandriva 2007 Spring One


I found this tutorial on the Iomega site here.

where I did everything it said, but when I mount the drive like this:
mount -t vfat /dev/sda4 /mnt/zip100.0

I get this error:

mount: special device /dev/sda4 does not exist

I also went here, where the tutorial is based on the other one, but it tells you to add lines to /etc/modules (I did):
linspire.com thread

How can I get my zip drive to work?

Last edited by jscottdl; 05-22-2007 at 12:41 AM.
 
Old 05-22-2007, 12:59 AM   #2
vtel57
Senior Member
 
Registered: Jul 2006
Location: USA
Distribution: Slackware64 - 14.2 w/ Xfce
Posts: 1,631

Rep: Reputation: 489Reputation: 489Reputation: 489Reputation: 489Reputation: 489
There are two ways, js...

1) Boot Mandriva with a Zip disk in the drive. It will automatically create the device node (/dev/sda4) necessary to mount.

or

2) Create a BASH script that will create the node for you at each boot up. You'll need some info first, though. You'll need to know where to place boot-up scripts in Mandriva (I don't know). It'll either be rcS.d or rc.local or something like that. Others here may be able to tell you. You'll also need to know the major and minor device identifiers for the Zip device. It's the master on the Sata0 buss, so the major number is probably 3. The minor would be 64.

Here's what your script needs to look like:

Code:
#!/bin/bash
mknod /dev/sda4 b 3 64
#End script
Name it something like S95zipnode and save it to your rcS.d or rc.local. I'm not in Mandriva right now. I'm in Debian. Maybe someone will come along and show you what the proper startup file is in Mandriva. Anyway, once you save it, you have to make it executible:

Code:
# chmod a+x S95zipnode
All done! Reboot. The sda4 node should be created in /dev. Your Zip should now be able to mount via command line:

Code:
 # mount -t vfat /dev/sda4 /media/<your Zip directory>
You can also make it user mountable in the GUI by adding an fstab entry:

Code:
/dev/sda4     /media/<your Zip directory>    auto     rw,user,noauto,sync     0     0
Best of luck! I think this might work for you. This is a version of the same method I used to get my Zip to work in my distros. I'll get out of Deb now and boot to Mandriva just to confirm.

Later...
 
Old 05-22-2007, 01:20 AM   #3
vtel57
Senior Member
 
Registered: Jul 2006
Location: USA
Distribution: Slackware64 - 14.2 w/ Xfce
Posts: 1,631

Rep: Reputation: 489Reputation: 489Reputation: 489Reputation: 489Reputation: 489
OK. I've confirmed that this is the method I used to get my Zip working in Mandriva. The directory that you need to place the script in is /etc/rc5.d.

Luck!

~Eric
 
Old 05-22-2007, 01:47 AM   #4
jscottdl
LQ Newbie
 
Registered: May 2007
Location: AB, Canada
Distribution: Mandriva 2007, PCLinuxOS, SLAX
Posts: 16

Original Poster
Rep: Reputation: 0
Thanks.

I got a problem when I tried opening the desktop icon I made, though. It said:

Could not mount device.
The reported error was:
mount: wrong fs type, bad option, bad superblock on /dev/sda4,
missing codepage or other error
In some cases useful info is found in syslog -
try dmesg | tail or so

dmesg | tail (just two of the lines):

FAT: invalid media value (0xb9)
VFS: Can't find a valid FAT filesystem on dev hdb.

*During boot up, I see something like "Cannot readlink S95zipnode"

******************
I found another thread about this: mandrivausers.org,
where they suggested this:
add this line in /etc/modprobe.preload:
ide-scsi

add these lines in /etc/rc.d/rc.local:

modprobe scsi_mod
modprobe sd_mod
modprobe ppa

and try typing
"rmmod lp" and "rmmod ppa" followed by
"modprobe ppa" and "modprobe lp"


Still I get the same "Could not mount device" error after doing all that.

Last edited by jscottdl; 05-22-2007 at 02:37 AM.
 
Old 05-22-2007, 04:05 AM   #5
jscottdl
LQ Newbie
 
Registered: May 2007
Location: AB, Canada
Distribution: Mandriva 2007, PCLinuxOS, SLAX
Posts: 16

Original Poster
Rep: Reputation: 0
I noticed that before I did all that stuff, there were two blue 'zip' lines under /dev. So I undid all the changes I made to fstab, rc.local, and modprobe.preload and typed "modprobe imm" - that got the 'zip' lines back. I checked their details under Konqueror (zip = sdb, zip4 = sdb4) and redid everything in the first tutorial using /dev/sdb4.

I added this line to /etc/rc.d/rc.local:
modprobe imm

and this line to /etc/fstab:
/dev/sdb4 /mnt/zip100.0 vfat noauto,user 0 0

Now it works. I didn't use your script, but thanks - your reply helped me find the answer.
 
Old 05-22-2007, 12:03 PM   #6
vtel57
Senior Member
 
Registered: Jul 2006
Location: USA
Distribution: Slackware64 - 14.2 w/ Xfce
Posts: 1,631

Rep: Reputation: 489Reputation: 489Reputation: 489Reputation: 489Reputation: 489
That's the great thing about GNU/LInux... there are usually more than just one solution to a problem. Glad you got it working!

Have FUN!
 
  


Reply

Tags
drive, mandriva2007, zip



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Iomega Zip 100 Parallel Port Installation tdking19 Slackware 1 04-20-2005 04:58 PM
External zip 100 parallel drive Frankj51 Fedora 15 02-04-2005 06:23 PM
Iomega Zip 100 parallel drive installation problem bbmak Linux - Hardware 5 07-15-2004 01:52 AM
Mounting Parallel Zip 100 Drive (RH 8.0) Milhouse Linux - Hardware 8 03-09-2004 06:50 PM
RH9 and Parallel port Zip 100 Problem ridgews Linux - Distributions 6 08-26-2003 08:48 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 04:56 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration