当前位置:   article > 正文

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

解决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
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9

我的是 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
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28

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

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/Cpp五条/article/detail/263914
推荐阅读
相关标签
  

闽ICP备14008679号