| tags:mac tips&tricks categories:computing

Fusion drive を作る

MacBookProのディスク入替えついでにフュージョン化とElCapitanのクリーンインストールを行う。自分の為のメモとして書いておく。Fusion化のターミナルでの作業は簡単に書くと以下の流れになる。

  1. ディスク番号確認:diskutil list
  2. フュージョンドライブ作成:diskutil cs create
  3. ボリューム作成:diskutil coreStorage createVolume

詳細

Fusion化を行うディスクの番号を diskutil list にて把握。そして diskutil cs create "Fusion Drive" disk1 disk2 にてLogical Volume Groupを構築。

※この作業はMacBookProをMacBookAirに繋いで行っている為ディスク番号は disk1 と disk2 になっている。通常なら disk0 と disk1 になる。

shingha:~ $ diskutil cs create "Fusion Drive" disk1 disk2
Started CoreStorage operation
Unmounting disk1
Repartitioning disk1
Unmounting disk
Creating the partition map
Rediscovering disk1
Adding disk1s2 to Logical Volume Group
Unmounting disk2
Repartitioning disk2
Unmounting disk
Creating the partition map
Rediscovering disk2
Adding disk2s2 to Logical Volume Group
Creating Core Storage Logical Volume Group
Switching disk1s2 to Core Storage
Switching disk2s2 to Core Storage
Waiting for Logical Volume Group to appear
Discovered new Logical Volume Group "670F5705-EC7F-4D52-XXXX-A465FFA3EE12"
Core Storage LVG UUID: 670F5705-EC7F-4D52-XXXX-A465FFA3EE12
Finished CoreStorage operation
shingha:~ $ 

Volumeを diskutil cs createVolume "new Logical Volume Group 番号" jhfs+ "Fusion.11" 100% で作成。Fusion.11がファインダーで表示される。

shingha:~ $ diskutil cs createVolume "670F5705-EC7F-4D52-XXXX-A465FFA3EE12" jhfs+ "Fusion.11" 100%
The Core Storage Logical Volume Group UUID is 670F5705-EC7F-4D52-XXXX-A465FFA3EE12
Started CoreStorage operation
Waiting for Logical Volume to appear
Formatting file system for Logical Volume
Initialized /dev/rdisk3 as a 2 TB case-insensitive HFS Plus volume with a 139264k journal
Mounting disk
Core Storage LV UUID: E61D3EA0-4744-4B23-XXXX-533D19B9D00C
Core Storage disk: disk3
Finished CoreStorage operation
shingha:~ $

フュージョン化の解除

一つになったドライブの解除方法は diskutil cs deleteVolume というコマンドもあるが

diskutil cs delete "670F5705-EC7F-4D52-XXXX-A465FFA3EE12"

の一発で行けると、思う・・。

リカバリーUSB Stick

次いでに、リカバリーUSB Stickの作成方法は、AppStoreよりエルキャピタンのインストールアプリをダウンロード、USB Stickを初期化し(ディスクの名前はデフォルトのUntitled) 以下のコマンドで作る事ができる。Copying installer files to disk… で動きが止まり思ったより時間が掛かる。

shingha:~ $ sudo /Applications/Install\ OS\ X\ El\ Capitan.app/Contents/Resources/createinstallmedia --volume /Volumes/Untitled/ --applicationpath /Applications/Install\ OS\ X\ El\ Capitan.app --nointeraction
Password:
Erasing Disk: 0%... 10%... 20%... 30%...100%...
Copying installer files to disk...
Copy complete.
Making disk bootable...
Copying boot files...
Copy complete.
Done.
shingha:~ $ 

See Also

🏝 tipping

🌷 sat ⚡️ goozenlab@getalby.com
🌻 bitcoin : bc1qnjhnsxgqah050995dkdveav4y3t3d7uxyme4ud

If you do send a tip, Please email me so that I can say thank you.