Date: Sun, 13 Feb 2005 22:52:54 -0500 From: Mike Jeays <Mike.Jeays@rogers.com> To: freebsd-questions@freebsd.org Subject: SCSI device numbers Message-ID: <1108353173.33317.10.camel@chaucer.jeays.ca>
next in thread | raw e-mail | index | archive | help
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.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1108353173.33317.10.camel>