Re: Bash programming; Was: connecting to SCSI drive

2002-11-21 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2002-11-21 02:17:13 -0500: Following the suggestions that were posted, I now have a working script that checks for a connection to the DVD-RAM drive. The following works, but returns the 'Device not configured' error if there's no disk in the drive. elif

Re: Bash programming; Was: connecting to SCSI drive

2002-11-21 Thread Bob Hall
On Thu, Nov 21, 2002 at 10:41:13AM +0100, Roman Neuhauser wrote: MSG=$(sudo mount ... 21) if [ $? -ne 0 -a $MSG == Device not configured ]; then echo My custom error message fi Thanks. The one thing I never thought to try was putting '21' *inside* the parentheses. It

connecting to SCSI drive

2002-11-20 Thread Bob Hall
I use a DVD burner for backups, and I usually forget to turn it on when I boot my FBSD box. Turning it on and rebooting isn't a big deal, but is there a way to get FBSD to see the drive without rebooting? Is there a process that can be reset or a command that tells FBSD that the drive exists?

Re: connecting to SCSI drive

2002-11-20 Thread paul beard
Bob Hall wrote: I use a DVD burner for backups, and I usually forget to turn it on when I boot my FBSD box. Turning it on and rebooting isn't a big deal, but is there a way to get FBSD to see the drive without rebooting? Is there a process that can be reset or a command that tells FBSD that the

Re: connecting to SCSI drive

2002-11-20 Thread paul beard
Dan Nelson wrote: Power it on once before reboot, then run camcontrol devlist. Note the bus, target, and lun numbers of the DVD drive. Then later you can use the camcontrol rescan b:t:l command to force the kernel to detect that device. I'm not sure you need to reboot: my experience has

Re: connecting to SCSI drive

2002-11-20 Thread Dan Nelson
In the last episode (Nov 20), Bob Hall said: I use a DVD burner for backups, and I usually forget to turn it on when I boot my FBSD box. Turning it on and rebooting isn't a big deal, but is there a way to get FBSD to see the drive without rebooting? Is there a process that can be reset or a

Re: connecting to SCSI drive

2002-11-20 Thread Bob Hall
On Wed, Nov 20, 2002 at 11:38:17AM -0800, paul beard wrote: Dan Nelson wrote: Power it on once before reboot, then run camcontrol devlist. Note the bus, target, and lun numbers of the DVD drive. Then later you can use the camcontrol rescan b:t:l command to force the kernel to

Bash programming; Was: connecting to SCSI drive

2002-11-20 Thread Bob Hall
Following the suggestions that were posted, I now have a working script that checks for a connection to the DVD-RAM drive. The following works, but returns the 'Device not configured' error if there's no disk in the drive. elif !(sudo mount -t ufs -o rw /dev/cd0a $montering_punkt)