Computer/Mac/Command/Bless
の編集
https://museion.sakura.ne.jp/wiki/?Computer/Mac/Command/Bless
[
トップ
] [
編集
|
差分
|
履歴
|
添付
|
リロード
] [
新規
|
一覧
|
検索
|
最終更新
|
ヘルプ
|
ログイン
]
-- 雛形とするページ --
(no template pages)
[[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
タイムスタンプを変更しない
[[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
テキスト整形のルールを表示する