On 2017-08-03 20:50, Felix Miata wrote:
Mark Hounschell composed on 2017-08-03 09:37 (UTC-0400):
Strangely it only seems to affect USB. Hot plugging a Sata disk works properly. All partitions show up.
Whether due to kernel, usbutils, storage drivers, pmount, udev and/or something else I don't know, but I do know that USB HDs are not treated the same as other USB storage. Other are treated as removable devices, while USB HDs are not distinguished from internal HDs on the SATA buses.
Yes. If you use "lsblk" to get information of the disks, and include "RM" in the output format, it prints if the disk is recognized as "removable". I use it this way (trimmed): Isengard:~ # lsblk --output NAME,KNAME,RA,RM,RO,SIZE,TYPE,FSTYPE,LABEL,PARTLABEL,MOUNTPOINT,UUID,PARTUUID,WWN,MODEL,ALIGNMENT NAME KNAME RA RM RO SIZE TYPE FSTYPE LABEL PARTLABEL MOUNTPOINT UUID PARTUUID WWN MODEL ALIGNMENT sda sda 512 0 0 111,8G disk KINGSTON SMS200S 0 ├─sda1 sda1 512 0 0 156M part vfat primary /boot/efi BD39-068A cada5ef3-03a1-4d0b-a984-49c1c16c75bb 0 sdc sdc 512 0 0 3,7T disk 2115 0 ├─sdc1 sdc1 512 0 0 250M part ext2 Initial_4T Initial_4T 216dbdde-6676-4102-a686-541a4874fe04 007da3de-1328-4988-9f36-2eedd41587aa 0 sdd sdd 512 1 0 3,7G disk USB DISK 2.0 0 └─sdd1 sdd1 512 1 0 3,7G part ext4 Ext4Flash f07734c8-b021-4dc0-9729-abcb07fb66cd ad7b68da-01 0 sda is internal "SSD". sdc is rotating disk via usb3 cable. sdd is a normal usb stick - and this one has the "RM" field set to "1". How it knows, I don't know. -- Cheers / Saludos, Carlos E. R. (from 42.2 x86_64 "Malachite" at Telcontar)