Mailinglist Archive: opensuse (3459 mails)

< Previous Next >
Re: [opensuse] How to shut down external usb disks?
  • From: Josef Wolf <jw@xxxxxxxxxxxxx>
  • Date: Sun, 10 Feb 2008 13:11:48 +0100
  • Message-id: <20080210121147.GG17005@xxxxxxxxxxxxxx>
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@xxxxxxxxxxxx
For additional commands, e-mail: opensuse+help@xxxxxxxxxxxx

< Previous Next >
Follow Ups