Mac移动硬盘不正确卸载造成不识别解决方法

今天在给同事的Mac装一个软件之后直接把移动硬盘直接拔下来了,然后想再插上弄点的东西的时候发现不识别了,瞬间一头冷汗,以为移动硬盘坏掉了,然后赶紧Google发现了使用命令行挂载硬盘就行。

第一步先查看硬盘的信息使用如下命令行

diskutil list

输出如下

/dev/disk0 (internal, physical):
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:      GUID_partition_scheme                        *251.0 GB   disk0
   1:                        EFI EFI                     209.7 MB   disk0s1
   2:                 Apple_APFS Container disk1         250.8 GB   disk0s2

/dev/disk1 (synthesized):
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:      APFS Container Scheme -                      +250.8 GB   disk1
                                 Physical Store disk0s2
   1:                APFS Volume Macintosh HD            199.2 GB   disk1s1
   2:                APFS Volume Preboot                 22.2 MB    disk1s2
   3:                APFS Volume Recovery                509.8 MB   disk1s3
   4:                APFS Volume VM                      3.2 GB     disk1s4

/dev/disk2 (external, physical):
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:     FDisk_partition_scheme                        *1.0 TB     disk2
   1:                 DOS_FAT_32 A                       500.1 GB   disk2s1
   2:                 DOS_FAT_32 B                       500.1 GB   disk2s2

发现/dev/disk2是我的移动硬盘然后使用挂载命令直接挂载就行如下

sudo  fsck_hfs -fy /dev/disk2
在执行装载命令之前先执行上边这行命令
sudo diskutil mount /dev/disk2

很多朋友后期遇到了如下的问题

Volume on diskx timed out waiting to mount

这个我确实没遇到过,不过我在网上搜了一下,有人给出如下方式解决可以试试,说是fsck这个进程的问题

输入 ps aux | grep fsck
然后杀掉所有fsck的进程 sudo pkill -f fsck 

以上解决方法是从 https://www.cnblogs.com/kaffeetrinken/p/10596740.html 这里借鉴来的可以做未参考,如果还有其他问题咱们还可以讨论,谢谢大家。

0 0 vote
Article Rating
Subscribe
提醒
guest
37 评论
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
bobobop

hi, 谢谢你的答案,但我还是有一些小问题:

在输入第一行指令之后显示

no such file or directory

cant stat /dev/disk2
cant stat /dev/disk2:no such file or directory

上面的list明明显示我的硬盘是 dev/disk2了,请问是怎么回事呢

lai

$ diskutil list
/dev/disk0 (internal, physical):
#: TYPE NAME SIZE IDENTIFIER
0: GUID_partition_scheme *251.0 GB disk0
1: EFI EFI 209.7 MB disk0s1
2: Apple_APFS Container disk1 250.8 GB disk0s2

/dev/disk1 (synthesized):
#: TYPE NAME SIZE IDENTIFIER
0: APFS Container Scheme – +250.8 GB disk1
Physical Store disk0s2
1: APFS Volume Macintosh HD 119.1 GB disk1s1
2: APFS Volume Preboot 45.1 MB disk1s2
3: APFS Volume Recovery 517.0 MB disk1s3
4: APFS Volume VM 2.1 GB disk1s4
输入查看硬盘信息之后 未发现有磁盘挂载, 但明明我的硬盘物理上已经连在电脑上了

jingran

我的提示无法挂载啊[code=plain]
Volume on disk3 failed to mount; if it has a partitioning scheme, use "diskutil mountDisk"
If the volume is damaged, try the "readOnly" option
[/code]

王几几

你好 我没有成功可以帮我看下嘛

gloria

我也没有成功,可以帮我看下吗~而且磁盘工具也显示不出来
1
** /dev/rdisk3s1
Executing fsck_hfs (version hfs-407.50.6).
volumeType is 0
0000: 0080 a70d 0100 0000 0000 0000 0000 0000 |…………….|
0010: 0000 0000 0000 0000 0000 0000 0000 0000 |…………….|
. . .
01f0: 0000 0000 0000 0000 0000 0000 0000 0000 |…………….|
sudo: No such file or directory
Can’t stat sudo
Can’t stat sudo: No such file or directory
diskutil: No such file or directory
Can’t stat diskutil
Can’t stat diskutil: No such file or directory
mount: No such file or directory
Can’t stat mount
Can’t stat mount: No such file or directory
** /dev/rdisk3s1
Executing fsck_hfs (version hfs-407.50.6).
volumeType is 0
0000: 0080 a78d 0100 0000 0000 0000 0000 0000 |…………….|
0010: 0000 0000 0000 0000 0000 0000 0000 0000 |…………….|
. . .
01f0: 0000 0000 0000 0000 0000 0000 0000 0000 |…………….|

