今天在给同事的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 这里借鉴来的可以做未参考,如果还有其他问题咱们还可以讨论,谢谢大家。
hi, 谢谢你的答案,但我还是有一些小问题:
在输入第一行指令之后显示
no such file or directory
cant stat /dev/disk2
cant stat /dev/disk2:no such file or directory
上面的list明明显示我的硬盘是 dev/disk2了,请问是怎么回事呢
$ 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
输入查看硬盘信息之后 未发现有磁盘挂载, 但明明我的硬盘物理上已经连在电脑上了
我的提示无法挂载啊[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]
你好 我没有成功可以帮我看下嘛
我也没有成功,可以帮我看下吗~而且磁盘工具也显示不出来 1 ** /dev/rdisk3s1 Executing fsck_hfs (version hfs-407.50.6). volumeType… 阅读更多 »
我也是硬盘不小心误触导致掉线,之后mac也就不再能显示移动硬盘了;按照您说的方法,我发现命令行根本就不显示硬盘存在;
my-Mac:~ mysudo 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
请问一下,出现以上情况,然后就还是不成功,应该怎么办呢,谢谢。
可以看看这个是什么问题?
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
您好 我的也不行 显示的是Volume on disk2s2 failed to mount
If the volume is damaged, try the “readOnly” option
Last login: Sat Nov 2 15:44:44 on ttys002 zhouxiaolong@zhouxiangdeMBP2 ~ sudo diskutil mount /de… 阅读更多 »
无法输入密码是怎么回事
Volume on disk2 timed out waiting to mount 出现这种情况怎么办呢
您好,能帮我看看吗?我是直接把移动硬盘拔下来,然后再连接到电脑上就不显示了。看了Finder,并没有隐藏。用了您的方法,显示的是“Volume on disk3 timed out waiting to mount”(我的移动硬盘是disk3)