LoginSignup
0
0

More than 5 years have passed since last update.

macOS High SierraでHFS形式のフロッピーからファイルをコピー

Last updated at Posted at 2018-04-04

デバイスファイルの確認

USBフロッピードライブを接続し、フロッピーを挿入してから以下を実行。フロッピードライブは/dev/disk2であることがわかる。

$ diskutil list

/dev/disk2 (external, physical):
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:                            ñºèÃñ¢ê›íË *1.5 MB     disk2

HFS Utilitiesをインストール

$ brew install hfsutils

HFS Utilitiesを使ってファイルをコピー

$ sudo hmount /dev/disk2               # デバイスをマウント
$ sudo hls                             # カレントHFSボリュームのファイル一覧
$ sudo hcopy -m file dst               # ファイルをMacBinary形式でコピー
$ sudo hcopy -r file.bin dst           # ファイルをそのままコピー(既にMacBinaryの場合)
$ sudo hvol                            # カレントHFSボリュームの表示
  Current volume is mounted from:        # カレントは/dev/disk2
    /dev/disk2
$ sudo humount /dev/disk2              # デバイスをアンマウント
$ sudo hvol                            # カレントHFSボリュームの表示
  No known volumes; use `hmount' to introduce new volumes
                                         # カレントはなし
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0