System keeps trying to access/read my laptop’s empty CD drive

Forum Forums New users New Users and General Questions System keeps trying to access/read my laptop’s empty CD drive

  • This topic has 25 replies, 8 voices, and was last updated May 11-8:05 pm by Anonymous.
Viewing 11 posts - 16 through 26 (of 26 total)
  • Author
    Posts
  • #59180
    Member
    einpoklum
      Helpful
      Up
      0
      ::

      @christophe: No hardware malfunction can make the kernel try to read a CD it has not been requested to read. The root filesystem is not there. We’re not yet at FS mounting time, and even then there’s no entry in /etc/fstab .

      Also – yes, putting a CD in the drive, on boot, avoids these problems entirely (see my dmesg when a disc is in the drive).

      • This reply was modified 2 years ago by einpoklum.
      #59182
      Anonymous
        Helpful
        Up
        0
        ::

        startpage.com
        +solved linux tag#0 unaligned transfer failed to read block 0x0

        ^—v

        https://forums.gentoo.org/viewtopic-t-1116562-start-0.html
        (Aug 2020) “upgrading to sys-apps/util-linux-2.36 cured the problem”

        (Apr 2020) https://bugs.winehq.org/show_bug.cgi?id=49615

        asking to read from a disc which does not exist (none is inserted into the drive.) The request is passed down to the drive, which quite correctly throws back an error. (What else could it do?) This error is logged to dmesg – often such messages are useful and interesting. Most causes of such errors are things like actual surface corruption. (Or attempting to access a protected DVD without first authenticating.) This error – not so much as it is due to an obviously unsatisfiable but perfectly avoidable request from the application.

        #59186
        Member
        einpoklum
          Helpful
          Up
          0
          ::

          @skidoo : At the linked post (not the bug page) it says:

          I was about to report that upgrading to sys-apps/util-linux-2.36 cured the problem, as I’d upgraded and rebooted, and got no messages. However, see below, it’s still there.

          So that doesn’t solve the problem apparently. But we’re close!

          I could still try using a newer util-linux. What do you think? Shall I get one from a Debian repo? Or build my own? And – which parts of util-linux should I put where?

          • This reply was modified 2 years ago by einpoklum.
          • This reply was modified 2 years ago by einpoklum.
          #59187
          Moderator
          Brian Masinick
            Helpful
            Up
            0
            ::

            sodu su -c ‘hdparm -I /dev/sr0’

            will give information about sr0; I wonder if “this” will help:

            Source: https://www.linux-magazine.com/Online/Features/Tune-Your-Hard-Disk-with-hdparm

            There are quite a few options listed. In any case, using /dev/sr0 for the device works with this drive; I tried the info command just to see how to use it.

            • This reply was modified 2 years ago by Brian Masinick.
            • This reply was modified 2 years ago by Brian Masinick.

            --
            Brian Masinick

            #59190
            Member
            einpoklum
              Helpful
              Up
              0
              ::

              @Brian:

              
              root@clevo-m3cw:/home/antixer# hdparm -I /dev/sr0
              
              /dev/sr0:
              SG_IO: bad/missing sense data, sb[]:  70 00 00 00 00 00 00 0a 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
              
              ATA device, with non-removable media
              Standards:
              	Likely used: 1
              Configuration:
              	Logical		max	current
              	cylinders	0	0
              	heads		0	0
              	sectors/track	0	0
              	--
              	Logical/Physical Sector size:           512 bytes
              	device size with M = 1024*1024:           0 MBytes
              	device size with M = 1000*1000:           0 MBytes 
              	cache/buffer size  = unknown
              Capabilities:
              	IORDY not likely
              	Cannot perform double-word IO
              	R/W multiple sector transfer: not supported
              	DMA: not supported
              	PIO: pio0 
              root@clevo-m3cw:/home/antixer# hdparm -B /dev/sr0
              
              /dev/sr0:
              SG_IO: bad/missing sense data, sb[]:  70 00 00 00 00 00 00 0a 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
               APM_level	= not supported
              

              I should mention I disabled ACPI and APM earlier today via /etc/default/grub, because the laptop was going to sleep every minute or so. But the sr0 problem manifested the same both before and after doing this.

              #59194
              Moderator
              Brian Masinick
                Helpful
                Up
                0
                ::

                Was this when the drive had nothing in it? Someone mentioned the hardware may be going bad; I think Christophe suggested sticking in an empty CD and see if that lessens or stops the chatter. IF that B option works with /dev/sr0 (it DOESN’T on my system) maybe slowing it way down will at least slow down the chatter.
                But maybe there is another option for hdparm that might help.

                The “missing sense” data is what makes me wonder if the CD drive is on it’s way out, hardware wise.

                --
                Brian Masinick

                #59196
                Member
                einpoklum
                  Helpful
                  Up
                  0
                  ::

                  Was this when the drive had nothing in it?

                  Yes.

                  The “missing sense” data is what makes me wonder if the CD drive is on it’s way out, hardware wise.

                  I wouldn’t know about that; but what I do know is that these reads just shouldn’t be attempted in the first place 🙁

                  #59198
                  Moderator
                  Brian Masinick
                    Helpful
                    Up
                    0
                    ::

                    Was this when the drive had nothing in it?

                    Yes.

                    The “missing sense” data is what makes me wonder if the CD drive is on it’s way out, hardware wise.

                    I wouldn’t know about that; but what I do know is that these reads just shouldn’t be attempted in the first place

                    I agree with you; the ideal solution would be to see nothing from sr0 unless you are using it, but since we don’t have a lot of explicit experience with this, it seems even the most knowledgeable people in the forum have not found any solution and I’m definitely not an expert in this area either.

                    I am suspicious of the hardware. I was a systems administrator many years ago, and when I ran into this kind of a problem, it was just as likely to be either hardware or software. With parts available as an admin, I’d swap suspicious hardware components. If the failure was still there, then it was definitely software. So when you have the luxury of grabbing from a parts bin, that’s a faster way to eliminate various possibilities. When cost is a major issue and parts are not readily available, we have fewer options, and we end up suspecting hardware if several software solutions still don’t work.

                    Earlier you mentioned that you could put in an empty CD and that silenced the chatter; if that’s still an option I recommend doing that until we solve or stumble upon a true solution in hardware or software, fully understanding that you REALLY want to solve the issue entirely.

                    • This reply was modified 2 years ago by Brian Masinick.
                    • This reply was modified 2 years ago by Brian Masinick.

                    --
                    Brian Masinick

                    #59206
                    Anonymous
                      Helpful
                      Up
                      0
                      ::

                      ATA device, with non-removable media
                      [..]
                      SG_IO: bad/missing sense data

                      non-removable media? clearly, something is miscommunicating the ID + supported features

                      That device, IIRC, was a “teensy IDE CD-RW drive for laptops”…
                      but from what I’ve read, the solution might involve use of a “usb-storage.quirks” kernel bootline parameter

                      https://www.kernel.org/doc/html/v5.0/admin-guide/kernel-parameters.html
                      find in page:
                      usb-storage.quirks=

                      =0644:xxxx:flag1,flag2,flag3…
                      TEAC : code for your model : flags

                      https://www.smartmontools.org/wiki/SAT-with-UAS-Linux
                      https://askubuntu.com/questions/637450/cannot-perform-smart-data-and-self-test-on-external-hard-drive
                      https://askubuntu.com/questions/768373/hard-drive-error-bad-missing-sense-data
                      https://superuser.com/questions/1213715/hdparm-error-sg-io-bad-missing-sense-data

                      #59266
                      Member
                      einpoklum
                        Helpful
                        Up
                        0
                        ::

                        @skidoo: I wonder how my model name (DW-224E-A) translates into a model code. Also – it’s not on a USB bus, I think, so why would usb-storage quirks work on it?

                        #59268
                        Anonymous
                          Helpful
                          Up
                          0
                          ::

                          why would usb-storage quirks work on it?

                          reposting one of the earlier links. Read the “Workarounds” section, eh
                          https://www.smartmontools.org/wiki/SAT-with-UAS-Linux
                          .

                          I wonder how my model name (DW-224E-A) translates into a model code.

                          ? ? ?

                          hwinfo | grep TEAC
                          udevadm info /dev/sr0 | grep ID_MODEL=
                          udevadm info --attribute-walk --path=$(udevadm info --query=path --name=/dev/sr0) | grep idProduct
                        Viewing 11 posts - 16 through 26 (of 26 total)
                        • You must be logged in to reply to this topic.