我有一张 16GB 的微型 SD 卡,它通过 Lexar microSD RDR (0815) 适配器使用。我可以在 Windows 上读取和写入它,但在 VMware 中我只能编辑现有文件。我无法删除任何文件,也无法拖放或创建新文件。
我运行了 dmesg | tail 命令,输出如下:
dmesg | tail
[ 6961.995715] scsi host9: usb-storage 1-1:1.0
[ 6962.999542] scsi 9:0:0:0: Direct-Access Lexar microSD RDR 0815 PQ: 0 ANSI: 6
[ 6963.000610] sd 9:0:0:0: Attached scsi generic sg3 type 0
[ 6963.304586] sd 9:0:0:0: [sdc] 31116288 512-byte logical blocks: (15.9 GB/14.8 GiB)
[ 6963.312507] sd 9:0:0:0: [sdc] Write Protect is off
[ 6963.312515] sd 9:0:0:0: [sdc] Mode Sense: 23 00 00 00
[ 6963.320559] sd 9:0:0:0: [sdc] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
[ 6963.356589] sdc: sdc1
[ 6963.380491] sd 9:0:0:0: [sdc] Attached SCSI removable disk
[ 6967.888789] FAT-fs (sdc1): Volume was not properly unmounted. Some data may be corrupt. Please run fsck.
我运行了 fsck,结果如下。
fsck.ext4: Permission denied while trying to open /dev/sda1
You must have r/w access to the filesystem or be root
swgroup@fwdev2-smount:~/Desktop$
swgroup@fwdev2-smount:~/Desktop$ sudo fsck
[sudo] password for swgroup:
fsck from util-linux 2.27.1
e2fsck 1.42.13 (17-May-2015)
/dev/sda1 is mounted.
e2fsck: Cannot continue, aborting.
我应该怎么办?
谢谢!
答案1
首先是unmount
驱动器。低级磁盘实用程序(如fsck
)会更改物理磁盘,这可能不再与 存储的内核数据相匹配mount
。然后,由于您想要对驱动器进行低级访问,您必须以 身份运行root
,使用sudo
:
sudo umount /dev/sda1
sudo fsck.vfat -a /dev/sda1
选项-a
要求fsck.vfat
自动修复。请参阅了解man fsck.vfat
其他选项。