Linux - HardwareThis forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Distribution: Formerly Various Linux Distros, Now Fixed on Fedora 32
Posts: 189
Rep:
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?
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.
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.
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.
Distribution: Formerly Various Linux Distros, Now Fixed on Fedora 32
Posts: 189
Original Poster
Rep:
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....
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.
Distribution: Formerly Various Linux Distros, Now Fixed on Fedora 32
Posts: 189
Original Poster
Rep:
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?
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.
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:
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.