U盘在ubuntu下变成了只读,不能放进文件
排查步骤:
- 查看挂载的格式是否正确
$mount /dev/sdc1 on / type ext4 (rw,errors=remount-ro) proc on /proc type proc (rw,noexec,nosuid,nodev) none on /sys type sysfs (rw,noexec,nosuid,nodev) none on /sys/fs/fuse/connections type fusectl (rw) none on /sys/kernel/debug type debugfs (rw) none on /sys/kernel/security type securityfs (rw) none on /dev type devtmpfs (rw,mode=0755) none on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=0620) none on /dev/shm type tmpfs (rw,nosuid,nodev) none on /var/run type tmpfs (rw,nosuid,mode=0755) none on /var/lock type tmpfs (rw,noexec,nosuid,nodev) none on /lib/init/rw type tmpfs (rw,nosuid,mode=0755) /dev/sdc6 on /home type ext4 (rw) /dev/sda1 on /home/bl/dbf type ext3 (rw) none on /proc/fs/vmblock/mountPoint type vmblock (rw) binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc (rw,noexec,nosuid,nodev) /dev/sdb1 on /media/3AAA-893C type vfat (rw,nosuid,nodev,uhelper=udisks,uid=1000,gid=1000,shortname=mixed,dmask=0077,utf8=1,flush) |
$sudo mount -o remount,rw /dev/sdb1 |
- fsck检查U盘数据
$sudo umount /media/3AAA-893C/ $sudo fsck /dev/sdb1 fsck from util-linux-ng 2.17.2 dosfsck 3.0.7, 24 Dec 2009, FAT32, LFN There are differences between boot sector and its backup. Differences: (offset:original/backup) 65:01/00 1) Copy original to backup 2) Copy backup to original 3) No action ? 2 Reclaimed 153 unused clusters (5013504 bytes). Free cluster summary wrong (242445 vs. really 242751) 1) Correct 2) Don't correct ? 1 Leaving file system unchanged. /dev/sdb1: 49 files, 1474/244225 clusters |