Memoria USB de 1GB

Recientemente, y después de haber pasado por tener memorias USB de varios tamaños, 128, 265, 512, ha llegado el momento de adquirir un aparato de estos de capacidad ya mas que digna (a ver que digo dentro de un par de años).

Bien, pues en la tienda del barrio fui a comprar unas cosillas y mientras esperaba mi turno tenian un expositor con montón de memorias USB de marca Kingston.

Vi los precios y me parecieron ajustados 58€ +IVA por un GB de memoria que en Linux podemos usar sin la necesidad de instalar ningun soft adicional.

Por defecto vienen formateados con FAT16, por lo que lo primero que le hago es, mediante un gparted una conversión a FAT32, que me pone mas.

$ sudo gparted

Desde este maravilloso programa selecciono el dispositivo, que en mi caso es /dev/sde, y con el botón derecho le indico que me convierta la partición a FAT32...

Perfecto! Aplico los cambios y boilà.

Salgo de gparted y me dispongo a ver / testear la velocidad de escritura del mismo pasandole unos datos..
La velocidad, por ser USB2.0, no parece suficiente, pero va tirando. Mi sorpresa viene cuando el jodido me indica que no tiene suficiente memoria para guardar todo lo que quiero.. y eso que le estoy bolcando 20 Mb!!

Algo no funciona del todo bien.. Lo desmonto e intento montarlo de nuevo, pero parece que NO, el dispositivo pasa de mi como la mierda.

Vamos a ver los logs del sistema a ver que podemos sacar en claro..

$ sudo cat /var/log/syslog
[...]
May 31 13:21:10 localhost kernel: usb 3-2: new full speed USB device using ohci_ hcd and address 2
May 31 13:21:11 localhost kernel: SCSI subsystem initialized
May 31 13:21:11 localhost kernel: Initializing USB Mass Storage driver...
May 31 13:21:11 localhost kernel: scsi0 : SCSI emulation for USB Mass Storage de vices
May 31 13:21:11 localhost kernel: usbcore: registered new driver usb-storage
May 31 13:21:11 localhost kernel: USB Mass Storage support registered.
May 31 13:21:11 localhost kernel: usb-storage: device found at 2
May 31 13:21:11 localhost kernel: usb-storage: waiting for device to settle befo re scanning
May 31 13:21:11 localhost usb.agent[8533]: usb-storage: loaded successfully
May 31 13:21:16 localhost kernel: Vendor: Generic Model: USB Flash Drive R ev: 1.04
May 31 13:21:16 localhost kernel: Type: Direct-Access A NSI SCSI revision: 02
May 31 13:21:16 localhost kernel: usb-storage: device scan complete
May 31 13:21:16 localhost scsi.agent[8687]: sd_mod: loaded sucessfully
May 31 13:21:16 localhost kernel: Attached scsi removable disk sda at scsi0, cha nnel 0, id 0, lun 0
May 31 13:21:16 localhost udev[8730]: configured rule in '/etc/udev/rules.d/udev .rules' at line 27 applied, 'sda' becomes '%k'
May 31 13:21:16 localhost udev[8730]: creating device node '/dev/sda'
May 31 13:21:24 localhost kernel: cdrom: open failed.
May 31 13:21:24 localhost kernel: cdrom: open failed.

Mmmm Alguna cosa no me acaba de gustar.. Voy a Sant Google y...

$ udevinfo -a -p /sys/block/sde
udevinfo starts with the device the node belongs to and then walks up the
device chain, to print for every device found, all possibly useful attributes
in the udev key format.
Only attributes within one device section may be used together in one rule,
to match the device for which the node will be created.

device '/sys/block/sde' has major:minor 8:64
looking at class device '/sys/block/sde':
SYSFS{dev}="8:64"
SYSFS{range}="16"
SYSFS{removable}="1"
SYSFS{size}="0"
SYSFS{stat}=" 0 0 0 0 0 0 0 0 0 0 0"

