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.
-
AuthorPosts
-
May 10, 2021 at 7:58 pm #59180Member
einpoklum
::@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.
May 10, 2021 at 8:11 pm #59182Anonymous
::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.
May 10, 2021 at 8:26 pm #59186Member
einpoklum
::@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.
May 10, 2021 at 8:28 pm #59187Moderator
Brian Masinick
::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 MasinickMay 10, 2021 at 8:35 pm #59190Member
einpoklum
::@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 supportedI 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.
May 10, 2021 at 8:40 pm #59194Moderator
Brian Masinick
::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 MasinickMay 10, 2021 at 8:51 pm #59196Member
einpoklum
::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 🙁
May 10, 2021 at 9:09 pm #59198Moderator
Brian Masinick
::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 MasinickMay 10, 2021 at 10:26 pm #59206Anonymous
::ATA device, with non-removable media
[..]
SG_IO: bad/missing sense datanon-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 parameterhttps://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 : flagshttps://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-dataMay 11, 2021 at 7:55 pm #59266Member
einpoklum
::@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?
May 11, 2021 at 8:05 pm #59268Anonymous
::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 -
AuthorPosts
- You must be logged in to reply to this topic.