From owner-freebsd-questions@FreeBSD.ORG Wed Feb 16 11:54:53 2005 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0281E16A4CE for ; Wed, 16 Feb 2005 11:54:53 +0000 (GMT) Received: from hosea.tallye.com (joel.tallye.com [216.99.199.78]) by mx1.FreeBSD.org (Postfix) with ESMTP id 40AF043D55 for ; Wed, 16 Feb 2005 11:54:48 +0000 (GMT) (envelope-from lorenl@alzatex.com) Received: from hosea.tallye.com (hosea.tallye.com [127.0.0.1]) by hosea.tallye.com (8.12.8/8.12.10) with ESMTP id j1GBskGf001332 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 16 Feb 2005 03:54:47 -0800 Received: (from sttng359@localhost) by hosea.tallye.com (8.12.8/8.12.10/Submit) id j1GBshfN001330; Wed, 16 Feb 2005 03:54:43 -0800 X-Authentication-Warning: hosea.tallye.com: sttng359 set sender to lorenl@alzatex.com using -f Date: Wed, 16 Feb 2005 03:54:43 -0800 From: "Loren M. Lang" To: Mike Jeays Message-ID: <20050216115443.GD28990@alzatex.com> References: <1108353173.33317.10.camel@chaucer.jeays.ca> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1108353173.33317.10.camel@chaucer.jeays.ca> User-Agent: Mutt/1.4.1i X-GPG-Key: ftp://ftp.tallye.com/pub/lorenl_pubkey.asc X-GPG-Fingerprint: B3B9 D669 69C9 09EC 1BCD 835A FAF3 7A46 E4A3 280C cc: freebsd-questions@freebsd.org Subject: Re: SCSI device numbers X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 16 Feb 2005 11:54:53 -0000 On Sun, Feb 13, 2005 at 10:52:54PM -0500, Mike Jeays wrote: > 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). One possibility might be to make the umass driver a module and keep atapicam compiled into the kernel, or make them both modules, but always load atapicam first. This will cause usb storage devices to always come later since they won't be detected until the umass module is loaded. P.S. Does freebsd do anything to autoload modules that might interfere? > > 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. > > > > > > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" -- I sense much NT in you. NT leads to Bluescreen. Bluescreen leads to downtime. Downtime leads to suffering. NT is the path to the darkside. Powerful Unix is. Public Key: ftp://ftp.tallye.com/pub/lorenl_pubkey.asc Fingerprint: B3B9 D669 69C9 09EC 1BCD 835A FAF3 7A46 E4A3 280C