From owner-freebsd-stable Fri Apr 19 12:42:48 2002 Delivered-To: freebsd-stable@freebsd.org Received: from panzer.kdm.org (panzer.kdm.org [216.160.178.169]) by hub.freebsd.org (Postfix) with ESMTP id 945DA37B405 for ; Fri, 19 Apr 2002 12:42:33 -0700 (PDT) Received: (from ken@localhost) by panzer.kdm.org (8.11.6/8.9.1) id g3JJgQF03544; Fri, 19 Apr 2002 13:42:26 -0600 (MDT) (envelope-from ken) Date: Fri, 19 Apr 2002 13:42:26 -0600 From: "Kenneth D. Merry" To: Normand Leclerc Cc: freebsd-stable@FreeBSD.ORG Subject: Re: CDROM sector size changing (was CDROM sector size on 4.5) Message-ID: <20020419134225.A2899@panzer.kdm.org> References: <000001c1e7c8$a0943ef0$b514898e@dactyl> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: <000001c1e7c8$a0943ef0$b514898e@dactyl>; from leclercn@videotron.ca on Fri, Apr 19, 2002 at 01:35:36PM -0400 Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Fri, Apr 19, 2002 at 13:35:36 -0400, Normand Leclerc wrote: > I reported a sector change on a SCSI CDRW which is hardware set to > 512bytes; it changes to 2048. I was unable to say when it did change > until now. > > Whenever I burn a CD with cdrecord and the software is killed (say a > terminal shutdown) before completion of the CD, my sector size is > switched to 2048. I have to reboot in order to get my 512bytes sectors. Makes sense. It is probably tweaking a mode page somewhere, and resets the value when it exits. If you exit prematurely, it doesn't set the sector size back to 512 bytes. You might also get it to reset the sector size back to 512 bytes if you can figure out which mode page parameter (or other parameter) is getting changed. Or you can reset the drive. e.g.: camcontrol reset 0:4:0 That might cause the drive to go back to its default configuration. Ken -- Kenneth Merry ken@kdm.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message