Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 12 Aug 1999 00:56:54 -0400 (EDT)
From:      "Crist J. Clark" <cjc@cc942873-a.ewndsr1.nj.home.com>
To:        kf7nn1@cybertrails.com
Cc:        questions@FreeBSD.ORG, vagner@www.timandpatrick.com
Subject:   Re: cdrecord help
Message-ID:  <199908120456.AAA15216@cc942873-a.ewndsr1.nj.home.com>
In-Reply-To: <XFMail.990811205138.kf7nn1@cybertrails.com> from "kf7nn1@cybertrails.com" at "Aug 11, 99 08:51:38 pm"

next in thread | previous in thread | raw e-mail | index | archive | help
kf7nn1@cybertrails.com wrote,
> well here is my output although i dont know if 
> the errors are due to the dummy write or not.
> 
> This is with a blank cd-r in the drive that i have done nothing
> with, and was wondering do i need to put a filesystem on it
> or something first or can i just write it raw from another
> cd-rom?

No, you make a file system for a CDROM with mkisofs, then you write
the resulting data to the disk in one shot.

> mutsgo# cdrecord -dummy -data -speed=6 dev=0,3,0 /dev/rwdc0c
> cdrecord: No such file or directory. No read access for '/dev/rwdc0c'.

Sorry, typo. /dev/rwdc0c should of course be /dev/rwcd0c.

> mutsgo# cdrecord -dummy -data -speed=6 dev=0,3,0 /dev/rwcd0c
> Cdrecord release 1.8a22 Copyright (C) 1995-1999 Jörg Schilling
> cdrecord: No such file or directory. WARNING: RR-scheduler not available, disab
> ing.
> scsidev: '0,3,0'
> scsibus: 0 target: 3 lun: 0
> Device type    : Removable CD-ROM
> Version        : 2
> Response Format: 2
> Capabilities   : SYNC 
> Vendor_info    : 'YAMAHA  '
> Identifikation : 'CRW6416S        '
> Revision       : '1.0b'
> Device seems to be: Generic mmc CD-RW.
> Using generic SCSI-3/mmc CD-R driver (mmc_cdr).
> Driver flags   : SWABAUDIO
> cdrecord: WARNING: Track size unknown. Data may not fit on disk.
> cdrecord: Undefined error: 0. WARNING: RR-scheduler not available, disabling.
> Starting to write CD/DVD at speed 6 in dummy mode for single session.
> Last chance to quit, starting dummy write in 1 seconds.
> cdrecord: Input/output error. write_g1: scsi sendcmd: retryable error
> CDB:  2A 00 00 00 10 B6 00 00 1F 00
> status: 0x2 (CHECK CONDITION)
> Sense Bytes: 70 00 05 00 00 00 00 0A 00 00 00 00 21 00 00 00 00 00 00 00 00 00 
> 0 08 00 00 00 00 00 00 08 00
> Sense Key: 0x5 Illegal Request, Segment 0
> Sense Code: 0x21 Qual 0x00 (logical block address out of range) Fru 0x0
> Sense flags: Blk 0 (not valid) 
> resid: 63488
> cmd finished after 2.263s timeout 40s
> write track data: error after 8761344 bytes
> Sense Bytes: 70 00 00 00 00 00 00 0A 00 00 00 00 00 00 00 00 00 00
> mutsgo# 

Hmmm... Reading my raw IDE CDROM, /dev/rwcd0c, gives me an error after
about 150 MB... Lemme see...

Using device /dev/wcd0c gives the same result... I wonder if... OK, it
looks like the error I get is the result of getting to the end of the
CD. It looks like the whole CD is copied,

# cp /dev/wcd0c /var/tmp/cdimage
cp: /dev/wcd0c: Input/output error
# mount -t cd9660 /dev/wcd0c /cdrom
# vnconfig /dev/vn0c /var/tmp/cdimage
# mount -t cd9660 /dev/vn0c /mnt
# diff -r /cdrom /mnt
# ls -l /var/tmp/cdimage
-rw-r-----  1 root  bin  152764416 Aug 12 00:39 /var/tmp/cdimage
# df -k /mnt /cdrom
Filesystem  1K-blocks     Used    Avail Capacity  Mounted on
/dev/wcd0c     148928   148928        0   100%    /cdrom
/dev/vn0c      148928   148928        0   100%    /mnt

That is, they are exactly the same. Check in the above example if your
source CD is not about 8761344 bytes. If the fact that the read is
finishing on an error causes trouble, you can do like I did above and
copy the CD image directly to a file on the HDD first.

HTH.
-- 
Crist J. Clark                           cjclark@home.com


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




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