follow the class device's "device"
looking at the device chain at '/sys/devices/pci0000:00/0000:00:09.2/usb5/5-1/5-1:1.0/host14/target14:0:0/14:0:0:0':
BUS="scsi"
ID="14:0:0:0"
SYSFS{detach_state}="0"
SYSFS{device_blocked}="0"
SYSFS{max_sectors}="240"
SYSFS{model}="USB Flash Drive "
SYSFS{queue_depth}="1"
SYSFS{rev}="1.04"
SYSFS{scsi_level}="3"
SYSFS{state}="running"
SYSFS{timeout}="30"
SYSFS{type}="0"
SYSFS{vendor}="Generic "

looking at the device chain at '/sys/devices/pci0000:00/0000:00:09.2/usb5/5-1/5-1:1.0/host14/target14:0:0':
BUS=""
ID="target14:0:0"
SYSFS{detach_state}="0"

looking at the device chain at '/sys/devices/pci0000:00/0000:00:09.2/usb5/5-1/5-1:1.0/host14':
BUS=""
ID="host14"
SYSFS{detach_state}="0"

looking at the device chain at '/sys/devices/pci0000:00/0000:00:09.2/usb5/5-1/5-1:1.0':
BUS="usb"
ID="5-1:1.0"
SYSFS{bAlternateSetting}=" 0"
SYSFS{bInterfaceClass}="08"
SYSFS{bInterfaceNumber}="00"
SYSFS{bInterfaceProtocol}="50"
SYSFS{bInterfaceSubClass}="06"
SYSFS{bNumEndpoints}="02"
SYSFS{detach_state}="0"

looking at the device chain at '/sys/devices/pci0000:00/0000:00:09.2/usb5/5-1':
BUS="usb"
ID="5-1"
SYSFS{bConfigurationValue}="1"
SYSFS{bDeviceClass}="00"
SYSFS{bDeviceProtocol}="00"
SYSFS{bDeviceSubClass}="00"
SYSFS{bMaxPower}="100mA"
SYSFS{bNumConfigurations}="1"
SYSFS{bNumInterfaces}=" 1"
SYSFS{bcdDevice}="0100"
SYSFS{bmAttributes}="80"
SYSFS{detach_state}="0"
SYSFS{devnum}="15"
SYSFS{idProduct}="8006"
SYSFS{idVendor}="1043"
SYSFS{maxchild}="0"
SYSFS{speed}="12"
SYSFS{version}=" 1.10"

looking at the device chain at '/sys/devices/pci0000:00/0000:00:09.2/usb5':
BUS="usb"
ID="usb5"
SYSFS{bConfigurationValue}="1"
SYSFS{bDeviceClass}="09"
SYSFS{bDeviceProtocol}="00"
SYSFS{bDeviceSubClass}="00"
SYSFS{bMaxPower}=" 0mA"
SYSFS{bNumConfigurations}="1"
SYSFS{bNumInterfaces}=" 1"
SYSFS{bcdDevice}="0206"
SYSFS{bmAttributes}="c0"
SYSFS{detach_state}="0"
SYSFS{devnum}="1"
SYSFS{idProduct}="0000"
SYSFS{idVendor}="0000"
SYSFS{manufacturer}="Linux 2.6.10-5-386 ohci_hcd"
SYSFS{maxchild}="2"
SYSFS{product}="ALi Corporation USB 1.1 Controller (#3)"
SYSFS{serial}="0000:00:09.2"
SYSFS{speed}="12"
SYSFS{version}=" 1.10"

looking at the device chain at '/sys/devices/pci0000:00/0000:00:09.2':
BUS="pci"
ID="0000:00:09.2"
SYSFS{class}="0x0c0310"
SYSFS{detach_state}="0"
SYSFS{device}="0x5237"
SYSFS{irq}="11"
SYSFS{local_cpus}="1"
SYSFS{subsystem_device}="0x5237"
SYSFS{subsystem_vendor}="0x10b9"
SYSFS{vendor}="0x10b9"

looking at the device chain at '/sys/devices/pci0000:00':
BUS=""
ID="pci0000:00"
SYSFS{detach_state}="0"

sudo cfdisk /dev/sda1

A ver si lo puedo revivir de alguna forma..