LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 10-10-2007, 10:58 AM   #1
redbuds
LQ Newbie
 
Registered: Apr 2003
Location: SE oklahoma
Distribution: slackware
Posts: 16

Rep: Reputation: 0
zip iomega IDE drive slack 12


The only way I can get the drive to mount is put a zip disk in the drive then boot slackware 12.Doing this I can remove that disk, insert another and open them. If I dont have a disk in the drive when I boot , the error is dev does not exist when I try to mount and open a disk. The fstab entry for the zip drive that worked for 10.2 wont work. Slack 12 names the device the same as slack 10.2. /dev/hdd4.

There are lines in the startup script about /dev/hdd4 but only mounts it if there is a disk in the drive.

Any suggestions to mount the ide zip drive in slack 12 with out a disk in the drive when I boot ?
 
Old 10-10-2007, 07:26 PM   #2
Peacedog
LQ Guru
 
Registered: Sep 2003
Location: Danville, VA
Distribution: Slackware, Windows, FreeBSD, OpenBSD, Mac OS X
Posts: 5,296

Rep: Reputation: 168Reputation: 168
Hi redbuds, Is your user a member of the plugdev group? I don't have a zip drive available to test it so, what does udev say about the disk? You can gather some ifo using this. There is a sticky at the top of this forum about hal that may help also.
Good luck. ;-)

Last edited by Peacedog; 10-10-2007 at 09:07 PM. Reason: Wrong group on initial post. oops! ;-)
 
Old 10-11-2007, 01:15 AM   #3
gnashley
Amigo developer
 
Registered: Dec 2003
Location: Germany
Distribution: Slackware
Posts: 4,928

Rep: Reputation: 612Reputation: 612Reputation: 612Reputation: 612Reputation: 612Reputation: 612
Try running rescan-scsi-bus after inserting the disk.
 
Old 10-15-2007, 10:44 AM   #4
redbuds
LQ Newbie
 
Registered: Apr 2003
Location: SE oklahoma
Distribution: slackware
Posts: 16

Original Poster
Rep: Reputation: 0
Thanks for replies. I am member of plugdev group. Udevinfo lists the drive . I don't know how to write a rule or even if thats what I need. All the examples in the reference were for USB devices.

Thanks for the rescan-scsi-bus command that will be handy I think. The output gave me everything attached to USB ports (memory sticks, printers) but nothing about my IDE zip drive.
 
Old 10-15-2007, 03:42 PM   #5
redbuds
LQ Newbie
 
Registered: Apr 2003
Location: SE oklahoma
Distribution: slackware
Posts: 16

Original Poster
Rep: Reputation: 0
Here is some of output from lshal.
The line with the star. storage.media_check_enabled = false (bool)
Can that be changed to true and maybe cure my problem ?
There is a line in /usr/bin/hal-device-manager Iomega Zip 100
storage-media-check-enabled strlist 0
Would changing that to 1 cure my problem ? If so how do I change the
0 to 1 ?

udi = '/org/freedesktop/Hal/devices/storage_model_IOMEGA_ZIP_100_ATAPI'
block.device = '/dev/hdd4' (string)
block.is_volume = false (bool)
block.major = 22 (0x16) (int)
block.minor = 64 (0x40) (int)
block.storage_device = '/org/freedesktop/Hal/devices/storage_model_IOMEGA_ZIP_100_ATAPI' (string)
info.capabilities = {'storage', 'block'} (string list)
info.category = 'storage' (string)
info.interfaces = {'org.freedesktop.Hal.Device.Volume', 'org.freedesktop.Hal.Device.Storage', 'org.freedesktop.Hal.Device.Storage'} (string list)
info.parent = '/org/freedesktop/Hal/devices/pci_8086_2411_ide_1_1' (string)
info.product = 'IOMEGA ZIP 100 ATAPI' (string)
info.udi = '/org/freedesktop/Hal/devices/storage_model_IOMEGA_ZIP_100_ATAPI' (string)
linux.hotplug_type = 3 (0x3) (int)
linux.sysfs_path = '/sys/block/hdd' (string)
org.freedesktop.Hal.Device.Storage.method_argnames = {'extra_options', 'extra_options'} (string list)
org.freedesktop.Hal.Device.Storage.method_execpaths = {'hal-storage-eject', 'hal-storage-closetray'} (string list)
org.freedesktop.Hal.Device.Storage.method_names = {'Eject', 'CloseTray'} (string list)
org.freedesktop.Hal.Device.Storage.method_signatures = {'as', 'as'} (string list)
org.freedesktop.Hal.Device.Volume.method_argnames = {'mount_point fstype extra_options', 'extra_options', 'extra_options'} (string list)
org.freedesktop.Hal.Device.Volume.method_execpaths = {'hal-storage-mount', 'hal-storage-unmount', 'hal-storage-eject'} (string list)
org.freedesktop.Hal.Device.Volume.method_names = {'Mount', 'Unmount', 'Eject'} (string list)
org.freedesktop.Hal.Device.Volume.method_signatures = {'ssas', 'as', 'as'} (string list)
storage.automount_enabled_hint = true (bool)
storage.bus = 'ide' (string)
storage.drive_type = 'zip' (string)
storage.hotpluggable = false (bool)
* storage.media_check_enabled = false (bool)
storage.model = 'IOMEGA ZIP 100 ATAPI' (string)
storage.no_partitions_hint = true (bool)
storage.originating_device = '/org/freedesktop/Hal/devices/pci_8086_2411_ide_1_1' (string)
storage.physical_device = '/org/freedesktop/Hal/devices/pci_8086_2411_ide_1_1' (string)
storage.removable = true (bool)
storage.removable.media_available = false (bool)
storage.requires_eject = true (bool)
storage.size = 0 (0x0) (uint64)
storage.vendor = '' (string)
volume.mount.valid_options = {'ro', 'sync', 'dirsync', 'noatime', 'nodiratime', 'noexec', 'quiet', 'remount', 'exec', 'utf8', 'shortname=', 'codepage=', 'iocharset=', 'umask=', 'uid='} (string list)
 
