Yosemite の起動デイスクを作る

MacOSX10.0 Yosemite の起動デイスクを作る方法だ。
Macworld のコピーだけど、Yosemite にアップデートしたMacの、起動可能なUSBメモリを作成してみる。
Mervericks でやったようなRecoveryDiskAssistantで起動可能なUSBメモリを作れなかったからである。一応できたように見えたが、このUSBメモリーから起動できなかったからである。以下で作成した起動ディスクはMacの機種を選ばないからいい。RecoveryDiskAssistantでは作成したマシンでしかうごかないからな。
用意するもの
1)起動USBメモリーを用意する。8GBでいいだろ。
USBメモリー デイスクユーティリティーで初期化しておく。
20141021Boot_Yosemite-1
Mac OS 拡張(ジャーナリング)で名称は Untitled にする(重要!!ターミナルで操作するので日本語のボリューム名は面倒だから)。
消去をクリックして初期化する。
Macに接続したままにしておく。
2)インストーラを用意する。
すでにYosemite にアップデートしているから、ダウンロードしたYosemiteのインストーラは消去されている。そこでApp Store(このMacについて から ソフトウエア ・アップデート をクリック) のウインドウの 購入済み を選択すると OS X Yosemite  があり、ダウンロードできるようになっている。ダウンロードする。すでにYosemiteがインストールされているぞと言われるが、構わずダウンロードする。
ダウウロードが終了すると、インストールするか?と聞いてくるから、インストースせず、終了する。これでアプリケーション フォルダに
20141021Boot_Yosemite-5   OS X Yosemite インストール.app がある。アプリケーションフォルダから移動しないでそのままとする。ほんとの名前は

Install OS X Yosemite.app(Install OS X Yosemite.app) だ。ターミナルではこっちの名前で操作することになる。

Option 1:  createinstallmediaコマンドを使う

小一時間かかる。一番のお勧めである。Macのadminのパスワードが必要だ。OS X Yosemite インストール.appがアップリケーションにあること、USBメモリーの名称がUntitledであること。違っていると、そんなファイル/ボリュームはないよ と怒られるからね。
1)ターミナルを起動する。
以下の太文字の文字列を入力し、エンターキーを押すと、警告がでてくるが、構わず admin のパスワードを入力、エンター で下のような、消してるよ、コピー中だよ という進行中のメッセージがでてくる。30〜50分とか、かかるだろう。最後に Done. と出たらおしまい。

[Mac名]:~ [ユーザ名]$ sudo /Applications/Install OS X Yosemite.app/Contents/Resources/createinstallmedia –volume /Volumes/Untitled –applicationpath /Applications/Install OS X Yosemite.app –nointeraction
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:
Erasing Disk: 0%… 10%… 20%… 30%…100%…
Copying installer files to disk…
Copy complete.
Making disk bootable…
Copying boot files…
Copy complete.
Done.
[Mac名]:~ [ユーザ名]$

デスクトップに 20141021Boot_Yosemite-4 というボリュームができているだろう。名前をYosemite Installer とか変えても構わない。
これを使えば、Yosemite がインストールできるどのMachineにもYosemiteをインストールできる。TimeMachineからの復活、デイスクユーティリティーも使える。このUSBから起動するためには、起動時にオプションキーをボリューム選択画面が出るまで押し続けておき、選択すればいい。
以下はまだやってないので、とりあえず原文だけ。

Option 2: Disk Utilityを使う

この方法の訳はちとまって。
You’ll find Disk Utility, a handy app that ships with OS X, in /Applications/Utilities. Here are the steps for using it to create your installer drive. The procedure is a bit more involved with Yosemite than it was for Mavericks (which was itself a bit more involved than under Mountain Lion and Lion).

