From owner-freebsd-stable Fri Mar 21 20:38:34 2003 Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E4B8B37B401 for ; Fri, 21 Mar 2003 20:38:32 -0800 (PST) Received: from man-97-187.ResHall.Berkeley.EDU (man-97-187.Reshall.Berkeley.EDU [169.229.97.187]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6A3FF43FA3 for ; Fri, 21 Mar 2003 20:38:32 -0800 (PST) (envelope-from lou@man-97-187.ResHall.Berkeley.EDU) Received: from man-97-187.ResHall.Berkeley.EDU (localhost.ResHall.Berkeley.EDU [127.0.0.1]) by man-97-187.ResHall.Berkeley.EDU (8.12.8/8.12.8) with ESMTP id h2M4ax3D073738; Fri, 21 Mar 2003 20:36:59 -0800 (PST) (envelope-from lou@man-97-187.ResHall.Berkeley.EDU) Received: from localhost (lou@localhost) by man-97-187.ResHall.Berkeley.EDU (8.12.8/8.12.8/Submit) with ESMTP id h2M4aw7L073735; Fri, 21 Mar 2003 20:36:59 -0800 (PST) Date: Fri, 21 Mar 2003 20:36:58 -0800 (PST) From: Tak Pui LOU To: "Valeriy E. Ushakov" Cc: freebsd-stable@FreeBSD.ORG Subject: Re: VCD disks In-Reply-To: <20030321181223.GD3967@snark.ptc.spbu.ru> Message-ID: <20030321203202.E73586@man-97-187.ResHall.Berkeley.EDU> References: <844r5wljvy.fsf@raven.plab.ku.dk> <20030321181223.GD3967@snark.ptc.spbu.ru> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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 Hi, What is wrong with my CD-R writer? I got the following with a VCD: %dd if=/dev/cd0c of=/dev/null bs=2352 dd: /dev/cd0c: Invalid argument 0+0 records in 0+0 records out 0 bytes transferred in 0.001101 secs (0 bytes/sec) When I set bs=2048, it works. I can never play any VCD with FBSD with my Plexwriter. cd0 at ahc0 bus 0 target 4 lun 0 cd0: Removable CD-ROM SCSI-2 device cd0: 10.000MB/s transfers (10.000MHz, offset 8) cd0: cd present [303323 x 2048 byte records] I was booting the machine with a data CD inside. Will that affect anything? --- Lou On Fri, 21 Mar 2003, Valeriy E. Ushakov wrote: > On Fri, Mar 21, 2003 at 18:17:05 +0100, Dmitry Karasik wrote: > > > I do not want the question to sound like a "why not", not even > > because the code change is safe and minimal, but because there is no > > other way to read a VCD without patching and recompiling kernel. > > Huh, I've been able to grab/watch VCDs since, uhm, 4.2 or so... In a > C program you can do: > > int bs = 2352; > ioctl(fd, CDRIOCSETBLOCKSIZE, &bs); > > and after that just use plain reads. > > SY, Uwe > -- > uwe@ptc.spbu.ru | Zu Grunde kommen > http://www.ptc.spbu.ru/~uwe/ | Ist zu Grunde gehen > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-stable" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message