Failed to open device `coolscan:/dev/scanner': Device busy.

From: dave-mlist@bfnet.com
Date: Thu Jan 18 2001 - 17:44:14 PST

  • Next message: Douglas Gilbert: "Re: Failed to open device `coolscan:/dev/scanner': Device busy."

    I've searched for some kind of explanation for this in the man pages,
    to no avail. Can anyone suggest why scanimage thinks my scanner is
    busy?

    [root@home /root]# scanimage -V
    scanimage (sane-backends) 1.0.4
    [root@home /root]# scanimage -d coolscan:/dev/scanner
    scanimage: open of device coolscan:/dev/scanner failed: Device busy
    [root@home /root]# cat /proc/scsi/scsi
    Attached devices:
    Host: scsi0 Channel: 00 Id: 02 Lun: 00
      Vendor: Nikon Model: LS-2000 Rev: 1.31
      Type: Scanner ANSI SCSI revision: 02
    [root@home /root]# ./sane-backends-1.0.4/tools/find-scanner
    # Note that find-scanner will find any scanner that is connected
    # to a SCSI bus. It will even find scanners that are not supported
    # at all by SANE. It won't find a scanner that is connected to a
    # parallel, USB or other non-SCSI port.

    find-scanner: found scanner "Nikon LS-2000 1.31" at device /dev/scanner
    find-scanner: found scanner "Nikon LS-2000 1.31" at device /dev/sg0
    find-scanner: found scanner "Nikon LS-2000 1.31" at device /dev/sga
    [root@home /root]#

    And here is the output of strace. I have no idea why it is looking
    for the v4linux devices.

    [root@home /root]# strace scanimage -d coolscan:/dev/scanner
    execve("/usr/bin/scanimage", ["scanimage", "-d", "coolscan:/dev/scanner"], [/* 28 vars */]) = 0
    brk(0) = 0x804fa68
    old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2aabf000
    open("/etc/ld.so.preload", O_RDONLY) = -1 ENOENT (No such file or directory)
    open("/etc/ld.so.cache", O_RDONLY) = 3
    fstat(3, {st_mode=S_IFREG|0644, st_size=24381, ...}) = 0
    old_mmap(NULL, 24381, PROT_READ, MAP_PRIVATE, 3, 0) = 0x2aac0000
    close(3) = 0
    open("/usr/lib/sane/libsane.so.1", O_RDONLY) = 3
    fstat(3, {st_mode=S_IFREG|0755, st_size=106038, ...}) = 0
    read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0@\27\0\000"..., 4096) = 4096
    old_mmap(NULL, 23700, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x2aac6000
    mprotect(0x2aacb000, 3220, PROT_NONE) = 0
    old_mmap(0x2aacb000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x4000) = 0x2aacb000
    close(3) = 0
    open("/lib/libnsl.so.1", O_RDONLY) = 3
    fstat(3, {st_mode=S_IFREG|0755, st_size=370141, ...}) = 0
    read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\20?\0\000"..., 4096) = 4096
    old_mmap(NULL, 88104, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x2aacc000
    mprotect(0x2aade000, 14376, PROT_NONE) = 0
    old_mmap(0x2aade000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x11000) = 0x2aade000
    old_mmap(0x2aae0000, 6184, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x2aae0000
    close(3) = 0
    open("/lib/libm.so.6", O_RDONLY) = 3
    fstat(3, {st_mode=S_IFREG|0755, st_size=527442, ...}) = 0
    read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\320F\0"..., 4096) = 4096
    old_mmap(NULL, 117208, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x2aae2000
    mprotect(0x2aafe000, 2520, PROT_NONE) = 0
    old_mmap(0x2aafe000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x1b000) = 0x2aafe000
    close(3) = 0
    open("/usr/lib/libjpeg.so.62", O_RDONLY) = 3
    fstat(3, {st_mode=S_IFREG|0755, st_size=143624, ...}) = 0
    read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0p%\0\000"..., 4096) = 4096
    old_mmap(NULL, 126668, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x2aaff000
    mprotect(0x2ab1d000, 3788, PROT_NONE) = 0
    old_mmap(0x2ab1d000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x1d000) = 0x2ab1d000
    close(3) = 0
    open("/lib/libdl.so.2", O_RDONLY) = 3
    fstat(3, {st_mode=S_IFREG|0755, st_size=75131, ...}) = 0
    read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\340\34"..., 4096) = 4096
    old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2ab1e000
    old_mmap(NULL, 12428, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x2ab1f000
    mprotect(0x2ab21000, 4236, PROT_NONE) = 0
    old_mmap(0x2ab21000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x1000) = 0x2ab21000
    close(3) = 0
    open("/lib/libc.so.6", O_RDONLY) = 3
    fstat(3, {st_mode=S_IFREG|0755, st_size=4101836, ...}) = 0
    read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\210\212"..., 4096) = 4096
    old_mmap(NULL, 1001532, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x2ab23000
    mprotect(0x2ac10000, 30780, PROT_NONE) = 0
    old_mmap(0x2ac10000, 16384, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0xec000) = 0x2ac10000
    old_mmap(0x2ac14000, 14396, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x2ac14000
    close(3) = 0
    mprotect(0x2ab23000, 970752, PROT_READ|PROT_WRITE) = 0
    mprotect(0x2ab23000, 970752, PROT_READ|PROT_EXEC) = 0
    munmap(0x2aac0000, 24381) = 0
    personality(PER_LINUX) = 0
    getpid() = 737
    brk(0) = 0x804fa68
    brk(0x804fa90) = 0x804fa90
    brk(0x8050000) = 0x8050000
    open("./v4l.conf", O_RDONLY) = -1 ENOENT (No such file or directory)
    open("/usr/etc/sane.d/v4l.conf", O_RDONLY) = 3
    fstat64(0x3, 0x7fffe5e4) = -1 ENOSYS (Function not implemented)
    fstat(3, {st_mode=S_IFREG|0644, st_size=204, ...}) = 0
    old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2aac0000
    read(3, "#\n# In order to use the v4linux "..., 4096) = 204
    open("/dev/bttv0", O_RDWR) = -1 ENOENT (No such file or directory)
    open("/dev/video0", O_RDWR) = -1 ENODEV (No such device)
    open("/dev/video1", O_RDWR) = -1 ENODEV (No such device)
    open("/dev/video2", O_RDWR) = -1 ENOENT (No such file or directory)
    open("/dev/video3", O_RDWR) = -1 ENOENT (No such file or directory)
    read(3, "", 4096) = 0
    close(3) = 0
    munmap(0x2aac0000, 4096) = 0
    open("coolscan:/dev/scanner", O_RDWR) = -1 ENOENT (No such file or directory)
    write(2, "scanimage: open of device coolsc"..., 68scanimage: open of device coolscan:/dev/scanner failed: Device busy
    ) = 68
    _exit(1) = ?
    [root@home /root]#

    --
    Source code, list archive, and docs: http://www.mostang.com/sane/
    To unsubscribe: echo unsubscribe sane-devel | mail majordomo@mostang.com
    



    This archive was generated by hypermail 2b29 : Thu Jan 18 2001 - 17:48:48 PST