Mike Jeays <[EMAIL PROTECTED]> writes:

> I have at present two emulated SCSI devices on my system; a USB flash
> drive, and a DVD-writer.
> 
> They get assigned:
>  
>  0,0,0     0) 'SanDisk ' 'Cruzer Micro    ' '2033' Removable Disk
>  2,0,0   200) 'HL-DT-ST' 'DVDRAM GSA-4160B' 'A300' Removable CD-ROM
> 
> if the USB device is present at boot time (I think).
> 
> So my script for burning CDs, which says:
>   mkisofs -J -L -R -o x1.iso "$*"
>   cdrecord -v dev=2,0,0 x1.iso
>   rm -f x1.iso
> is very fragile.
> 
> How should I do it?  Write a script to read the output of cdrecord
> -scanbus and grab the device number?  There has to be a "right" way, and
> instinct says this isn't it.

It's not a bad way.  

I'm not sure I understand why the device numbering is so fragile,
though; wouldn't the ATAPI buses available at boot time be the same
whether they have devices or not?

-- 
Lowell Gilbert, embedded/networking software engineer, Boston area
                http://be-well.ilk.org/~lowell/
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Reply via email to