Mailinglist Archive: opensuse-factory (1264 mails)
| < Previous | Next > |
Re: [opensuse-factory] Device names in openSUSE
- From: Ilya Chernykh <anixxsus@xxxxxxxxx>
- Date: Wed, 14 Sep 2011 00:39:39 +0400
- Message-id: <201109140039.39971.anixxsus@gmail.com>
On Tuesday 13 September 2011 22:46:04 Greg Freemyer wrote:
Why then the CD/DVD has different name if it uses the same stack?
Thanks! This is very useful!
--
To unsubscribe, e-mail: opensuse-factory+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-factory+help@xxxxxxxxxxxx
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 > |