Mailinglist Archive: opensuse-factory (1264 mails)

< Previous Next >
Re: [opensuse-factory] Device names in openSUSE
On Tuesday 13 September 2011 22:46:04 Greg Freemyer wrote:

Unfortunately libata is still under the scsi stack, so it gets the
/dev/sdx style names.

Why then the CD/DVD has different name if it uses the same stack?

It is impossible to determine whether a given drive an USB drive or hard
based on mtab only if the both use
similar sd*  name.

The name is not a API. You should be looking at /sys/block/sda. That
directory is full of useful things.

For instance /sys/block/sda/removable should contain a zero or one
depending on the nature of the storage.

Thanks! This is very useful!


--
To unsubscribe, e-mail: opensuse-factory+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-factory+help@xxxxxxxxxxxx

< Previous Next >