我将 fat32 格式的 USB 驱动器连接到我的系统。dmesg
显示:
[ 4057.783200] sd 6:0:0:0: [sdd] Optimal transfer size 33553920 bytes not a multiple of physical block size (4096 bytes)
...
[ 4064.091218] FAT-fs (sdd1): Volume was not properly unmounted. Some data may be corrupt. Please run fsck.
该驱动器用于 MacOS、Win 和 Linux,因此为 fat32。由于短暂停电,这种情况之前已经发生过几次。像往常一样,我使用 Gparted 检查磁盘,懒得man fsck
检查选项:
然而,这一次它不仅仅检查磁盘,还彻底擦除了磁盘。系统日志没有告诉我任何信息:
Mar 4 11:24:28 TREX kernel: [ 4053.248434] usb 2-3: new SuperSpeed Gen 1 USB device number 4 using xhci_hcd
Mar 4 11:24:28 TREX kernel: [ 4053.269705] usb 2-3: New USB device found, idVendor=0bc2, idProduct=231a, bcdDevice= 7.10
Mar 4 11:24:28 TREX kernel: [ 4053.269712] usb 2-3: New USB device strings: Mfr=1, Product=2, SerialNumber=3
Mar 4 11:24:28 TREX kernel: [ 4053.269716] usb 2-3: Product: Expansion
Mar 4 11:24:28 TREX kernel: [ 4053.269719] usb 2-3: Manufacturer: Seagate
Mar 4 11:24:28 TREX kernel: [ 4053.269722] usb 2-3: SerialNumber: NAA9700F
Mar 4 11:24:28 TREX kernel: [ 4053.277694] scsi host6: uas
Mar 4 11:24:28 TREX kernel: [ 4053.278676] scsi 6:0:0:0: Direct-Access Seagate Expansion 0710 PQ: 0 ANSI: 6
Mar 4 11:24:28 TREX kernel: [ 4053.280001] sd 6:0:0:0: Attached scsi generic sg3 type 0
Mar 4 11:24:32 TREX kernel: [ 4057.782355] sd 6:0:0:0: [sdd] 3907029167 512-byte logical blocks: (2.00 TB/1.82 TiB)
Mar 4 11:24:32 TREX kernel: [ 4057.782361] sd 6:0:0:0: [sdd] 4096-byte physical blocks
Mar 4 11:24:32 TREX kernel: [ 4057.782547] sd 6:0:0:0: [sdd] Write Protect is off
Mar 4 11:24:32 TREX kernel: [ 4057.782552] sd 6:0:0:0: [sdd] Mode Sense: 53 00 00 08
Mar 4 11:24:32 TREX kernel: [ 4057.782880] sd 6:0:0:0: [sdd] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
Mar 4 11:24:32 TREX kernel: [ 4057.783200] sd 6:0:0:0: [sdd] Optimal transfer size 33553920 bytes not a multiple of physical block size (4096 bytes)
Mar 4 11:24:33 TREX kernel: [ 4058.118689] sdd: sdd1
Mar 4 11:24:33 TREX kernel: [ 4058.142221] sd 6:0:0:0: [sdd] Attached SCSI disk
Mar 4 11:24:39 TREX kernel: [ 4064.091218] FAT-fs (sdd1): Volume was not properly unmounted. Some data may be corrupt. Please run fsck.
Mar 4 11:24:39 TREX udisksd[1033]: Mounted /dev/sdd1 at /media/pg1/E93B-1A8F on behalf of uid 1001
Mar 4 11:25:01 TREX CRON[5945]: (root) CMD (command -v debian-sa1 > /dev/null && debian-sa1 1 1)
Mar 4 11:25:49 TREX systemd[1]: Reloading.
Mar 4 11:25:49 TREX kernel: [ 4134.948332] SGI XFS with ACLs, security attributes, realtime, quota, no debug enabled
Mar 4 11:26:05 TREX systemd[1]: Reloading.
Mar 4 11:26:35 TREX systemd[1]: Reloading.
Mar 4 11:26:55 TREX udisksd[1033]: Cleaning up mount point /media/pg1/E93B-1A8F (device 8:49 is not mounted)
Mar 4 11:26:55 TREX systemd[1807]: media-pg1-E93B\x2d1A8F.mount: Succeeded.
Mar 4 11:26:55 TREX systemd[1]: media-pg1-E93B\x2d1A8F.mount: Succeeded.
/var/log/messages
并且journald
不再有任何帮助。磁盘本身很好,它只是空的,而不包含我存储在那里的数据。
磁盘已卸载。有什么办法可以恢复数据吗?
命令sudo systemctl cat media-pg1-E93B\x2d1A8F.mount
报告No files found for media-pg1-E93Bx2d1A8F.mount.
我重新安装了磁盘并重新运行命令,但它没有返回任何内容。重新安装后的系统日志:
Mar 4 19:23:50 TREX kernel: [32814.682162] usb 2-3: new SuperSpeed Gen 1 USB device number 5 using xh>
Mar 4 19:23:50 TREX kernel: [32814.703495] usb 2-3: New USB device found, idVendor=0bc2, idProduct=23>
Mar 4 19:23:50 TREX kernel: [32814.703502] usb 2-3: New USB device strings: Mfr=1, Product=2, SerialN>
Mar 4 19:23:50 TREX kernel: [32814.703506] usb 2-3: Product: Expansion
Mar 4 19:23:50 TREX kernel: [32814.703509] usb 2-3: Manufacturer: Seagate
Mar 4 19:23:50 TREX kernel: [32814.703512] usb 2-3: SerialNumber: NAA9700F
Mar 4 19:23:50 TREX kernel: [32814.713388] scsi host6: uas
Mar 4 19:23:50 TREX kernel: [32814.714278] scsi 6:0:0:0: Direct-Access Seagate Expansion >
Mar 4 19:23:50 TREX kernel: [32814.715560] sd 6:0:0:0: Attached scsi generic sg3 type 0
Mar 4 19:23:54 TREX kernel: [32819.079622] sd 6:0:0:0: [sdd] 3907029167 512-byte logical blocks: (2.0>
Mar 4 19:23:54 TREX kernel: [32819.079628] sd 6:0:0:0: [sdd] 4096-byte physical blocks
Mar 4 19:23:54 TREX kernel: [32819.079849] sd 6:0:0:0: [sdd] Write Protect is off
Mar 4 19:23:54 TREX kernel: [32819.079855] sd 6:0:0:0: [sdd] Mode Sense: 53 00 00 08
Mar 4 19:23:54 TREX kernel: [32819.080229] sd 6:0:0:0: [sdd] Write cache: enabled, read cache: enable>
Mar 4 19:23:54 TREX kernel: [32819.080516] sd 6:0:0:0: [sdd] Optimal transfer size 33553920 bytes not>
Mar 4 19:23:54 TREX kernel: [32819.416147] sdd: sdd1
Mar 4 19:23:54 TREX kernel: [32819.455923] sd 6:0:0:0: [sdd] Attached SCSI disk
pg1@TREX:~$ sudo systemctl cat media-pg1-E93B\x2d1A8F.mount
No files found for media-pg1-E93Bx2d1A8F.mount.
pg1@TREX:~$ sudo systemctl cat media-pg1-E93B\\x2d1A8F.mount
No files found for media-pg1-E93B\x2d1A8F.mount.