First execute the command:
Tail -f/var/log/syslog
Then insert the problematic USB stick, tail will print some log:
Jan at the: +: -zkw-3330Kernel: [1451066.881318] usb3-1: New high-speed USB device number Ausing Xhci_hcdjan at the: +: -zkw-3330Kernel: [1451066.898140] usb3-1: New USB device found, idvendor=0781, idproduct=5567Jan at the: +: -zkw-3330Kernel: [1451066.898150] usb3-1: New USB Device strings:mfr=1, product=2, serialnumber=3Jan at the: +: -zkw-3330Kernel: [1451066.898156] usb3-1: Product:cruzer Bladejan at the: +: -zkw-3330Kernel: [1451066.898161] usb3-1: Manufacturer:sandiskjan at the: +: -zkw-3330Kernel: [1451066.898165] usb3-1: Serialnumber:20060774101e0202eedfjan at the: +: -zkw-3330Kernel: [1451066.898676] Usb-storage3-1:1.0: USB Mass Storage device Detectedjan at the: +: -zkw-3330Kernel: [1451066.900344] Scsi32:usb-storage3-1:1.0Jan at the: +: -zkw-3330Mtp-probe:checking Bus3, device A:"/sys/devices/pci0000:00/0000:00:14.0/usb3/3-1"Jan at the: +: -zkw-3330Mtp-probe:bus:3, Device: AWas wasn't an MTP Devicejan at the: +: Aboutzkw-3330Kernel: [1451067.898169] SCSI +:0:0:0: direct-access SanDisk Cruzer Blade1.26Pq:0Ansi:5Jan at the: +: Aboutzkw-3330Kernel: [1451067.898785] SD +:0:0:0: Attached SCSI generic SG1 type0Jan at the: +: Aboutzkw-3330Kernel: [1451067.899778] SD +:0:0:0: [SDB]15633408 +-byteLogical Blocks: (8.00GB/7.45GiB) Jan at the: +: Aboutzkw-3330Kernel: [1451067.902348] SD +:0:0:0: [SDB] Write Protect is Offjan at the: +: Aboutzkw-3330Kernel: [1451067.902352] SD +:0:0:0: [SDB] Mode sense: + xx xx xxJan at the: +: Aboutzkw-3330Kernel: [1451067.902656] SD +:0:0:0: [SDB] Write cache:disabled, read cache:enabled, doesn'T support DPO or FUAJan at the: +: Aboutzkw-3330Kernel: [1451067.910687] Sdb:sdb4jan at the: +: Aboutzkw-3330Kernel: [1451067.912366] SD +:0:0:0: [SDB] attached SCSI removable diskjan at the: +: Aboutzkw-3330Kernel: [1451068.146809] Fat-FS (SDB4): Volume is not properly unmounted. Some data may corrupt. Please run fsck. Jan at the: +: Aboutzkw-3330udisksd[1790]: MOUNTED/DEV/SDB4 At/media/zkw/zhou_ke_wen on behalf of UID +Jan 09:40:56 zkw-3330 kernel: [1451068.395756] Fat-fs (SDB4): Error, fat_get_cluster:invalid cluster chain (i_pos 0) Jan 09:40:56 zkw-3330 kernel: [1451068.395761] Fat-fs (SDB4): Filesystem has been set read-Only Jan at the: +: Aboutzkw-3330wpa_supplicant[1277]: Nl80211:send_and_recv->nl_recvmsgs failed:- -
Where the red part indicates a problem with the U-disk, is hung for read-only, use dosfsck to fix it:
umount /media/(U disk is hung in the name after)sudo dosfsck-v-a/dev/sdb4
After the repair, the U disk will reply to read and write.
Ubuntu next USB flash drive becomes a read-only solution