yosemite beta show package contents
Right-click (or Control+click) the Yosemite installer to view its contents.
  1. Once you’ve downloaded Yosemite, find the installer on your Mac. It’s called Install OS X Yosemite.app and it should have been downloaded to your main Applications folder (/Applications).
  2. Right-click (or Control+click) the installer, and choose Show Package Contents from the resulting contextual menu.
  3. In the folder that appears, open Contents, then open Shared Support; you’ll see a disk image file called InstallESD.dmg.
  4. Double-click InstallESD.dmg in the Finder to mount its volume. That volume will appear in the Finder as OS X Install ESD; open it to view its contents.
  5. Several of the files you’ll need to work with are hidden in the Finder, and you need to make them visible. Open the Terminal app (in /Application/Utilities), then type (or copy and paste) the following command, and then press Return:
    defaults write com.apple.finder AppleShowAllFiles 1 && killall Finder

    (This tells the Finder to show hidden files—we’ll re-hide such files later.)

  6. Launch Disk Utility (in /Applications/Utilities) and then drag BaseSystem.dmg (in the OS X Install ESD volume) into Disk Utility’s left-hand sidebar.
  7. Select BaseSystem.dmg in Disk Utility’s sidebar, and then click the Restore button in the main part of the window.
  8. Drag the BaseSystem.dmg icon into the Source field on the right (if it isn’t already there).
  9. Connect to your Mac the properly formatted hard drive or flash drive you want to use for your bootable Yosemite installer.
  10. In Disk Utility, find this destination drive in the left sidebar. You may see a couple partitions under the drive: one named EFI and another with the name you see for the drive in the Finder. Drag the latter—the one with the drive name—into the Destination field on the right. (If the destination drive has additional partitions, just drag the partition you want to use as your bootable installer volume.)
  11. Warning: This step will erase the destination drive or partition, so make sure that it doesn’t contain any valuable data. Click Restore, and then click Erase in the dialog box that appears; if prompted, enter an admin-level username and password.
  12. Wait for the restore procedure to finish, which should take just a few minutes.
  13. Open the destination drive—the one you’re using for your bootable installer drive, which has been renamed OS X Base System. Inside that drive, open the System folder, and then open the Installation folder. You’ll see an alias called Packages. Delete that alias.
  14. Open the mounted OS X Install ESD volume, and you’ll see a folder called Packages. Drag that folder into the Installation folder on your destination drive. (You’re replacing the deleted Packages alias with this Packages folder.) The folder is about 4.6GB in size, so the copy will take a bit of time, especially if you’re copying to a slow thumb drive.
  15. Also in the mounted OS X Install ESD volume, you’ll find files named BaseSystem.chunklist and BaseSystem.dmg. Copy these files to the root(top) level of your install drive (OS X Base System, not into the System or Installation folder).
  16. Eject the OS X Install ESD volume.
  17. You’ll likely want to re-hide invisible files in the Finder. Open the Terminal app, type (or copy and paste) the following command, and then press Return:
    defaults write com.apple.finder AppleShowAllFiles 0 && killall Finder

You now have a bootable Yosemite install drive. If you like, you can rename the drive from OS X Base System to something more descriptive, such as Yosemite Installer.

yosemite beta disk utility restore
You can use Disk Utility’s Restore screen to create a bootable Yosemite installer drive.

Option 3: Terminalを使う

この方法の訳もちとまって。
If you’re a Terminal jockey, you likely know that most of Disk Utility’s features can be accessed using shell commands—which means that you can perform the Disk Utility procedure using a few commands in Terminal.

  1. Download the Yosemite installer from the Mac App Store and make sure it’s in your main Applications folder (/Applications)—it’s called Install OS X Yosemite.app.
  2. Connect to your Mac a properly formatted 8GB (or larger) drive. Rename the drive to Untitled. (The Terminal commands I provide here assume the drive is named Untitled.)
  3. Open Terminal and type (or copy and paste) the following commands, one by one, pressing return after each to run it. Make sure each command finishes—in other words, you see a command prompt—before running the next command. Enter your admin-level account password when prompted.
    sudo hdiutil attach /Applications/Install OS X Yosemite.app/Contents/SharedSupport/InstallESD.dmg
    sudo asr restore -source /Volumes/OS X Install ESD/BaseSystem.dmg -target /Volumes/Untitled -erase -format HFS+

    (During this step, you’ll be prompted to confirm that you want to erase the contents of Untitled. Type y and press Return.)

    sudo rm /Volumes/OS X Base System/System/Installation/Packages
    sudo cp -a /Volumes/OS X Install ESD/Packages /Volumes/OS X Base System/System/Installation/Packages
    sudo cp -a /Volumes/OS X Install ESD/BaseSystem.chunklist /Volumes/OS X Base System
    sudo cp -a /Volumes/OS X Install ESD/BaseSystem.dmg /Volumes/OS X Base System
    hdiutil detach /Volumes/OS X Install ESD

コメントを残す

メールアドレスが公開されることはありません。 が付いている欄は必須項目です