martes, 26 de julio de 2016

Problema de USB montado como "solo lectura"

En este post les dejo la solución a un problema muy común en el sistema Linux. Algunas veces un pendrive que venimos utilizando se monta como "solo lectura" y esto no nos permite modificar (borrar o copiar) el contenido. 

Para solucionarlo deberán realizar los siguientes pasos.

Desde una consola escribir dmesg y ver si la salida es parecida a lo siguiente:
[78797.100876] usb 3-1: new high-speed USB device number 2 using xhci_hcd
[78797.120619] usb 3-1: New USB device found, idVendor=0951, idProduct=162a
[78797.120624] usb 3-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[78797.120627] usb 3-1: Product: DataTraveler 112
[78797.120630] usb 3-1: Manufacturer: Kingston
[78797.120632] usb 3-1: SerialNumber: 001372995FC8F9B136210E15
[78797.120795] usb 3-1: ep 0x81 - rounding interval to 128 microframes, ep desc says 255 microframes
[78797.120812] usb 3-1: ep 0x2 - rounding interval to 128 microframes, ep desc says 255 microframes
[78797.121293] scsi11 : usb-storage 3-1:1.0
[78798.118600] scsi 11:0:0:0: Direct-Access Kingston DataTraveler 112 1.00 PQ: 0 ANSI: 2
[78798.119655] sd 11:0:0:0: Attached scsi generic sg2 type 0
[78798.119921] sd 11:0:0:0: [sdb] 7818184 512-byte logical blocks: (4.00 GB/3.72 GiB)
[78798.120135] sd 11:0:0:0: [sdb] Write Protect is off
[78798.120140] sd 11:0:0:0: [sdb] Mode Sense: 03 00 00 00
[78798.120340] sd 11:0:0:0: [sdb] No Caching mode page present
[78798.120345] sd 11:0:0:0: [sdb] Assuming drive cache: write through
[78798.121429] sd 11:0:0:0: [sdb] No Caching mode page present
[78798.121433] sd 11:0:0:0: [sdb] Assuming drive cache: write through
[78798.121978] sdb: sdb1
[78798.122787] sd 11:0:0:0: [sdb] No Caching mode page present
[78798.122793] sd 11:0:0:0: [sdb] Assuming drive cache: write through
[78798.122796] sd 11:0:0:0: [sdb] Attached SCSI removable disk
[78798.278801] FAT-fs (sdb1): utf8 is not a recommended IO charset for FAT filesystems, filesystem will be case sensitive!
[78798.361838] FAT-fs (sdb1): error, invalid access to FAT (entry 0xaaccd4af)
[78798.361843] FAT-fs (sdb1): Filesystem has been set read-only
[78805.975575] FAT-fs (sdb1): error, invalid access to FAT (entry 0xaaccd4af)
 

Si es trata de usar esto:
Primero instalar el paquete dosftools

sudo apt-get install dosfstools

Segundo desmontar el disco duro externo (o pendrive)

sudo umount /dev/sdb1

Tercero , verificar y reparar la partición

sudo dosfsck -t -a -w /dev/sdb2

Con esta sencilla solución, se reparó la partición y el disco duro externo volvió a ser de lectura/escritura

No hay comentarios:

Publicar un comentario