解决Linux系统下U盘只读文件系统问题

问题:在linux系统无法在u盘中创建文件,提示:只读文件系统
解决办法:
1、lsblk 查看分区

$ lsblk 
NAME   MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
sda      8:0    0 223.6G  0 disk 
├─sda1   8:1    0  63.8G  0 part [SWAP]
├─sda2   8:2    0     1K  0 part 
└─sda5   8:5    0 159.8G  0 part /
sdb      8:16   0   1.8T  0 disk 
└─sdb1   8:17   0   1.8T  0 part /media/nfs_dev_sdb1
sdc      8:32   1  57.7G  0 disk /media/os-zhaole/04D3-16F8

我的是 sdc
2、sudo dosfsck -v -a /dev/sdc

$ sudo dosfsck -v -a /dev/sdc 
[sudo] os-zhaole 的密码:
fsck.fat 4.1 (2017-01-24)
Checking we can access the last sector of the filesystem
0x41: Dirty bit is set. Fs was not properly unmounted and some data may be corrupt.
 Automatically removing dirty bit.
Boot sector contents:
System ID "mkfs.fat"
Media byte 0xf8 (hard disk)
       512 bytes per logical sector
     32768 bytes per cluster
        64 reserved sectors
First FAT starts at byte 32768 (sector 64)
         2 FATs, 32 bit entries
   7569408 bytes per FAT (= 14784 sectors)
Root directory start at cluster 2 (arbitrary size)
Data area starts at byte 15171584 (sector 29632)
   1891121 data clusters (61968252928 bytes)
32 sectors/track, 64 heads
         0 hidden sectors
 121061376 sectors total
/pciutils
 Start does point to root directory. Deleting dir. 
Reclaiming unconnected clusters.
Reclaimed 11 unused clusters (360448 bytes) in 2 chains.
Checking free cluster summary.
Performing changes.
/dev/sdc: 12474 files, 18671/1891121 clusters

3、弹出U盘后,重新插拔即可使用
注意:
以后不要再直接拔掉U盘了!!!
以后不要再直接拔掉U盘了!!!
以后不要再直接拔掉U盘了!!!

上一篇:南大通用GBase8s 常用SQL语句(四十一)


下一篇:U盘空间缩水,格式化无法恢复