4
6

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

FusionDrive を構築して MacOS X El Capitan をインストール

Posted at

背景

MacOS X Mountain Lion を常用していたのですが、Google Chrome のサポートが終了したりということで MacOS X El Capitan に移行することにした

環境

Mac mini (Late 2012)
メモリ : 16GB
ストレージ : Lacie LCH-LB1TTB
lch-lb.jpg

準備

LCH-LB1TTB のドライブを換装する
SSD : Samsung 840 Evo 256GB
HDD : 東芝 MQ01ABD100 1TB
※ストックしてあったの部品達から選抜

LCH-LB1TTB はネジ外すだけでバラバラになるので換装は楽

MacOS X El Capitan のインストールUSBを作る

個人的なつまらないこだわりとして、内蔵ドライブは出荷時のOSを維持したいので、インストール用のUSBメディアを作っておく

  1. Mac App Store から OS X El Capitan をダウンロード
  2. ダウンロードが完了すると起動するインストール画面は[Command]+[Q]で終了する
  3. USBメモリを挿す
  4. 「ターミナル」を起動して、次のコマンドを実行
sudo /Applications/"Install OS X El Capitan.app"/Contents/Resources/createinstallmedia --volume /Volumes/"NO NAME" --applicationpath /Applications/Install\ OS\ X\ El\ Capitan.app --nointeraction

FusionDrive を構築する

「ターミナル」を起動して、次のコマンドを実行

  • 接続されているドライブを確認する
diskutil list
/dev/disk0
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:      GUID_partition_scheme                        *1.0 TB     disk0
   1:                        EFI                         209.7 MB   disk0s1
   2:                  Apple_HFS Macintosh HD            999.3 GB   disk0s2
   3:                 Apple_Boot Recovery HD             650.0 MB   disk0s3
/dev/disk1
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:                                                   *250.1 GB   disk1
/dev/disk2
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:                                                   *1.0 TB     disk2

今回 FusionDrive にするのは disk1 と disk2

  • CoreStorage を構築する
diskutil cs create FusionDrive 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 "F09BE637-CD3E-4715-A2D4-51352B65FD3C"
Core Storage LVG UUID: F09BE637-CD3E-4715-A2D4-51352B65FD3C
Finished CoreStorage operation
  • 構築された CoreStorage を確認する
diskutil cs list
CoreStorage logical volume groups (1 found)
|
+-- Logical Volume Group F09BE637-CD3E-4715-A2D4-51352B65FD3C
    =========================================================
    Name:         FusionDrive
    Status:       Online
    Size:         1249576288256 B (1.2 TB)
    Free Space:   1240679899136 B (1.2 TB)
    |
    +-< Physical Volume 46063172-7C13-4494-A3DA-C38AEF40AF3B
    |   ----------------------------------------------------
    |   Index:    0
    |   Disk:     disk1s2
    |   Status:   Online
    |   Size:     249715376128 B (249.7 GB)
    |
    +-< Physical Volume 80E58543-55FF-43AE-AED5-466F73EA7D16
        ----------------------------------------------------
        Index:    1
        Disk:     disk2s2
        Status:   Online
        Size:     999860912128 B (999.9 GB)

  • CoreStorage に Volume を作成する
diskutil coreStorage createVolume F09BE637-CD3E-4715-A2D4-51352B65FD3C jhfs+ "Macintosh FusionDrive" 100%
Started CoreStorage operation
Waiting for Logical Volume to appear
Formatting file system for Logical Volume
Initialized /dev/rdisk3 as a 1 TB HFS Plus volume with a 98304k journal
Mounting disk
Core Storage LV UUID: 75FC5748-5E96-4980-8181-E0DA9F2F6559
Core Storage disk: disk3
Finished CoreStorage operation

MacOS X El Capitan のインストール

作成しておいた MacOS X El Capitan のインストールUSBで起動して、作成した FusionDrive に MacOS X El Capitan をインストールする

Trim を有効にしておく

たぶん Trim が有効になっていないので、有効にしておく
[Appleメニュー]→[このMacについて]→[システムレポート]

trim_off.png

sudo trimforce enable

WARNING: Improper use of the sudo command could lead to data loss
or the deletion of important system files. Please double-check your
typing when using sudo. Type "man sudo" for more information.

To proceed, enter your password, or type Ctrl-C to abort.

Password:
IMPORTANT NOTICE:  This tool force-enables TRIM for all relevant attached
devices, even though such devices may not have been validated for data
integrity while using TRIM.  Use of this tool to enable TRIM may result in
unintended data loss or data corruption.  It should not be used in a commercial
operating environment or with important data. Before using this tool, you
should back up all of your data and regularly back up data while TRIM is
enabled.  This tool is provided on an “as is” basis. APPLE MAKES NO WARRANTIES,
EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION THE IMPLIED WARRANTIES OF
NON-INFRINGEMENT, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE,
REGARDING THIS TOOL OR ITS USE ALONE OR IN COMBINATION WITH YOUR DEVICES,
SYSTEMS, OR SERVICES. BY USING THIS TOOL TO ENABLE TRIM, YOU AGREE THAT, TO THE
EXTENT PERMITTED BY APPLICABLE LAW, USE OF THE TOOL IS AT YOUR SOLE RISK AND
THAT THE ENTIRE RISK AS TO SATISFACTORY QUALITY, PERFORMANCE, ACCURACY AND
EFFORT IS WITH YOU.
Are you sure you wish to proceed (y/N)? y
Your system will immediately reboot when this is complete.
Is this OK (y/N)? y
Enabling TRIM...
.
.
Operation succeeded. Your system will reboot momentarily, please wait...

trim_on.png

4
6
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
4
6

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?