LoginSignup
0
1

More than 5 years have passed since last update.

rawディスクイメージをMacで扱う

Posted at

概要

Macでddのイメージをマウントして扱うにはどうすればいいかなぁと。

環境

Mac OS 10.12 Sierra

rawでやってみた(Mac)

空ディスクイメージの作成
mkfile 1G test
空ディスクイメージのマウント
hdiutil attach -imagekey diskimage-class=CRawDiskImage -nomount test

返り値例:/dev/disk3   
フォーマット
diskutil partitionDisk /dev/ディスク名 1 MBRFormat "MS-DOS FAT32" FOO 100%

cd /Volumes/FOO
再びマウント
hdiutil attach -imagekey diskimage-class=CRawDiskImage test

2、3回しました。問題なし。

qcow2でテスト

shell:はじめに
brew install qemu
brew cask install osxfuse
brew install rust
cargo install qcow2-fuse

shell:イメージ作成、外部ディスクで
qemu-img create -f qcow2 test.qcow2 1G

レファレンス

http://takuya-1st.hatenablog.jp/entry/2016/11/16/164850
https://serverfault.com/questions/174909/mount-block-file-on-osx
https://lowreal.net/2014/01/28/2

0
1
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
1