LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 04-15-2004, 04:22 PM   #1
ArthurDent
Member
 
Registered: Feb 2004
Location: London
Distribution: Formerly Various Linux Distros, Now Fixed on Fedora 32
Posts: 189

Rep: Reputation: 30
Zip Drive goes AWOL....


Dear all,

I have an external Iomega Zip drive (parrallel port).

I searched through the archives and found this very useful thread HERE .

If I follow the instructions exactly - ie create a directory called /mnt/zip and then run modprobe parport followed by modeprobe ppa I can mount my zip drive very happily.

I entered the following line in my rc.local file:
/sbin/modprobe ppa

I entered the following line in my /etc/fstab file:
/dev/sda4 /mnt/zip vfat noauto,owner,kudzu 0 0


Now, here's the weird bit...

When I reboot, the /mnt/zip directory dissappears and so does the entry in fstab!

What's going on?

All I want to be able to do is access my zip drive on demand. Is there a step I've missed?

Thanks in advance

Mark
 
Old 04-15-2004, 07:02 PM   #2
Electro
LQ Guru
 
Registered: Jan 2002
Posts: 6,042

Rep: Reputation: Disabled
Try taking out kudzu. You probably want to add sync just in case you accidently umount the device and eject with out running the sync command. Parrallel port devices are not hotplug, so they have to be on before you turn on your computer. Printers are exceptions.
 
Old 04-15-2004, 07:09 PM   #3
maroonbaboon
Senior Member
 
Registered: Aug 2003
Location: Sydney
Distribution: debian
Posts: 1,495

Rep: Reputation: 48
That's bizarre. The man page for fstab says it is only read, so I don't know what could be altering it. I don't know about that 'kudzu' option you put in. I assume that is some Redhat thing. Could it be triggering some funny business? Likely same thing removes /mnt/zip.

You could try changing permissions e.g. 'chmod 444 /etc/fstab' to see if that either stops it getting altered or generates an error message.

As always, it's it good idea to look through the output of the 'dmesg' command to see if there are any relevant messages, and run 'lsmod' to see what modules are actually loaded.

You may have a file /etc/modules which lists modules to be auto-loaded on booting. Maybe that is a better place to load parport and ppa.
 
Old 04-16-2004, 06:13 AM   #4
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,679

Rep: Reputation: 5893Reputation: 5893Reputation: 5893Reputation: 5893Reputation: 5893Reputation: 5893Reputation: 5893Reputation: 5893Reputation: 5893Reputation: 5893Reputation: 5893
kudzu is a plug and play hardware config tool and it will modify the fstab file. Removing kudzu from fstab should prevent the entry from being deleted.

kudzu is running before the ppa modules is being loaded so your zip drive is not detected.
 
Old 04-16-2004, 07:10 AM   #5
ArthurDent
Member
 
Registered: Feb 2004
Location: London
Distribution: Formerly Various Linux Distros, Now Fixed on Fedora 32
Posts: 189

Original Poster
Rep: Reputation: 30
Thanks guys...

Removing the kudzu command did the trick!

The only (very minor) niggle is the fact that the eject command simply unmounts the drive and does not actually eject the disk. To do that I have to bend down and press the button on the drive itself - sigh - it's a hard life....

Thanks again.

Mark
 
Old 04-16-2004, 07:16 AM   #6
tricky_linux
Member
 
Registered: Jul 2003
Distribution: Red Hat Linux 9.0; Old and Solid
Posts: 674

Rep: Reputation: 30
change "/dev/sda4 /mnt/zip vfat noauto,owner,kudzu 0 0" to "/dev/sda4 /mnt/zip vfat noauto,user,owner,kudzu 0 0" i think will solve it. the eject command works perfect for root only. so i don't know why. but it's free to try.
 
Old 04-16-2004, 07:35 AM   #7
ArthurDent
Member
 
Registered: Feb 2004
Location: London
Distribution: Formerly Various Linux Distros, Now Fixed on Fedora 32
Posts: 189

Original Poster
Rep: Reputation: 30
Thanks Tricky - but it didn't sort out the eject thing... I still need to bend down and press the button - but I suppose the exercise has got to be good for me?
 
Old 04-18-2004, 01:24 AM   #8
Electro
LQ Guru
 
Registered: Jan 2002
Posts: 6,042

Rep: Reputation: Disabled
Just type "sync && umount /mnt/zip && eject /dev/sda". I suggest including sync in fstab for you zip drive because if you accidently umount and eject sometimes data is not sync instantly with removable media.
 
Old 04-18-2004, 08:46 PM   #9
tricky_linux
Member
 
Registered: Jul 2003
Distribution: Red Hat Linux 9.0; Old and Solid
Posts: 674

Rep: Reputation: 30
what will the fstab line looks like after add syn?
just don't know where to put it.
total newbie
 
Old 04-18-2004, 10:50 PM   #10
Electro
LQ Guru
 
Registered: Jan 2002
Posts: 6,042

Rep: Reputation: Disabled
In the fstab file the format is:
block-device pointing-directory filesystem options fsck dump

I get confused on the last two entries fsck and dump. It could be the other way around. Somebody please correct me if I'm wrong. For your setup, a line might be:

/dev/sda4 /mnt/zip vfat sync,noauto,user,owner,umask=000 0 0

I added umask=000 just in case you want to write to the disk while you are logged in as a normal user. umask means all files and directories have a permission of 777 when they are written to the medium. A umask of 022 will be 755 (usually distributions set to this permission for normal user files and directories).

The command eject does work but it could be you set LINUX to high security setting. The eject may not work unless you change a setting in either PAM or some other security setting. I can not help you on that.
 
  


Reply



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
Zip drive trackrat SUSE / openSUSE 3 11-13-2004 05:51 PM
No Zip Drive? CD? Krazykrl Mandriva 6 10-19-2004 11:56 PM
Zip Drive SolidSnake Linux - Hardware 1 03-01-2004 10:32 AM
Zip drive Ian_Hawdon Linux - Hardware 2 05-25-2003 10:48 AM
Zip Drive clueless Linux - Newbie 4 11-21-2001 04:56 PM

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

All times are GMT -5. The time now is 07:00 AM.

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