In my question Bash script to output path to USB flash memory stick I got stuck on a problem nobody else seems to be having. (The issue also impedes my desire to use this answer.)
So I made that specific problem into this new question.
Apparently removable devices listed in /sys/block
end with 1. It is stated here and several other places in this site and this principle is used in the answers I referenced above.
My removable device, a Sandisk 64GB flash memory stick, is listed as:
/sys/block/sdl/removable:0
Apparently, removable devices should end in 1 (and my others do). Why does my USB memory stick not follow the rule?
It was automounted by Dolphin. I'm running Kubuntu 12.04.
Dolphin shows it as "59.6GiB Removable Media".
And it is mounted (automatically) at /media/me/70E8-1567
sudo blkid
shows it as:
/dev/sdl1: UUID="70E8-1567" TYPE="vfat".
lsblk -do name,rm
shows:
sdl 0
And lsusb -vv
shows:
Bus 001 Device 008: ID 0781:5530 SanDisk Corp. Cruzer
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 2.00
bDeviceClass 0 (Defined at Interface level)
bDeviceSubClass 0
bDeviceProtocol 0
bMaxPacketSize0 64
idVendor 0x0781 SanDisk Corp.
idProduct 0x5530 Cruzer
bcdDevice 2.01
iManufacturer 1
iProduct 2
iSerial 3
bNumConfigurations 1
Configuration Descriptor:
bLength 9
bDescriptorType 2
wTotalLength 32
bNumInterfaces 1
bConfigurationValue 1
iConfiguration 0
bmAttributes 0x80
(Bus Powered)
MaxPower 200mA
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 0
bAlternateSetting 0
bNumEndpoints 2
bInterfaceClass 8 Mass Storage
bInterfaceSubClass 6 SCSI
bInterfaceProtocol 80 Bulk-Only
iInterface 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x81 EP 1 IN
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0200 1x 512 bytes
bInterval 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x02 EP 2 OUT
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0200 1x 512 bytes
bInterval 1
lsusb
ID corresponding? – F. Hauri - Give Up GitHub Mar 15 '14 at 01:39lsusb
output. Thanks – MountainX Mar 15 '14 at 03:32lsblk -do name,rm
. Thanks. – MountainX Mar 15 '14 at 03:32grep -H . /sys/block/sdl/events
(meaningsdl
is your usb key;)... – F. Hauri - Give Up GitHub Mar 15 '14 at 10:30