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 - Distributions > Mandriva
User Name
Password
Mandriva This Forum is for the discussion of Mandriva (Mandrake) Linux.

Notices


Reply
  Search this Thread
Old 02-12-2006, 11:54 AM   #1
xode
Member
 
Registered: Aug 2003
Distribution: Mandrake 9.0; FC4; FC8; SUSE 10.3; SUSE 12.1; SUSE 13.2
Posts: 638
Blog Entries: 1

Rep: Reputation: 52
IDE internal IOMega Zip 100 drive not automatically recognized on boot.


I have an internal IDE zip 100 drive as a slave on the secondary IDE port. Linux has seen it and has set it up as /dev/hdd. Further I can read what's in the drive using mtools. So far so good. However, on each reboot, the zip drive disappears, along with the /dev/hdd block device link. Believing that it was only the /dev/hdd link that was disappearing, I created a new link called /dev/zip to the actual block device which is located at /dev/ide/host0/bus1/target1/lun0/disc. However, it is really the disc block device that disappears on each reboot. I can get it back and use the zip 100. To do so, I have to open up a file manager window (konqueror), go to /dev and click the reload button and suddenly the disc block device is there. Even this would be fine, if I could automate the process. However, whatever konqueror does while refreshing /dev, I haven't been able to duplicate in a terminal shell that I could then add to rc.local.

So far, from a terminal shell, I have tried:

ls -al /dev/ide/host0/bus1/target1/lun0/disc --> "no such file or directory"

ls -al /dev/zip --> red blinking unknown link reference

konqueror /dev/ide/host0/bus1/target1/lun0 pulls up an empty lun0 directory

modprobe ide --> module ide not found

mount -t auto /dev/zip /mnt/hdd4 --> device /dev/zip does not exist

mount -t auto /dev/ide/host0/bus1/target1/lun0/disc /mnt/hdd4 --> device /dev/ide/host0/bus1/target1/lun0/disc does not exist
 
Old 02-13-2006, 09:40 AM   #2
kilgoretrout
Senior Member
 
Registered: Oct 2003
Posts: 2,987

Rep: Reputation: 388Reputation: 388Reputation: 388Reputation: 388
Try:

# modprobe ide-floppy

IIRC you need that module loaded to detect an ide zip drive.
 
Old 02-13-2006, 06:21 PM   #3
xode
Member
 
Registered: Aug 2003
Distribution: Mandrake 9.0; FC4; FC8; SUSE 10.3; SUSE 12.1; SUSE 13.2
Posts: 638

Original Poster
Blog Entries: 1

Rep: Reputation: 52
"modprobe ide-floppy" worked and it can be done much earlier in the boot sequence than rc.local by adding "ide-floppy" to /etc/modules. This also activates /dev/hdd as well as /dev/zip. So, the zip drive can now be accessed with mtools and fdisk, which works. However, it would also be nice to be able to mount it, which still can't be done. From a root console:

mount -t msdos /dev/hdd4 /mnt/hdd4 --> special device /dev/hdd4 does not exist.

mount -t msdos /dev/hdd /mnt/hdd4 --> wrong filesystem type...or too many mounted systems.

The zip disk is a preformatted PC type disk with a FAT16 partition as partition #4. Any suggestions on how to make the zip drive mountable?
 
Old 02-14-2006, 09:10 AM   #4
kilgoretrout
Senior Member
 
Registered: Oct 2003
Posts: 2,987

Rep: Reputation: 388Reputation: 388Reputation: 388Reputation: 388
Put a zip disk in the drive and run:

# fdisk -l
# cat /proc/partitions

Post the output of both commands.

Your system may be having trouble automatically generating the device file when a disk is inserted. The above commands will let you know if this is a problem. If it is, you may be able to create a mounting script which generates hddx using the mknod command and then mounts the device.

Last edited by kilgoretrout; 02-14-2006 at 09:14 AM.
 
Old 02-15-2006, 03:03 PM   #5
xode
Member
 
Registered: Aug 2003
Distribution: Mandrake 9.0; FC4; FC8; SUSE 10.3; SUSE 12.1; SUSE 13.2
Posts: 638

Original Poster
Blog Entries: 1

Rep: Reputation: 52
From a root console:

/sbin/fdisk -l -->


Disk /dev/hdd: 64 heads, 32 sectors, 96 cylinders
Units = cylinders of 2048 * 512 bytes

Device Boot Start End Blocks Id System
/dev/hdd4 * 1 96 98288 6 FAT16

Disk /dev/ide/host0/bus0/target0/lun0/disc: 255 heads, 63 sectors, 9964 cylinders
Units = cylinders of 16065 * 512 bytes