Old 10-17-2007, 06:21 PM   #6
Peacedog
LQ Guru
 
Registered: Sep 2003
Location: Danville, VA
Distribution: Slackware, Windows, FreeBSD, OpenBSD, Mac OS X
Posts: 5,296

Rep: Reputation: 168Reputation: 168
Have you tried adding scsi emulation for the drive?
Good luck. ;-)
 
Old 10-18-2007, 06:24 AM   #7
gnashley
Amigo developer
 
Registered: Dec 2003
Location: Germany
Distribution: Slackware
Posts: 4,928

Rep: Reputation: 612Reputation: 612Reputation: 612Reputation: 612Reputation: 612Reputation: 612
It seems to me that changing the line in /usr/bin/hal-device-manager from this:
storage-media-check-enabled strlist 0
to this:
storage-media-check-enabled strlist 1
might be the answer. This is similar to the situation with multi-card USB card readers -that only on boot-up can a card be detected. Inserting a card afterwards doesn't usually work as the device itself doesn't send any trigger event when inserting a card.
The ZIP drives probably behave in a similar way. If I understand correctly, changing the line as above will cause hal to check for the presence of a ZIP disk and (possibly) continue to check periodically for a disk.
 
Old 10-18-2007, 11:40 AM   #8
vtel57
Senior Member
 
Registered: Jul 2006
Location: USA
Distribution: Slackware64 - 14.2 w/ Xfce
Posts: 1,631

Rep: Reputation: 489Reputation: 489Reputation: 489Reputation: 489Reputation: 489
In order to use a ZIP (IDE-ATAPI) in Slack without having to have a disk in the slot during boot you'll have to create a node (/dev/hdd4) that will be recreated at each boot up. In order to do this, you'll need to write a small script and place it in /etc/rc.d/rc.local. Here's what mine looks like:

Quote:
#!/bin/sh
#
# /etc/rc.d/rc.local: Local system initialization script.
#
# Put any local startup commands in here. Also, if you have
# anything that needs to be run at shutdown time you can
# make an /etc/rc.d/rc.local_shutdown script and put those
# commands in there.

#!/bin/bash
mknod /dev/hdd4 b 22 64
#End script
Note: your device high and low numbers may be different depending on where you ZIP device is installed on your system... IDE0 or IDE1, master or slave, etc.

Once you've installed your start-up node creation script, you'll need to adjust your fstab. Mine looks like this:

Quote:
/dev/hdd4 /mnt/zip vfat rw,noauto,user,sync 0 0
Reboot.

At this point, you should be able to mount your Zip as a user whenever you want.

Luck!

~Eric

PS: A variation of this works in most distros. I have it set up like this in Slackware, Debian, Ubuntu, Mint, Mepis, Zenwalk, and Vector. In the past, I've had it working like this in Fedora Core, SuSE, Mandriva, and Foresight.

Last edited by vtel57; 10-18-2007 at 11:42 AM.
 
Old 10-19-2007, 07:22 AM   #9
redbuds
LQ Newbie
 
Registered: Apr 2003
Location: SE oklahoma
Distribution: slackware
Posts: 16

Original Poster
Rep: Reputation: 0
WAHOO....Thank you vtel57, your script fixed the problem. Thanks to everyone who kept this thread open.
 
Old 10-19-2007, 09:19 AM   #10
vtel57
Senior Member
 
Registered: Jul 2006
Location: USA
Distribution: Slackware64 - 14.2 w/ Xfce
Posts: 1,631

Rep: Reputation: 489Reputation: 489Reputation: 489Reputation: 489Reputation: 489
Glad you got it working, Red!

I love my ZIP. I went through hell initially trying to get it to work in Linux, but once I found the magic method, it's worked in every distro for me since.

Have FUN!

~Eric
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 drive, recognized by Suse, can't read or write to MrsHill Linux - Newbie 2 03-19-2006 06:25 AM
IDE internal IOMega Zip 100 drive not automatically recognized on boot. xode Mandriva 8 02-16-2006 05:31 PM
Iomega Parallel zip drive question??? bbmak Linux - Hardware 2 08-02-2004 05:07 PM
Installing Iomega Zip 100 drive jockstrap Linux - Software 1 04-23-2001 08:42 AM
Linux Mandrke 7.2...Zip Drive Iomega/ Cd RW Bazza Linux - General 2 02-09-2001 05:57 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 11:40 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