trinity-users@lists.pearsoncomputing.net

Message: previous - next
Month: January 2017

Re: [trinity-users] desktop icons for automounted external USB hard disks

From: Istvan Gabor <suseuser04@...>
Date: Wed, 11 Jan 2017 19:45:24 +0100
On Wed, 11 Jan 2017 19:13:18 +0100, François Andriot wrote:
> Le 11/01/2017 à 15:29, Istvan Gabor a écrit :
>> Hello:
>>
>> TDE handles external USB hard drives the same as internal
>> non-USB (ie SATA) drives. After plugging in an external USB
>> hard drive it only places a device icon to the desktop if
>> device icons for unmounted/mounted hard disks are enabled.
>> I don't want to enable those icons because I have ~20 partitions
>> I don't want to put on the desktop as devices. Still I would
>> like to have removable USB hard disk icons on the desktop
>> similarly to flash disks. How can I do it?
>>
>> In my opinion removable hard disk should be distinguished
>> from internal non-removable drives in this context.
>>
>> Thanks,
>>
>> Istvan
>>
>
> Hello,
> I have the same problem with a particular USB hard disk, which is
> seen as a fixed hard disk instead of removable hard disk.
> This does not happen on another USB hard disk.
>
> I believe that this is related to the Linux kernel and/or the USB
> device itself.
>
> On a real fixed (SATA) hard disk:
> $ cat /sys/block/sda/removable
> 0
>
> On a normally working USB hard disk:
> $ cat /sys/block/sdb/removable
> 1
>
> On the USB hard disk that is seen as fixed hard disk:
> $ cat /sys/block/sdc/removable
> 0
>
> If TDE is using this "removable" flag, which is sometimes incorrect,
> it may explain the issue.
>
> François


I have used only two USB external HDs so far but both were mounted as 
hard disk
volumes and not as removable devices.

The question is how the system decides which group a device belongs to.
If there is some device or property database we could modify it 
according to
our needs.

Thanks,

Istvan