Re: Nikon Coolpix 2000: "no medium found" w/ Linux 2.6.12

From: Georg J. Stach (VORNAME.j.NACHNAME_at_gmx.de)
Date: 10/27/05


Date: Thu, 27 Oct 2005 18:52:48 +0200

The problem can be solved by applying the following diff to sd.c:

-----------------------------------------------------------------------

--- sd.c Mon Nov 10 10:26:50 2003
+++ sd.c Sun Jan 4 15:30:59 2004
@@ -606,9 +606,13 @@
         * by sd_spinup_disk() from sd_revalidate_disk(), which happens
whenever
                  * sd_revalidate() is called.
                           */
                           +#if 0
                                   retval = -ENODEV;
                                           if
(scsi_block_when_processing_errors(sdp))
                                                           retval =
scsi_ioctl(sdp, SCSI_IOCTL_TES
T_UNIT_READY, NULL);
                                                           +#else
                                                           + retval =
0;
                                                           +#endif

-----------------------------------------------------------------------

Unfortunately I don't know the source where I found this diff. Anyway, it's
not included in the current kernel sources of Linux 2.6.

Georg



Relevant Pages

  • Re: User-mode Linux (Was: modify syscall nr on-the-fly)
    ... retrieving revision 1.17 ... diff -u -r1.17 linux_ptrace.c ... Linux keeps debug registers at the following ... +struct linux_pt_lreg { ...
    (freebsd-hackers)
  • Re: Am I on the right track?
    ... At one time, there were a couple errors in Jeff's code, as available for download. ... diff -u orig/eat3.asm ./eat3.asm ... Segment of installed display buffer ... "Step by Step" gets into 32-bit code a little, in the Linux part, but is mostly 16-bit. ...
    (comp.lang.asm.x86)
  • Re: file-copy corruption
    ... I tend to disagree with the other who have replied so far, I've found NFS to be 100% reliable for many years, with large clusters of clients using many flavors of Unix, Whenever things have failed I've always being able to find the root cause. ... On any recent Linux, it would be very rare for there to be "no indication", so your log files are your friend. ... diff had an option to not follow symlinks..). ...
    (Fedora)
  • Re: Need replacement disks for Tower of Myraglen
    ... That'll tell you which blocks were modified by the crackers. ... I usually just use the Linux "diff" command. ... Some Windows installations ...
    (comp.sys.apple2)
  • Re: Runtime.exec() String length
    ... .exec-ing not being platform independent and all ... On Linux, execve() returns E2BIG when the argument list is too big. ... After poking around the kernel sources it seems the limit is defined ...
    (comp.lang.java.programmer)