UJP - 技術情報2 バックアップ : TestDisk/7.1/macos のバックアップ差分(No.1)

Life is fun and easy!

不正IP報告数

Okan Sensor
 
メイン
ログイン
ブログ カテゴリ一覧

1: 2020-05-08 (金) 14:44:30 nobuaki ソース バックアップ No.1 を復元して編集
Line 1: Line 1:
 +*TestDisk7.1を使ってマウントできないハードディスクを [#vc0c891f]
 +
 +**はじめに [#cd355b44]
 +
 + macosで利用していたハードディスクが,マウントできなくなったので,データのサルベージを試みる.
 +
 + 今回利用したのは,TestDiskという無料ツールで,HomeBrew経由でインストールしているようして観た.
 +
 +**入手 [#lf88a77a]
 +
 + 公式サイトからダウンロードでも入手できる.
 +
 +TestDisk
 +https://www.cgsecurity.org/wiki/TestDisk
 +
 + 今回はインストールはHomeBrewで行った.
 +
 + まずは,インフォメーションを確認.
 +
 + $ brew info testdisk🆑
 + testdisk: stable 7.1 (bottled)
 + Powerful free data recovery utility
 + https://www.cgsecurity.org/wiki/TestDisk
 + /usr/local/Cellar/testdisk/7.1 (22 files, 1.7MB) *
 +   Poured from bottle on 2020-05-07 at 11:03:38
 + From: https://github.com/Homebrew/homebrew-core/blob/master/Formula/testdisk.rb
 + ==> Analytics
 + install: 3,491 (30 days), 7,660 (90 days), 18,441 (365 days)
 + install-on-request: 3,456 (30 days), 7,572 (90 days), 17,859 (365 days)
 + build-error: 0 (30 days)
 + $
 +
 + 過去1年で18000ダウンロードだけれど,過去1ヶ月で3500近く入手されている.在宅勤務中に,ニーズがあるということかな?!
 +
 +**HomeBrewでインストールする [#s60006cc]
 +
 + インストールする.
 +
 + $ brew install testdisk🆑
 + ==> Downloading https://homebrew.bintray.com/bottles/testdisk-7.1.high_sierra.bottle.tar.gz
 + ==> Downloading from https://akamai.bintray.com/8c/8cd43adea2ddf632e5c9305609cf377b47fcf5836805075d06dd3ccd2142ccc6?__gd
 + ######################################################################## 100.0%
 + ==> Pouring testdisk-7.1.high_sierra.bottle.tar.gz
 + 🍺  /usr/local/Cellar/testdisk/7.1: 22 files, 1.7MB
 + $
 +
 + インストールされたファイルを確認する.
 +
 + $ ls -la /usr/local/Cellar/testdisk/7.1/🆑
 + .brew/                COPYING              INSTALL_RECEIPT.json  README.md            share/
 + AUTHORS              ChangeLog            NEWS                  bin/
 + $ ls -la /usr/local/Cellar/testdisk/7.1/bin/
 + total 1176
 + drwxr-xr-x  5 ujpadmin staff    160  7  8  2019 .
 + drwxr-xr-x 11 ujpadmin staff    352  5  7 11:03 ..
 + -r-xr-xr-x  1 ujpadmin staff 313712  7  8  2019 fidentify
 + -r-xr-xr-x  1 ujpadmin staff 555652  7  8  2019 photorec
 + -r-xr-xr-x  1 ujpadmin staff 328868  7  8  2019 testdisk🈁
 + $
 +
 + testdiskコマンドが確認できた.
 +
 +**TestDiskを起動する [#m28fd610]
 +
 + インストールしたtestdiskを起動する.
 +
 + $ /usr/local/Cellar/testdisk/7.1/bin/testdisk🆑
 +
 + 次のような画面になる.
 +
 +#ref(site://modules/xelfinder/index.php?page=view&file=6974&TestDisk7.1macos1.png,center,mw:600,mh:600)
 + ログは,今回は初回なので新規作成にする.
 +
 +#ref(site://modules/xelfinder/index.php?page=view&file=6975&TestDisk7.1macos2.png,center,mw:600,mh:600)
 + 実行しようとしたら,root権限が必要と警告が出た.
 + Qを押して一旦終了.
 +
 + root権限がないとストレージが認識されない.
 +
 + 終了するためには,qを押す.
 +
 + sudoで再度実行する.
 +
 + $ sudo /usr/local/Cellar/testdisk/7.1/bin/testdisk🆑
 + Password:
 +
 +#ref(site://modules/xelfinder/index.php?page=view&file=6976&TestDisk7.1macos3.png,center,mw:600,mh:600)
 + もう一度,ログファイルを新規作成にする.
 +
 +**ディスクユーティリティのFirst Aidの結果 [#q6156748]
 +
 + 今回修復しようとしているハードディスクを,macOSに標準で付属している「ディスクユーティリティ」でFirst Aidを実行してみる.
 +
 +#ref(site://modules/xelfinder/index.php?page=view&file=6979&TestDisk7.1macos6.png,center,mw:600,mh:600)
 + ディスクユーティリティで,First Aidを実行する.
 +
 +#ref(site://modules/xelfinder/index.php?page=view&file=6978&TestDisk7.1macos5.png,center,mw:600,mh:600)
 + しばらく待つと,リカバリが失敗した.
 +
 + 今回のように,デバイスとしては認識するけれどマウントできない状態で試す.
 +
 +**アナライズを実行 [#e6295dbe]
 +
 + 今回修復するディスクの分析を行う.
 +
 +
 +#ref(site://modules/xelfinder/index.php?page=view&file=6980&TestDisk7.1macos7.png,center,mw:600,mh:600)
 + デバイスは,2TB(2000GB)のディスクドライブを指定.
 +#ref(site://modules/xelfinder/index.php?page=view&file=6981&TestDisk7.1macos8.png,center,mw:600,mh:600)
 + 今回はmacOSで利用していたハードディスクなので,EFI GPTパーティションを選ぶ.
 +#ref(site://modules/xelfinder/index.php?page=view&file=6982&TestDisk7.1macos9.png,center,mw:600,mh:600)
 + Analyseを選択.
 +
 + この後,しばらく無反応になったが,時間がかかっても動いている模様.
 +
 +#ref(site://modules/xelfinder/index.php?page=view&file=6983&TestDisk7.1macos10.png,center,mw:600,mh:600)
 + しばらくするとこの画面になるが,待つだけ.
 +#ref(site://modules/xelfinder/index.php?page=view&file=6984&TestDisk7.1macos11.png,center,mw:600,mh:600)
 + 無反応なのだけれど,しばらく経つとこのようなログが表示される...基本的には,エラーになっているようだが,このエラーが数時間おきに20行程度表示されるようなことを繰り返す.


トップ   編集 差分 バックアップ 添付 複製 名前変更 リロード   ページ新規作成 全ページ一覧 単語検索 最新ページの一覧   ヘルプ   最新ページのRSS 1.0 最新ページのRSS 2.0 最新ページのRSS Atom
Counter: 2422, today: 2, yesterday: 1

広告スペース
Google