From owner-freebsd-stable@freebsd.org Tue Jun 16 21:35:43 2020 Return-Path: Delivered-To: freebsd-stable@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id A678533599C for ; Tue, 16 Jun 2020 21:35:43 +0000 (UTC) (envelope-from SRS0=sbap=75=quip.cz=000.fbsd@elsa.codelab.cz) Received: from elsa.codelab.cz (elsa.codelab.cz [94.124.105.4]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 49mhML2ypNz3Wlh for ; Tue, 16 Jun 2020 21:35:42 +0000 (UTC) (envelope-from SRS0=sbap=75=quip.cz=000.fbsd@elsa.codelab.cz) Received: from elsa.codelab.cz (localhost [127.0.0.1]) by elsa.codelab.cz (Postfix) with ESMTP id 8C5DA28422 for ; Tue, 16 Jun 2020 23:35:34 +0200 (CEST) Received: from illbsd.quip.test (ip-62-24-92-232.net.upcbroadband.cz [62.24.92.232]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by elsa.codelab.cz (Postfix) with ESMTPSA id ADAE028417 for ; Tue, 16 Jun 2020 23:35:33 +0200 (CEST) Subject: Re: stucked on reading bad cd-rom To: freebsd-stable@freebsd.org References: <5e46995f-f6c3-c3c4-ff3f-6dc486e4ad9e@quip.cz> <1e174629-ed5a-7a34-a92a-a346d7991142@grosbein.net> From: Miroslav Lachman <000.fbsd@quip.cz> Message-ID: Date: Tue, 16 Jun 2020 23:35:33 +0200 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:68.0) Gecko/20100101 Thunderbird/68.6.0 MIME-Version: 1.0 In-Reply-To: <1e174629-ed5a-7a34-a92a-a346d7991142@grosbein.net> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 49mhML2ypNz3Wlh X-Spamd-Bar: +++ Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=none (mx1.freebsd.org: domain of SRS0=sbap=75=quip.cz=000.fbsd@elsa.codelab.cz has no SPF policy when checking 94.124.105.4) smtp.mailfrom=SRS0=sbap=75=quip.cz=000.fbsd@elsa.codelab.cz X-Spamd-Result: default: False [3.49 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; ARC_NA(0.00)[]; MID_RHS_MATCH_FROM(0.00)[]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_SPAM_SHORT(0.54)[0.543]; MIME_GOOD(-0.10)[text/plain]; TO_DN_NONE(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[freebsd-stable@freebsd.org]; AUTH_NA(1.00)[]; RCPT_COUNT_ONE(0.00)[1]; RCVD_COUNT_THREE(0.00)[3]; DMARC_NA(0.00)[quip.cz]; NEURAL_SPAM_MEDIUM(0.86)[0.856]; NEURAL_SPAM_LONG(0.89)[0.893]; R_SPF_NA(0.00)[no SPF record]; FORGED_SENDER(0.30)[000.fbsd@quip.cz,SRS0=sbap=75=quip.cz=000.fbsd@elsa.codelab.cz]; RCVD_TLS_LAST(0.00)[]; R_DKIM_NA(0.00)[]; ASN(0.00)[asn:42000, ipnet:94.124.104.0/21, country:CZ]; MIME_TRACE(0.00)[0:+]; FROM_NEQ_ENVFROM(0.00)[000.fbsd@quip.cz, SRS0=sbap=75=quip.cz=000.fbsd@elsa.codelab.cz] X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 16 Jun 2020 21:35:44 -0000 On 15/06/2020 13:41, Eugene Grosbein wrote: > 15.06.2020 18:10, Miroslav Lachman wrote: > >> I am running FreeBSD 11.3. Whenever I inserted some 20 year old CD (backups on CD-R) which is currently unreadable the system is trying to read the CD even after I want to eject it by button in the CD drive or "eject" command. >> >> These messages are repeatedly logged in messages >> >> Jun 15 13:05:28 illbsd kernel: (cd0:ahcich2:0:0:0): Error 6, Unretryable error >> Jun 15 13:05:28 illbsd kernel: (cd0:ahcich2:0:0:0): cddone: got error 0x6 back >> Jun 15 13:05:28 illbsd kernel: (cd0:ahcich2:0:0:0): READ(10). CDB: 28 00 00 00 00 00 00 00 11 00 >> Jun 15 13:05:28 illbsd kernel: (cd0:ahcich2:0:0:0): CAM status: SCSI Status Error >> Jun 15 13:05:28 illbsd kernel: (cd0:ahcich2:0:0:0): SCSI status: Check Condition >> Jun 15 13:05:28 illbsd kernel: (cd0:ahcich2:0:0:0): SCSI sense: NOT READY asc:3a,2 (Medium not present - tray open) >> >> It can take from 1 to 5 minutes from pressing eject to actually open the drive. >> >> Is there something I can do to not wait too long for this? Any tuneables or command to interrupt endless reading? > > Perhaps it's GEOM doing multiple "taste" attempts to detetmine logical format of the media. > Try setting "sysctl kern.geom.notaste=1" temporary. It seems it helped. Thank you! Miroslav Lachman