我下载了 Ubuntu 并将其复制到装有 Windows 10 的 USB 笔中。
重启后,我在同一台笔记本电脑上安装了 Ubuntu。安装一些软件后,Ubuntu 首先要求我更新到版本 18.10,我确认并更新。大约三天后,Ubuntu 再次要求我更新到版本 19.04。我也确认了。
但现在,我对 USB 笔没有任何写入权限。我无法删除文件,也无法格式化笔。但从笔复制到 Ubuntu 没有任何问题。
我在网上查找了很多解决方法,但都没有效果。
当我尝试格式化时出现错误:
Error wiping device: Failed to open the device '/dev/sda2' (udsiks-error-quark, 0)
当我尝试使用gnome 磁盘,我不能,因为格式是灰色的,我无法点击它。
当我尝试使用 gparted 打开时,出现了同样的只读错误
Unable to open /dev/sdb read-write (Read-only file system). /dev/sdb has been opened read-only.
在系统日志中:
/var/log/syslog
May 27 23:11:29 Lenovo-B51-80 udisksd[717]: Cleaning up mount point /media/sebastian/SanDisk (device 8:18 is not mounted)
May 27 23:11:29 Lenovo-B51-80 ntfs-3g[10126]: Unmounting /dev/sdb2 (SanDisk)
May 27 23:11:29 Lenovo-B51-80 systemd[1434]: media-sebastian-SanDisk.mount: Succeeded.
May 27 23:11:29 Lenovo-B51-80 systemd[1]: media-sebastian-SanDisk.mount: Succeeded.
May 27 23:11:29 Lenovo-B51-80 systemd[1]: Stopping Clean the /media/sebastian/SanDisk mount point...
May 27 23:11:29 Lenovo-B51-80 systemd[1]: [email protected]: Succeeded.
May 27 23:11:29 Lenovo-B51-80 systemd[1]: Stopped Clean the /media/sebastian/SanDisk mount point.
May 27 23:11:29 Lenovo-B51-80 udisksd[717]: Unmounted /dev/sdb2 on behalf of uid 1000
和状态
sudo hdparm -r0 /dev/sdb
/dev/sdb:
setting readonly to 0 (off)
readonly = 0 (off)
我该如何修理 USB 笔?
答案1
我试过了,但出现同样的问题:
dus 12.3.2
Live drive, that is booted from: /dev/sda
cands=1
sdb
SanDisk_Ultra_Fit
114,6G
usb
USB or memory card
p_target: target=/dev/sdb
Restore /dev/sdb
to an MSDOS partition table and a
partition with a FAT32 file system
MODEL NAME FSTYPE LABEL SIZE
Ultra_Fit sdb 114,6G
├─sdb1 vfat 512M
└─sdb2 ntfs SanDisk 114,1G
restore
/dev/sdb
-----
Trying to unmount partitions if mounted on the target device
umount: /dev/sdb: not mounted.
umount: /dev/sdb1: not mounted.
umount: /dev/sdb2: not mounted.
--------------------------------------------------------------------------------
gpt_zap: done
dd: failed to open '/dev/sdb': Read-only file system
Warning: Unable to open /dev/sdb read-write (Read-only file system). /dev/sdb has been opened read-only.
Warning: Unable to open /dev/sdb read-write (Read-only file system). /dev/sdb has been opened read-only.
Error: Can't write to /dev/sdb, because it is opened read-only.
Warning: Unable to open /dev/sdb read-write (Read-only file system). /dev/sdb has been opened read-only.
Warning: Unable to open /dev/sdb read-write (Read-only file system). /dev/sdb has been opened read-only.
Error: You requested a partition from 1049kB to 123GB (sectors 2048..240254975).
The closest location we can manage is 1048kB to 1048kB (sectors 2047..2047).
Warning: Unable to open /dev/sdb read-write (Read-only file system). /dev/sdb has been opened read-only.
Warning: Unable to open /dev/sdb read-write (Read-only file system). /dev/sdb has been opened read-only.
Error: Can't write to /dev/sdb, because it is opened read-only.
mkfs.fat 4.1 (2017-01-24)
mkfs.vfat: unable to open /dev/sdb1: Read-only file system
Failed :-(
mk_msdos: could not create MSDOS partition table and FAT file system
Wait 5 seconds and a little more ...
Warning: Unable to open /dev/sdb read-write (Read-only file system). /dev/sdb has been opened read-only.
Warning: Unable to open /dev/sdb read-write (Read-only file system). /dev/sdb has been opened read-only.
Model: SanDisk Ultra Fit (scsi)
Disk /dev/sdb: 123GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Disk Flags:
Number Start End Size File system Name Flags
1 1049kB 538MB 537MB fat32 EFI System Partition boot, esp
2 538MB 123GB 122GB ntfs msftdata
MODEL NAME FSTYPE LABEL
Ultra_Fit sdb
├─sdb1 vfat
└─sdb2 ntfs SanDisk
p_clean:
clean if necessary and quit