On Sun, Feb 10, 2008 at 12:37:10PM +0100, Carlos E. R. wrote:
I have figured out that I can shut down external usb drives with
sg_start /dev/sgX -s 0
But how do I find out which device a specific path belongs to? For example, how can I find out that (currently) I need to shut down /dev/sg3 if I want to shut down the disk that is on /media/some-disk?
mount | grep "/media/some-disk"
Thanks for the quick response, Carlos! Unfortunately, this command gives me only the /dev/sdX device file. But sg_start don't work on this. sg_start wants to operate on the "generic scsi device" /dev/sgY. Please notice, there is the 'g' instead of 'd' in the device name and the sg devices have a number attached instead of a letter. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org