Saturday, January 25, 2003

HP Photo Scanner 1000 works under Linux!

While at LinuxWorld I mentioned to a coworker that I picked up an HP
Photo Scanner 1000
and wanted to get it working under Linux (either Debian 'testing' or Red Hat 8.0) and he suggested just trying to mount it. Well, it works great!





This little script works well for me. Press the scan button and
wait for it to finish scanning and then run this script:


#!/bin/bash
mount /mnt/scanner
cp /mnt/scanner/* ~/tmp/scans
umount /mnt



Be sure to put this in your /etc/fstab to allow non-root users to
mount the device:

/dev/sda /mnt/scanner vfat noauto,ro,user,exec 0 0

and you have created
/mnt/scanner
previously...

If you want to get fancy, make a link to it from your KDE desktop or
copy it into Nautilus' scripts area -- ~/.gnome/nautilus-scripts/

3 comments:

  1. Hmm. This solution worked great for me with RedHat 9, but since upgrading to a 2.6 kernel, (Fedora Code 2) it doesn't seem to be so simple to mount mass storage devices like this anymore.

    I'll come back here and post my notes if I can figure out how to tweak the hotplug service to mount this little scanner...

    --Doug

    ReplyDelete
  2. Doug,

    It still seems to work for me running Linux lernel 2.6.10-1 (Debian/sarge).

    I have updated the /etc/fstab file so the files are owned by me rather than root.

    /dev/sda /mnt/scanner vfat rw,sync,uid=1000,gid=1000,user,noauto 0 0


    Where my login account's uid and gid are both 1000. Yours may be different, use the command "id" to find out what it is.

    ReplyDelete
  3. You're correct; I just had some problems with Fedora 2, kernel 2.6.8-1.521... there were some problems loading usb mass storage.

    I upgraded my kernel to 2.6.10-1.770_FC2 and the scanner loads up at /dev/sda, just like before.

    I've written a simple script to help me scan, since the device needs to be umounted and remounted before I can collect the new scan file. It is at http://douglasheld.net/projects/scanner.sh . If anyone finds the script useful, please let me know what corrections you end up making to it.

    --Doug

    ReplyDelete