Device Boot Start End Blocks Id System
/dev/ide/host0/bus0/target0/lun0/part1 * 1 563 4522266 83 Linux
/dev/ide/host0/bus0/target0/lun0/part2 564 9964 75513532+ 5 Extended
/dev/ide/host0/bus0/target0/lun0/part5 564 1245 5478133+ 82 Linux swap
/dev/ide/host0/bus0/target0/lun0/part6 1246 1877 5076508+ 83 Linux
/dev/ide/host0/bus0/target0/lun0/part7 1878 3834 15719571 83 Linux
/dev/ide/host0/bus0/target0/lun0/part8 3835 9964 49239193+ 83 Linux

cat /proc/partitions -->

major minor #blocks name

22 64 98304 hdd
22 68 98288 hdd4
3 0 80043264 ide/host0/bus0/target0/lun0/disc
3 1 4522266 ide/host0/bus0/target0/lun0/part1
3 2 1 ide/host0/bus0/target0/lun0/part2
3 5 5478133 ide/host0/bus0/target0/lun0/part5
3 6 5076508 ide/host0/bus0/target0/lun0/part6
3 7 15719571 ide/host0/bus0/target0/lun0/part7
3 8 49239193 ide/host0/bus0/target0/lun0/part8
 
Old 02-15-2006, 10:48 PM   #6
kilgoretrout
Senior Member
 
Registered: Oct 2003
Posts: 2,987

Rep: Reputation: 388Reputation: 388Reputation: 388Reputation: 388
I assume you have looked in your /dev directory and determined that there is no /dev/hdd4 after inserting a zip disk in the drive. On the other hand, your output indicates that the kernel is definitely picking up the device. udev should dynamically create hdd4 on insertion of the disk but apparently it's not. Try creating hdd4 with mknod like so:

# mknod -m 777 /dev/hdd4 b 22 68

and then, mount the drive:

# mount -t msdos /dev/hdd4 /mnt/hdd4

If this works, post back. You will have to recreate hdd4 every time you reboot as it will probably not survive. I think you should be able to automate this by putting the above mknod command at the end of your rc.local init script.
 
Old 02-16-2006, 09:59 AM   #7
Padma
Member
 
Registered: Aug 2003
Location: Omaha, NE, USA
Distribution: PCLinuxOS 2007
Posts: 808

Rep: Reputation: 30
FWIW, I have had this problem since MDK 10.0. (It worked fine in 9.2 and all previous versions I used.) Then again, I have been using s USB Key for everything I used to use my Zip drive for, so I have never bothered to see that it got fixed.
 
Old 02-16-2006, 01:34 PM   #8
kilgoretrout
Senior Member
 
Registered: Oct 2003
Posts: 2,987

Rep: Reputation: 388Reputation: 388Reputation: 388Reputation: 388
IIRC mdk10 is when they went to the 2.6 kernel which uses udev to create device files dynamnically instead of devfs which had a load of static device files in /dev. I'm fairly certain the problem here is with inadequate support for ide zip drives in udev. As you point out, most people have abandoned their zip drives for usb pen drives, leaving little motivation to work on this old technology.

I recall going through this identical problem with somebody else back when 2.6 came out. I'm pretty sure the solution was to create the device with mknod and then automate the whole procedure through in rc.local. That's essentially what I'm suggesting here.
 
Old 02-16-2006, 05:31 PM   #9
xode
Member
 
Registered: Aug 2003
Distribution: Mandrake 9.0; FC4; FC8; SUSE 10.3; SUSE 12.1; SUSE 13.2
Posts: 638

Original Poster
Blog Entries: 1

Rep: Reputation: 52
Quote:
From kilgoretrout

# mknod -m 777 /dev/hdd4 b 22 68
This worked and, even better, /dev/hdd4 does survive the reboot process (probably because hdd now gets recreated on each reboot using /etc/modules in time to rescue /dev/hdd4). So, now /dev/hdd4 can be set up in /etc/fstab and I can now mount and unmount the drive from a regular user console.
 
  


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
iomega zip drive, recognized by Suse, can't read or write to MrsHill Linux - Newbie 2 03-19-2006 06:25 AM
Nautilus crash - iomega Zip drive (internal) - Fedora Core 1 gekko513 Linux - Hardware 0 02-06-2006 01:58 PM
Iomega Zip 100 parallel drive installation problem bbmak Linux - Hardware 5 07-15-2004 01:52 AM
internal iomega ZIP 100 problem jeanrev Linux - Hardware 1 08-16-2003 01:25 AM
Installing Iomega Zip 100 drive jockstrap Linux - Software 1 04-23-2001 08:42 AM

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

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