{"id":15,"date":"2002-02-24T13:10:37","date_gmt":"2002-02-24T13:10:37","guid":{"rendered":"http:\/\/paulbristow.net\/blog\/?p=15"},"modified":"2002-02-24T13:10:37","modified_gmt":"2002-02-24T13:10:37","slug":"clik","status":"publish","type":"post","link":"https:\/\/paulbristow.net\/blog\/2002\/02\/24\/clik\/","title":{"rendered":"clik!"},"content":{"rendered":"<h1>The IOMEGA Clik!\/PocketZip PC Card Drive under Linux<\/h1>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"\/images\/clikdisk.jpg\" alt=\"Clik! Disk\" width=\"160\" height=\"160\" align=\"right\" \/><\/p>\n<h2>What is the PC Card PocketZip Drive?\u00c2<\/h2>\n<p>It&#8217;s a 40M removable media drive in the shape of a PCMCIA type II<br \/>\ncard.\u00c2  For more information check out<br \/>\n<a href=\"http:\/\/www.iomega.com\" target=\"_TOP\">IOMEGA&#8217;s web site<\/a>, even<br \/>\nthough they say it isn&#8217;t supported under Linux.  Note to readers from<br \/>\niomega: you are perfectly welcome to contact me. It has recently been renamed<br \/>\nto PocketZip, and the price dropped to $99.<\/p>\n<h2>News<\/h2>\n<p>Iomega seem to have made a <strong>small change in their recent clik<br \/>\ndrives<\/strong> which requires a small modification to the driver. If your new clik<br \/>\ndrive is not recognised, even though the ide-floppy driver is running you need<br \/>\nto make the following change:<\/p>\n<p>Find the line that says:<\/p>\n<p><tt>if strcmp(drive-&gt;id-&gt;model, \"IOMEGA Clik! 40 CZ ATAPI\") == 0)<br \/>\n{<\/tt><\/p>\n<p>and change it to<\/p>\n<p><tt>if strncmp(drive-&gt;id-&gt;model, \"IOMEGA Clik\", 11) == 0)<br \/>\n{<\/tt><\/p>\n<p>This should fix the problem.<\/p>\n<p><strong>Clik! and iPaq.<\/strong><br \/>\n<img loading=\"lazy\" decoding=\"async\" src=\"\/images\/ipaq-clik1.jpg\" alt=\"ipaq with clik!\" width=\"512\" height=\"384\" align=\"right\" \/><\/p>\n<p>Ross Reedstrom sent me this cool picture of his PocketZip drive working<br \/>\nin his Compaq iPaq running Linux. Apparently he did have to make a hardware<br \/>\nmodification to the sleeve, but the driver &#8220;just worked&#8221;. However, unlike<br \/>\nlaptops, the power supply of the iPaq does notice the drain of the clik!<br \/>\ndrive.<\/p>\n<p>Since kernel 2.2.18 I have been the official ide-floppy maintainer and<br \/>\nclik support has been included. If the procedures on this page work for you,<br \/>\nplease <a href=\"mailto:clik@paulbristow.net\">send me an email<\/a>. If they<br \/>\ndon&#8217;t work, REALLY send me an email.<\/p>\n<p>I have created a <a href=\"http:\/\/sourceforge.net\/projects\/ide-floppy\/\">site at sourceforge <\/a> for<br \/>\nbug reports etc. Feel free to drop things in there or just email me directly.<\/p>\n<h2>So how do I make it work under Linux?<\/h2>\n<p>First of all, you need to be running with<br \/>\n<a href=\"http:\/\/www.kernel.org\">kernel version 2.2.14<\/a> or later.  Even<br \/>\nthis isn&#8217;t enough for the drive to just work as there are some functions (like<br \/>\neject lock) that simply didn&#8217;t fit into a drive only 5mm thick.  Then<br \/>\nfollow the steps below:<\/p>\n<p>Choose the version of ide-floppy to match your kernel.<\/p>\n<table border=\"1\" width=\"80%\" align=\"CENTER\">\n<tbody>\n<tr>\n<td><a href=\"\/download\/2.2.14\/ide-floppy.c\">ide-floppy.c<\/a> for<br \/>\n2.2.14<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td><a href=\"\/download\/2.2.16\/ide-floppy.c\">ide-floppy.c<\/a> for<br \/>\n2.2.15<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td><a href=\"..\/download\/2.2.16\/ide-floppy.c\">ide-floppy.c<\/a> for<br \/>\n2.2.16<\/td>\n<td><a href=\"\/download\/2.2.16\/ide-floppy.2.2.16_patch_for_iomega_clik\">patch<\/a> for<br \/>\n2.2.16<\/td>\n<\/tr>\n<tr>\n<td><a href=\"\/download\/2.2.17\/ide-floppy.c\">ide-floppy.c<\/a> for<br \/>\n2.2.17<span style=\"color: #ffff00;\">*UPDATED<\/span><\/td>\n<td><a href=\"\/download\/2.2.17\/patch_ide-floppy\">patch<\/a> for<br \/>\n2.2.17<\/td>\n<\/tr>\n<tr>\n<td>included in official 2.2.18 onwards<\/td>\n<td>none needed<\/td>\n<\/tr>\n<tr>\n<td><a href=\"\/download\/2.4.0\/ide-floppy.c\">ide-floppy.c<\/a> for<br \/>\n2.4.0-8 onwards<\/td>\n<td>\u00c2<\/td>\n<\/tr>\n<tr>\n<td>included in official 2.4.9<\/td>\n<td>none needed<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>Download the ide-floppy.c file (if you take the patch you can work it<br \/>\nout) and copy it to your \/usr\/src\/linux\/drivers\/block directory.<br \/>\nlogin as<br \/>\nroot<br \/>\nRecompile the kernel including the<\/p>\n<p><tt>\u00c2 CONFIG_BLK_DEV_IDEFLOPPY=m\u00c2 <\/tt><\/p>\n<p>option to enable IDE Floppy devices to run as a module.  Doing it<br \/>\nas a module saves the memory when you don&#8217;t hves the memory when you don&#8217;t have<br \/>\nthe card inserted.<\/p>\n<p>To make life easier and to make it possible to exchange files with PCs<br \/>\nrunning other OS&#8217;s make sure you have VFAT support enabled in the kernel<br \/>\ntoo.<\/p>\n<p>Use your favourite kernel recompilation method.<\/p>\n<p>To compile the driver type<\/p>\n<p><tt> make modules ; make modules_install<\/tt><\/p>\n<p>If neccessary, reboot<\/p>\n<p>Make sure the PCMCIA card services package is running.<\/p>\n<p><tt> cardmgr<\/tt><\/p>\n<p>Go to a virtual console screen (i.e. not X, you can leave X running)<\/p>\n<p>Insert the Clik! PC Card, with a disk inside it.<br \/>\nYou should see<br \/>\nsomething like&#8230;<\/p>\n<p><tt> ide1 at 0x180-0x187, 0x386 on irq 15   hdc: hdc4<br \/>\nhdc: hdc4<\/tt><\/p>\n<p>This is great!  Now you just need to make a mount point and mount<br \/>\nthe disk.  Notice that just like ZIP disks, IOMEGA use partion 4 (nobody<br \/>\nknows why this is so).  To make a mount point type<\/p>\n<p><tt> mkdir \/mnt\/clik<\/tt><\/p>\n<p>or whatever you prefer as your mount  point.  Now you can<br \/>\nmount the disk by typing<\/p>\n<p><tt> mount -t vfat \/dev\/hdc4 \/mnt\/clik<\/tt><\/p>\n<p>You should now be able to list the contents of the disk with<\/p>\n<p><tt> ls -l \/mnt\/clik<\/tt><\/p>\n<p>Copying files etc should now all work too.<\/p>\n<p>You should probably put the following line in \/etc\/fstab<\/p>\n<p><tt> \/dev\/hdc4  \/mnt\/clik<br \/>\nvfat  noauto, user  0 0<\/tt><\/p>\n<p>If you are using <a href=\"http:\/\/www.kde.org\">KDE<\/a> you can download a<br \/>\n<a href=\"\/download\/Clik_Drive.kdelnk\">mount\/unmount icon<\/a> to put on your<br \/>\ndesktop.  I have been sent a couple of icon files for<br \/>\n<a href=\"http:\/\/www.gnome.org\">GNOME<\/a>, a <a href=\"\/download\/gnome-clik.png\">PNG<\/a><br \/>\nand an <a href=\"\/download\/clik.xpm\">XPM<\/a>. Thanks to Josh Jones and Giuseppe Castagna<br \/>\nfor those.<\/p>\n<h2>Inserting\/Removing Disks<\/h2>\n<p>Just like floppy disks there is no hardware protection against removing<br \/>\na disk without unmounting it.\u00c2  IF YOU DO THIS YOU WILL PROBABLY LOSE<br \/>\nDATA.  Always<\/p>\n<p><tt>umount \/mnt\/clik<\/tt><\/p>\n<p>before removing a disk. Another way to handle DOS\/Win disks is to use<br \/>\nthe mtools package (type <tt>man mtools<\/tt> to find out more)<\/p>\n<h2>Caveats, Disclaimers, things to be aware of<\/h2>\n<p>ts, Disclaimers,<br \/>\nthings to be aware of<\/p>\n<p>The patches to the driver are free software, covered by the GPL.<br \/>\nUse of this software may well void your warranty with IOMEGA.  Certainly I<br \/>\nmake no claims about the perfomance of this software other than that it works<br \/>\nfor me.  Use at your own risk.<\/p>\n<p>Having said that I will be happy to accept<br \/>\n<a href=\"mailto:clik@paulbristow.net\">comments<\/a> from users of this<br \/>\ndriver.<\/p>\n<h3>APM support<\/h3>\n<p>Everything seems to work fine. As of 2.2.17b you no longer need to leave<br \/>\nthe disk in the drive<\/p>\n<h3>Battery life<\/h3>\n<p>I did not notice any real change in battery life by having the drive<br \/>\ninserted, even with a disk mounted.  The power saving circuitry in the<br \/>\ndrive seems to work fine.<\/p>\n<p><span style=\"color: #ffff00;\">FIXED from 2.2.17b <\/span>Booting, Returning from<br \/>\nhibernation or standby with the drive in but no disk gives a problem for<br \/>\nnow.  The way to fix it is to do a cardctl eject <em>n <\/em>where n is<br \/>\nthe PCMCIA slot your card is in, insert a disk, then do a cardctl insert <em>n<br \/>\n<\/em>to have the system recognise the disk. The same thing happens when you<br \/>\ninsert the card without a disk inside.<\/p>\n<h3>Toshiba Libretto 100\/110 CT<\/h3>\n<p>The drive only works in slot 0, the bottom PCMCIA slot. I guess this is<br \/>\nsomething to do with the Cardbus stuff in slot 1.<\/p>\n<h2>Things to do<\/h2>\n<ul>\n<li>Get IOMEGA to start claiming Linux support &#8211; a &#8220;Cool &#8211; it works with<br \/>\nLinux&#8221; sticker would be nice.<\/li>\n<\/ul>\n<h2>Acknowledgements<\/h2>\n<p>I feel like I&#8217;m standing on the shoulders of giants.  This would<br \/>\nnot have been possible without the excellent (and readable) code from Andre<br \/>\nHedrick (the Linux IDE Guy) and Gadi Oxman (the former Linux IDE Floppy<br \/>\nguy).  Thanks also go to Grant Stockly, a <a href=\"http:\/\/www.freebsd.org\">FreeBSD<\/a> guy who got the parallel port version<br \/>\nof the Clik! working under *BSD and gave me the confidence to buy my drive, and<br \/>\nAvi Freedman and Jeff Clement who were brave enough to test Alpha version<br \/>\ndrivers from a guy they&#8217;d never met.<\/p>\n<p>Thanks also to all the people who<br \/>\nemailed me saying that it worked for them.<\/p>\n<p>Good Luck!<\/p>\n<p>Paul Bristow<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The IOMEGA Clik!\/PocketZip PC Card Drive under Linux What is the PC Card PocketZip Drive?\u00c2 It&#8217;s a 40M removable media drive in the shape of a PCMCIA type II card.\u00c2 For more information check out IOMEGA&#8217;s web site, even though they say it isn&#8217;t supported under Linux. Note to readers from iomega: you are perfectly [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[15],"tags":[],"class_list":["post-15","post","type-post","status-publish","format-standard","hentry","category-open-source"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/s1wIKv-clik","jetpack-related-posts":[],"_links":{"self":[{"href":"https:\/\/paulbristow.net\/blog\/wp-json\/wp\/v2\/posts\/15","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/paulbristow.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/paulbristow.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/paulbristow.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/paulbristow.net\/blog\/wp-json\/wp\/v2\/comments?post=15"}],"version-history":[{"count":0,"href":"https:\/\/paulbristow.net\/blog\/wp-json\/wp\/v2\/posts\/15\/revisions"}],"wp:attachment":[{"href":"https:\/\/paulbristow.net\/blog\/wp-json\/wp\/v2\/media?parent=15"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/paulbristow.net\/blog\/wp-json\/wp\/v2\/categories?post=15"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/paulbristow.net\/blog\/wp-json\/wp\/v2\/tags?post=15"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}