列出 HFS+ 设备

列出 HFS+ 设备

我正在尝试读取(而不是写入)基于这个帖子。它会自动显示在文件管理器中,但我无法浏览该驱动器。关于它是否已安装存在矛盾的信息。

我还有另一个问题妨碍我进行实验:弹出没有响应,所以我做的是拔下/重新插入 USB 连接器。但是它没有被列出,lsblk并且在 gnome-disk-utility 中显示为“无媒体”。我能想到的唯一重新安装它的方法是重新启动。这显然很乏味,那么我该怎么做呢?

重启后:

$ lsblk
NAME                MAJ:MIN RM   SIZE RO TYPE  MOUNTPOINT
sda                   8:0    0 298.1G  0 disk  
├─sda1                8:1    0   512M  0 part  /boot/efi
├─sda2                8:2    0     1K  0 part  
├─sda5                8:5    0   731M  0 part  /boot
└─sda6                8:6    0 296.9G  0 part  
  └─sda6_crypt      253:0    0 296.9G  0 crypt 
    ├─vgmint-root   253:1    0 295.9G  0 lvm   /
    └─vgmint-swap_1 253:2    0   976M  0 lvm   [SWAP]
sdb                   8:16   0 232.9G  0 disk  
├─sdb1                8:17   0   200M  0 part  
├─sdb2                8:18   0 232.1G  0 part  
└─sdb3                8:19   0 619.9M  0 part  

在此处输入图片描述 在此处输入图片描述

断开/连接后

$ lsblk
NAME                MAJ:MIN RM   SIZE RO TYPE  MOUNTPOINT
sda                   8:0    0 298.1G  0 disk  
├─sda1                8:1    0   512M  0 part  /boot/efi
├─sda2                8:2    0     1K  0 part  
├─sda5                8:5    0   731M  0 part  /boot
└─sda6                8:6    0 296.9G  0 part  
  └─sda6_crypt      253:0    0 296.9G  0 crypt 
    ├─vgmint-root   253:1    0 295.9G  0 lvm   /
    └─vgmint-swap_1 253:2    0   976M  0 lvm   [SWAP]

在此处输入图片描述

其他

我认为 El Capitan 是 Mac 上格式化此驱动器的最后一个操作系统,因此我认为这排除了 APFS。

$ apt list -a hfsprogs
Listing... Done
hfsprogs/focal,now 332.25-11build1 amd64 [installed]

此命令无限期挂起:

$ sudo fsck.hfsplus -f /dev/sdb
[sudo] password:  
** /dev/sdb

