Date: Mon, 15 Mar 1999 14:50:56 -0500 (EST) From: "Crist J. Clark" <cjc@cc942873-a.ewndsr1.nj.home.com> To: sriva@alice.it (Stefano Riva) Cc: cjclark@home.com, freebsd-questions@FreeBSD.ORG Subject: Re: Bootable CDs Message-ID: <199903151950.OAA01016@cc942873-a.ewndsr1.nj.home.com> In-Reply-To: <3.0.5.32.19990315192302.00b01950@relay.alice.it> from Stefano Riva at "Mar 15, 99 07:23:02 pm"
next in thread | previous in thread | raw e-mail | index | archive | help
Stefano Riva wrote, > At 11.34 15/03/99 -0500, you wrote: > >I am trying to create a custom, bootable CD of 3.1 for installing > >on some systems that cannot be connected to the Internet. I know there > > Do a "man mkisofs". There are two options ("-b" and "-c") usable when > making El Torrito bootable CDs. That's what I did. Specifically, '-b floppies/boot.flp -c floppies/boot.catalog.' > >I did try to just write it. I used cdrecord on device > >'dev=/dev/rcd0.ctl' but the command failed after just a few > > If I understand correctly, you're trying to put the device name after the > "dev" option. This is wrong. I can't seem to locate the reference now, but I saw something that indicated that for FreeBSD, you need to (or could) use the form mentioned here, If the name of the device node that has been specified on such a system referres to exactly one SCSI device, a shorthand in the form dev= devicename:@ or dev= devicename:@,lun may be used instead of dev= device- name:scsibus,target,lun. > If you haven't custom configured cdrecord, do a "cdrecord -scanbus" to > see if the unit is recognized. # cdrecord -scanbus Cdrecord release 1.6.1 Copyright (C) 1995-1998 Jörg Schilling cdrecord: No such file or directory. Cannot open SCSI driver. # dmesg | grep ^cd0 cd0(ahc0:4:0): CD-ROM can't get the size # cdrecord dev=0,4,0 -inq Cdrecord release 1.6.1 Copyright (C) 1995-1998 Jörg Schilling scsidev: '0,4,0' scsibus: 0 target: 4 lun: 0 cdrecord: No such file or directory. Cannot open SCSI driver. But, # cdrecord dev=/dev/rcd0.ctl -inq Cdrecord release 1.6.1 Copyright (C) 1995-1998 Jörg Schilling scsidev: '/dev/rcd0.ctl' devname: '/dev/rcd0.ctl' scsibus: -2 target: -2 lun: -2 Device type : Removable CD-ROM Version : 2 Response Format: 2 Capabilities : SYNC LINKED Vendor_info : 'SAF ' Identifikation : 'CD-R8020 ' Revision : '1.10' Device seems to be: Generic mmc CD-R. > Create a link to the proper device with "ln > -s /dev/rcdX.ctl /dev/scgx" where X is the unit number, probably 0 or 1 if > you have a reader connected to the same machine. By default cdrecord uses > /dev/scgx. OK, let me try a '-dummy' run. First, # ln -s /dev/rcd0.ctl /dev/scg0 > To burn a CD, place "BUS,SCSI_ID,LUN" after the dev option; for example, > if your CD writer is on SCSI bus 0, ID 4, LUN 0, the option should be > "dev=0,4,0". In this case, the following is a sample command (1x writing): > > cdrecord -v -fs=0 speed=1 dev=0,4,0 /myisoimage I know the "0,4,0" doesn't work for me. I'll try what I did before for now, and give you all the exact output... Oops, first try failed. I need to go put in a disc... Now, I get, # cdrecord speed=4 -v -data -dummy dev=/dev/rcd0.ctl boot.cdrom Cdrecord release 1.6.1 Copyright (C) 1995-1998 Jörg Schilling TOC Type: 1 = CD-ROM scsidev: '/dev/rcd0.ctl' devname: '/dev/rcd0.ctl' scsibus: -2 target: -2 lun: -2 atapi: 0 Device type : Removable CD-ROM Version : 2 Response Format: 2 Capabilities : SYNC LINKED Vendor_info : 'SAF ' Identifikation : 'CD-R8020 ' Revision : '1.10' Device seems to be: Generic mmc CD-R. Using generic SCSI-3/mmc CD-R driver (mmc_cdr). Driver flags : SWABAUDIO Track 01: data 238 MB Total size: 273 MB (27:07.42) = 122057 sectors Lout start: 274 MB (27:09/32) = 122057 sectors Current Secsize: 2048 ATIP info from disk: Indicated writing power: 4 Is not unrestricted Is not erasable ATIP start of lead in: -11250 (97:32/00) ATIP start of lead out: 333975 (74:15/00) Disk type: Cyanine, AZO or similar Manufacturer: TDK Corporation Blocks total: 333975 Blocks current: 334125 Blocks remaining: 212068 RBlocks total: 345736 RBlocks current: 345886 RBlocks remaining: 223829 Starting to write CD/DVD at speed 4 in dummy mode for single session. Last chance to quit, starting dummy write in 1 seconds. Waiting for reader process to fill input-buffer ... input-buffer ready. Starting new track at sector: 0 cdrecord: Input/output error. write_g1: scsi sendcmd: retryable error CDB: 2A 00 00 00 84 6C 00 00 1E 00 status: 0x2 (CHECK CONDITION) Sense Bytes: 70 00 04 00 00 00 00 0A 00 00 00 00 09 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 Sense Key: 0x4 Hardware Error, Segment 0 Sense Code: 0x09 Qual 0x01 (tracking servo failure) Fru 0x0 Sense flags: Blk 0 (not valid) resid: 61440 cmd finished after 2.669s timeout 40s write track data: error after 69427200 bytes Sense Bytes: 70 00 00 00 00 00 00 0A 00 00 00 00 00 00 00 00 00 00 Writing time: 120.551s Fixating... WARNING: Some drives don't like fixation in dummy mode. cdrecord: Input/output error. close track/session: scsi sendcmd: retryable error CDB: 5B 00 02 00 00 00 00 00 00 00 status: 0x2 (CHECK CONDITION) Sense Bytes: 70 00 04 00 00 00 00 0A 00 00 00 00 09 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 Sense Key: 0x4 Hardware Error, Segment 0 Sense Code: 0x09 Qual 0x01 (tracking servo failure) Fru 0x0 Sense flags: Blk 0 (not valid) cmd finished after 70.777s timeout 480s Fixating time: 70.779s cdrecord: fifo had 1198 puts and 1131 gets. cdrecord: fifo was 0 times empty and 1110 times full, min fill was 94%. CD-Rs are cheap, so I'll give it a try... And lo' and behold... I can mount the CD and everything seems to be there. So, are those errors I got harmless? I got them both in the '-dummy' attempt and the real thing. I guess the symlink was all that I was missing. Now just to check if it boots. -- 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?199903151950.OAA01016>