我有一个闪存,我可以删除或写入任何内容,当我尝试删除分区或格式化它时,我收到此消息
Can't write to /dev/sdc, because it is opened read-only.
如何格式化它或者从中写入和删除文件?
$ mount | grep /dev/sdc
/dev/sdc1 on /media/karim/3060-070E type vfat (ro,nosuid,nodev,uid=1000,gid=1000,shortname=mixed,dmask=0077,utf8=1,showexec,flush,uhelper=udisks2)
$ lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sda 8:0 0 465.8G 0 disk
├─sda1 8:1 0 58.6G 0 part
├─sda2 8:2 0 100G 0 part
├─sda3 8:3 0 1K 0 part
├─sda4 8:4 0 1.1G 0 part
├─sda5 8:5 0 100G 0 part /media/karim/MP3
├─sda6 8:6 0 100G 0 part
├─sda7 8:7 0 19.9G 0 part
├─sda8 8:8 0 58G 0 part /home
├─sda9 8:9 0 1.9G 0 part /opt
├─sda10 8:10 0 18.8G 0 part /
└─sda11 8:11 0 7.5G 0 part [SWAP]
sdc 8:32 0 14.9G 1 disk
└─sdc1 8:33 0 14.9G 1 part /media/karim/3060-070E
sr0 11:0 1 1024M 0 rom
答案1
因为 add
不起作用
dd: failed to open ‘/dev/sdc’: Read-only file system
而且正如你所说,你也没有硬件写保护,我怀疑是硬件缺陷。如果你有保修,你可以尝试更换记忆棒。