#author("2016-04-24T19:57:43+09:00","","")
[[Computer/Mac/Command]]

*起動ディスクの設定(bless) [#b15c3e17]


起動ディスクはコマンドで設定することができます.長いコマンドなので,Path の通ったところに,次のようなシェルスクリプトを置いておくとよいでしょう.

**シェルスクリプト [#j5c14011]

PPC と Intel の場合で異なります.それぞれ bless 以下は1行になっていますので,コピーする際には注意してください.

***PPC [#c569cd98]

 #!/bin/sh
 
 bless –folder "/Volumes/$1/System/Library/CoreServices" –file="/Volumes/$1/System/Library/CoreServices/BootX" –setBoot

***Intel [#m8e71fb8]

 #!/bin/sh
 
 bless -folder "/Volumes/$1/System/Library/CoreServices" -setBoot

**使い方 [#l07f0263]

たとえば次のように使います.VOLUME には,起動ディスクにしたいボリュームの名前を入れます(たとえば /Volumes/SnowLeopard だったら `SnowLeopard').

 $ sudo chBootDisk VOLUME
 $ sudo reboot

**リンク [#l20f812f]

-http://force4u.cocolog-nifty.com/skywalker/2008/01/post_4976.html


トップ   編集 差分 履歴 添付 複製 名前変更 リロード   新規 一覧 検索 最終更新   ヘルプ   最終更新のRSS