当我插入 microSD 卡时,它不再自动挂载。我可以通过 sudo 手动挂载它并重新格式化它,但它仍然显示在 fstab 中:
Device Boot Start End Sectors Size Id Type
/dev/sdb1 2048 250085375 250083328 119.3G b W95 FAT32
当我跑步时dmesg
我得到
[ 25.672188] usb 1-4: new high-speed USB device number 5 using xhci_hcd
[ 25.825200] usb 1-4: New USB device found, idVendor=05e3, idProduct=0741, bcdDevice= 2.20
[ 25.825205] usb 1-4: New USB device strings: Mfr=3, Product=4, SerialNumber=0
[ 25.825208] usb 1-4: Product: USB Storage
[ 25.825211] usb 1-4: Manufacturer: Generic
[ 25.826940] usb-storage 1-4:1.0: USB Mass Storage device detected
[ 25.827115] scsi host1: usb-storage 1-4:1.0
[ 26.850090] scsi 1:0:0:0: Direct-Access Generic STORAGE DEVICE 0220 PQ: 0 ANSI: 0
[ 26.850793] sd 1:0:0:0: Attached scsi generic sg1 type 0
[ 27.273553] sd 1:0:0:0: [sdb] 250085376 512-byte logical blocks: (128 GB/119 GiB)
[ 27.274541] sd 1:0:0:0: [sdb] Write Protect is off
[ 27.274545] sd 1:0:0:0: [sdb] Mode Sense: 0b 00 00 08
[ 27.275490] sd 1:0:0:0: [sdb] No Caching mode page found
[ 27.275497] sd 1:0:0:0: [sdb] Assuming drive cache: write through
[ 30.203737] sd 1:0:0:0: [sdb] tag#0 FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[ 30.203742] sd 1:0:0:0: [sdb] tag#0 Sense Key : Aborted Command [current]
[ 30.203746] sd 1:0:0:0: [sdb] tag#0 Add. Sense: Data phase CRC error detected
[ 30.203751] sd 1:0:0:0: [sdb] tag#0 CDB: Read(10) 28 00 00 00 00 00 00 00 08 00
[ 30.203753] print_req_error: I/O error, dev sdb, sector 0
[ 30.203760] Buffer I/O error on dev sdb, logical block 0, async page read
[ 30.207818] ldm_validate_partition_table(): Disk read failed.
[ 30.207827] Dev sdb: unable to read RDB block 0
[ 30.210722] sdb: unable to read partition table
[ 30.213614] sd 1:0:0:0: [sdb] Attached SCSI removable disk
有什么办法可以修复该卡吗,或者它已经坏了?
答案1
从 dmesg 看来似乎无法读取分区表,所以让我们重新创建它。// 是注释,而不是命令的一部分
sudo fdisk /dev/sdb //Here you're using fdisk utility on /dev/sdb disk
d //d stands for delete partition
g //g is for recreating GPT table
n //n stands for new
p //p stands for primary partition
ENTER //Press enter key
ENTER
ENTER
w //w means write changes on disk
sudo mkfs.ext -F 32 -I /dev/sdb1 //Command that formats the partition you created in EXT32, must be run outside fdisk
之后,如果您想将其添加到 fstab 中,首先获取新的 UUID:sudo blkid /dev/sdb1
并在 /etc/fstab 中添加如下条目:
UUID=(UUID) /folder/where/to/automount vfat defaults 0 0