$ dmesg
[  853.373536] usb 3-2.2: New USB device found, idVendor=174c, idProduct=225c, bcdDevice= 0.01
[  853.373542] usb 3-2.2: New USB device strings: Mfr=2, Product=3, SerialNumber=1
[  853.373546] usb 3-2.2: Product: AS2235
[  853.373549] usb 3-2.2: Manufacturer: ASMedia
[  853.373553] usb 3-2.2: SerialNumber: 00000000000000000000
[  853.452921] usb-storage 3-2.2:1.0: USB Mass Storage device detected
[  853.453556] scsi host6: usb-storage 3-2.2:1.0
[  853.453728] usbcore: registered new interface driver usb-storage
[  853.475165] usbcore: registered new interface driver uas
[  854.465134] scsi 6:0:0:0: Direct-Access     ASMT     2235             0    PQ: 0 ANSI: 6
[  854.466208] sd 6:0:0:0: Attached scsi generic sg1 type 0
[  854.467472] sd 6:0:0:0: [sdb] 488397168 512-byte logical blocks: (250 GB/233 GiB)
[  854.468359] sd 6:0:0:0: [sdb] Write Protect is off
[  854.468368] sd 6:0:0:0: [sdb] Mode Sense: 43 00 00 00
[  854.468938] sd 6:0:0:0: [sdb] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[  854.529233]  sdb: sdb1 sdb2 sdb3
[  854.559294] sd 6:0:0:0: [sdb] Attached SCSI disk
[  898.271130] usb 3-2.2: reset high-speed USB device number 4 using xhci_hcd
[ 1052.032857] sd 6:0:0:0: [sdb] tag#0 FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[ 1052.032865] sd 6:0:0:0: [sdb] tag#0 Sense Key : Not Ready [current] 
[ 1052.032870] sd 6:0:0:0: [sdb] tag#0 Add. Sense: Logical unit is in process of becoming ready
[ 1052.032876] sd 6:0:0:0: [sdb] tag#0 CDB: Read(10) 28 00 00 06 40 2a 00 00 01 00
[ 1052.032884] blk_update_request: I/O error, dev sdb, sector 409642 op 0x0:(READ) flags 0x800 phys_seg 1 prio class 0
[ 1052.032964] hfsplus: unable to find HFS+ superblock
[ 1314.406829] sd 6:0:0:0: [sdb] tag#0 FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[ 1314.406838] sd 6:0:0:0: [sdb] tag#0 Sense Key : Not Ready [current] 
[ 1314.406843] sd 6:0:0:0: [sdb] tag#0 Add. Sense: Logical unit is in process of becoming ready
[ 1314.406850] sd 6:0:0:0: [sdb] tag#0 CDB: Read(10) 28 00 00 06 40 2a 00 00 01 00
[ 1314.406858] blk_update_request: I/O error, dev sdb, sector 409642 op 0x0:(READ) flags 0x800 phys_seg 1 prio class 0
[ 1314.406934] hfsplus: unable to find HFS+ superblock
[ 1524.675415] sd 6:0:0:0: [sdb] tag#0 FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[ 1524.675418] sd 6:0:0:0: [sdb] tag#0 Sense Key : Not Ready [current] 
[ 1524.675420] sd 6:0:0:0: [sdb] tag#0 Add. Sense: Logical unit is in process of becoming ready
[ 1524.675422] sd 6:0:0:0: [sdb] tag#0 CDB: Read(10) 28 00 00 06 40 2a 00 00 01 00
[ 1524.675425] blk_update_request: I/O error, dev sdb, sector 409642 op 0x0:(READ) flags 0x800 phys_seg 1 prio class 0
[ 1524.675442] hfsplus: unable to find HFS+ superblock
[ 6405.037621] INFO: task pool-udisksd:6187 blocked for more than 120 seconds.
$ sudo smartctl -a -s on --tolerance=verypermissive /dev/sdc
smartctl 7.1 2019-12-30 r5022 [x86_64-linux-5.4.0-122-generic] (local build)
Copyright (C) 2002-19, Bruce Allen, Christian Franke, www.smartmontools.org

Read Device Identity failed: scsi error device will be ready soon

=== START OF INFORMATION SECTION ===
Device Model:     [No Information Found]
Serial Number:    [No Information Found]
Firmware Version: [No Information Found]
Device is:        Not in smartctl database [for details use: -P showall]
ATA Version is:   [No Information Found]
Local Time is:    Wed Jul 13 19:38:05 2022 EDT
SMART support is: Ambiguous - ATA IDENTIFY DEVICE words 82-83 don't show if SMART supported.
SMART support is: Ambiguous - ATA IDENTIFY DEVICE words 85-87 don't show if SMART is enabled.
                  Checking to be sure by trying SMART RETURN STATUS command.
SMART support is: Unknown - Try option -s with argument 'on' to enable it.
=== START OF ENABLE/DISABLE COMMANDS SECTION ===
SMART Enable failed: scsi error device will be ready soon

Read SMART Data failed: scsi error device will be ready soon


=== START OF READ SMART DATA SECTION ===
SMART Status command failed: scsi error device will be ready soon
SMART overall-health self-assessment test result: UNKNOWN!
SMART Status, Attributes and Thresholds cannot be read.

Read SMART Error Log failed: scsi error device will be ready soon

Read SMART Self-test Log failed: scsi error device will be ready soon

Selective Self-tests/Logging not supported

答案1

正如@redseven 在答案的评论中指出的那样,这是您的dmesg输出的重要部分:

[ 7619.684210] blk_update_request: I/O error, dev sdb, sector 0 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 0
[ 7619.684222] Buffer I/O error on dev sdb, logical block 0, async page read

这可能表明某种硬件故障。我会在驱动器上运行 SMART 磁盘自检。您可以使用命令smartctl行实用程序(smartctl --help查看可用选项)或图形实用程序执行此操作。我推荐 GSmartControl,但只是因为我熟悉它并且它相当合理 - 如果您找到另一个您更喜欢的工具,请随意使用它。

我将首先运行完整的离线检查并检查整体运行状况结果。然后检查此表中以红色突出显示的属性:https://en.wikipedia.org/wiki/SMART#ATA_S.MART_attributes

这些值较高(截至 2022 年 7 月)表明即将发生驱动器故障。

答案2

尝试这个:

插入外部硬盘

卸载驱动器

跑步:

 sudo apt update

 sudo apt install hfsprogs

 sudo fsck.hfsplus -f /dev/sdb2 

重新安装驱动器

该驱动器现在可读写。

相关内容