mac USB HDD failed: at least one volume could not be unmounted

Pocket

接続しても反応しない
ディスクユーティリティにも表示されない状態となった

初期化を試みる

確認

astelnoMacBook-Pro% diskutil list
/dev/disk0 (internal):
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:      GUID_partition_scheme                         500.3 GB   disk0
   1:                        EFI EFI                     314.6 MB   disk0s1
   2:          Apple_CoreStorage Macintosh HD            298.4 GB   disk0s2
   3:                 Apple_Boot Recovery HD             650.0 MB   disk0s3
   4:       Microsoft Basic Data BOOTCAMP                193.0 GB   disk0s4

/dev/disk1 (internal, virtual):
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:                  Apple_HFS Macintosh HD           +298.0 GB   disk1
                                 Logical Volume on disk0s2
                                 094739F1-0A66-4032-BFD9-6C3E5DAFE984
                                 Unencrypted

/dev/disk2 (external, physical):
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:      GUID_partition_scheme                        *500.1 GB   disk2
   1:                        EFI EFI                     209.7 MB   disk2s1
   2:                  Apple_HFS astel_HDD               499.8 GB   disk2s2

astelnoMacBook-Pro% 

/dev/disk2 として接続されていることはわかるがディスクユーティリティには表示されていない状態

unmountして初期化を試す

astelnoMacBook-Pro% diskutil unMountDisk /dev/disk2
Unmount of disk2 failed: at least one volume could not be unmounted
astelnoMacBook-Pro% 
astelnoMacBook-Pro% 
astelnoMacBook-Pro% sudo diskutil unMountDisk /dev/disk2
Password:
Unmount of disk2 failed: at least one volume could not be unmounted
astelnoMacBook-Pro% 
astelnoMacBook-Pro% 
astelnoMacBook-Pro% sudo diskutil unMountDisk force /dev/disk2
Unmount of disk2 failed: at least one volume could not be unmounted

失敗する

psコマンドでなんか使ってるか見る

astelnoMacBook-Pro% sudo ps aux | grep -v grep | grep disk2
root               311  46.7 12.5  4596756 2104132   ??  R     2:52PM  15:13.10 /System/Library/Filesystems/hfs.fs/Contents/Resources/./fsck_hfs -y /dev/disk2s2

なんか使われてるのでkill

astelnoMacBook-Pro% sudo kill -9 311
astelnoMacBook-Pro% sudo ps aux | grep -v grep | grep disk2
root               988  16.6  1.7  4551700 285428   ??  R     3:35PM   0:00.62 /System/Library/Filesystems/hfs.fs/Contents/Resources/./fsck_hfs -y /dev/disk2s2
astelnoMacBook-Pro% sudo kill -9 988                       
astelnoMacBook-Pro% sudo ps aux | grep -v grep | grep disk2
root              1007  15.7  1.7  4551700 278852   ??  R     3:35PM   0:00.38 /System/Library/Filesystems/hfs.fs/Contents/Resources/./fsck_hfs -y /dev/disk2s2
astelnoMacBook-Pro% 
astelnoMacBook-Pro% 
astelnoMacBook-Pro% sudo kill 1007
astelnoMacBook-Pro% sudo ps aux | grep -v grep | grep disk2
astelnoMacBook-Pro% sudo ps aux | grep -v grep | grep disk2
astelnoMacBook-Pro% 
astelnoMacBook-Pro% sudo ps aux | grep -v grep | grep disk2
astelnoMacBook-Pro% sudo ps aux | grep -v grep | grep disk2

kill -9 やるとゾンビになるので-9なしでやったら死んだ

astelnoMacBook-Pro% diskutil list
/dev/disk0 (internal):
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:      GUID_partition_scheme                         500.3 GB   disk0
   1:                        EFI EFI                     314.6 MB   disk0s1
   2:          Apple_CoreStorage Macintosh HD            298.4 GB   disk0s2
   3:                 Apple_Boot Recovery HD             650.0 MB   disk0s3
   4:       Microsoft Basic Data BOOTCAMP                193.0 GB   disk0s4

/dev/disk1 (internal, virtual):
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:                  Apple_HFS Macintosh HD           +298.0 GB   disk1
                                 Logical Volume on disk0s2
                                 094739F1-0A66-4032-BFD9-6C3E5DAFE984
                                 Unencrypted

/dev/disk2 (external, physical):
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:      GUID_partition_scheme                        *500.1 GB   disk2
   1:                        EFI EFI                     209.7 MB   disk2s1
   2:                  Apple_HFS astel_HDD               499.8 GB   disk2s2

astelnoMacBook-Pro% sudo diskutil unMountDisk /dev/disk2     
Unmount of all volumes on disk2 was successful

無事unmountできた

この状態でディスクユーティリティみるとちゃんと表示されているのでそこから初期化した
めでたしめでたし

astelnoMacBook-Pro%

コメントを残す

メールアドレスが公開されることはありません。