juss

我也是硬盘不小心误触导致掉线,之后mac也就不再能显示移动硬盘了;按照您说的方法,我发现命令行根本就不显示硬盘存在;

yyyoung

my-Mac:~ my$ sudo fsck_hfs -fy /dev/disk2
Password:
** /dev/rdisk2 (NO WRITE)
Executing fsck_hfs (version hfs-407.200.4).
volumeType is 0
0000: 0000 0000 0000 0000 0000 0000 0000 0000 |…………….|
. . .
01b0: 0000 0000 0000 0000 0000 0000 0000 00fe |…………….|
01c0: ffff eefe ffff 0100 0000 feff ffff 0000 |…………….|
01d0: 0000 0000 0000 0000 0000 0000 0000 0000 |…………….|
. . .
01f0: 0000 0000 0000 0000 0000 0000 0000 55aa |…………..U.|
my-Mac:~ my$ sudo diskutil mount /dev/disk2
Volume on disk2 timed out waiting to mount

请问一下,出现以上情况,然后就还是不成功,应该怎么办呢,谢谢。

Data

可以看看这个是什么问题?
diskutil list
/dev/disk3 (external, physical):
#: TYPE NAME SIZE IDENTIFIER
0: FDisk_partition_scheme *1.0 TB disk3
1: Windows_NTFS MACDATA 500.1 GB disk3s1
2: Apple_HFS MacOs2 500.1 GB disk3s2

sudo fsck_hfs -fy /dev/disk3
** /dev/rdisk3 (NO WRITE)
Executing fsck_hfs (version hfs-407.200.4).
** Checking Journaled HFS Plus volume.
Invalid node structure
(3, 0)
** The volume could not be verified completely.

sudo diskutil mount /dev/disk3
Volume on disk3 timed out waiting to mount

Kenichi00

您好 我的也不行 显示的是Volume on disk2s2 failed to mount
If the volume is damaged, try the “readOnly” option

aaa

Last login: Sat Nov 2 15:44:44 on ttys002
zhouxiaolong@zhouxiangdeMBP2  ~  sudo diskutil mount /dev/disk2
Password:
Volume on disk2 timed out waiting to mount
✘ zhouxiaolong@zhouxiangdeMBP2  ~  sudo fsck_hfs -fy /dev/disk2
** /dev/rdisk2 (NO WRITE)
Executing fsck_hfs (version hfs-522.0.9).
volumeType is 0
/dev/rdisk2 0000: 0000 0000 0000 0000 0000 0000 0000 0000 |…………….|
. . .
/dev/rdisk2 01b0: 0000 0000 0000 0000 0000 0000 0000 00fe |…………….|
/dev/rdisk2 01c0: ffff eefe ffff 0100 0000 ff67 6f74 0000 |………..got..|
/dev/rdisk2 01d0: 0000 0000 0000 0000 0000 0000 0000 0000 |…………….|
. . .
/dev/rdisk2 01f0: 0000 0000 0000 0000 0000 0000 0000 55aa |…………..U.|
✘ zhouxiaolong@zhouxiangdeMBP2  ~  sudo diskutil mount /dev/disk2
Password:
Volume on disk2 timed out waiting to mount
✘ zhouxiaolong@zhouxiangdeMBP2  ~ 

汪艳丽

无法输入密码是怎么回事

keri

Volume on disk2 timed out waiting to mount 出现这种情况怎么办呢

Clover

您好,能帮我看看吗?我是直接把移动硬盘拔下来,然后再连接到电脑上就不显示了。看了Finder,并没有隐藏。用了您的方法,显示的是“Volume on disk3 timed out waiting to mount”(我的移动硬盘是disk3)

37
0
Would love your thoughts, please comment.x
()
x