kRi*_*RiZ 18 command-line usb-drive read-write
我有一个 USB 磁盘,它不允许我在其上格式化/挂载/卸载或创建分区。
使用dmesg | tail
给了我以下结果:
我在 AskUbuntu 上找到了这篇文章,并尝试使用接受的答案。我得到以下结果,但它仍然是只读的:
umount
不起作用。说umount: /dev/sdc: not mounted
任何有关如何删除写保护的帮助将不胜感激。
小智 7
尝试:
sudo hdparm -r0 /dev/sdb
Run Code Online (Sandbox Code Playgroud)
如建议的 gena2x。
AFAIK,这种类型的“保护”会在发生物理故障时自动启用。这基本上是您在发生关键事件(磁盘)之前恢复数据的一种方式。
所以在某个时间点,U盘的固件检测到了故障。
现在,错误发生了。假阳性也是。但它也可能是磁盘结束的开始(如果命令不起作用,甚至是结束的结束)。
小智 5
嗨,伙计,我和你有同样的问题,我正在遵循本教程: 链接
答:首先我们需要删除 USB 盘上保留的旧分区。
Open a terminal and type sudo su
Type fdisk -l and note your USB drive letter.
Type fdisk /dev/sdx (replacing x with your drive letter)
Type d to proceed to delete a partition
Type 1 to select the 1st partition and press enter
Type d to proceed to delete another partition (fdisk should automatically select the second partition)
Run Code Online (Sandbox Code Playgroud)
B. 接下来我们需要创建新分区。
Type n to make a new partition
Type p to make this partition primary and press enter
Type 1 to make this the first partition and then press enter
Press enter to accept the default first cylinder
Press enter again to accept the default last cylinder
Type w to write the new partition information to the USB key
Type umount /dev/sdx1 (replacing x with your drive letter)
Run Code Online (Sandbox Code Playgroud)
C. 最后一步是创建 fat 文件系统。
Type mkfs.vfat -F 32 /dev/sdx1 (replacing x with your USB key drive letter)
Run Code Online (Sandbox Code Playgroud)
归档时间: |
|
查看次数: |
125972 次 |
最近记录: |