Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 21 Mar 2003 20:36:58 -0800 (PST)
From:      Tak Pui LOU <lou@man-97-187.ResHall.Berkeley.EDU>
To:        "Valeriy E. Ushakov" <uwe@ptc.spbu.ru>
Cc:        freebsd-stable@FreeBSD.ORG
Subject:   Re: VCD disks
Message-ID:  <20030321203202.E73586@man-97-187.ResHall.Berkeley.EDU>
In-Reply-To: <20030321181223.GD3967@snark.ptc.spbu.ru>
References:  <844r5wljvy.fsf@raven.plab.ku.dk> <20030321181223.GD3967@snark.ptc.spbu.ru>

next in thread | previous in thread | raw e-mail | index | archive | help
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: <PLEXTOR CD-R   PX-R412C 1.07> 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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030321203202.E73586>