{"id":1313,"date":"2016-04-30T11:01:34","date_gmt":"2016-04-30T15:01:34","guid":{"rendered":"http:\/\/shirishranjit.com\/blog1\/?page_id=1313"},"modified":"2016-04-30T11:01:34","modified_gmt":"2016-04-30T15:01:34","slug":"how-to-change-a-startup-disk-in-mac-in-command-line","status":"publish","type":"page","link":"https:\/\/shirishranjit.com\/blog1\/technical-posts\/mac-os-x-tidbits\/os-x-update-crashes-word-power-point\/how-to-change-a-startup-disk-in-mac-in-command-line","title":{"rendered":"How to Change a startup disk in Mac in Command line"},"content":{"rendered":"<p>sudo bless -mount \/Volumes\/&#8221;name of your startup disk&#8221; -setBoot<\/p>\n<p>So, if the desired disk was named \u201cTestDisk\u201d you would type this:<\/p>\n<p>sudo bless -mount \/Volumes\/TestDisk -setBoot<\/p>\n<p>If your disk name has spaces in it you\u2019ll need to put quotes around the path to the disk, like this:<\/p>\n<p>sudo bless -mount &#8220;\/Volumes\/My Disk&#8221; -setBoot<\/p>\n<p>You can incorporate this into a UNIX shell script to reboot your machine to another disk at a certain time. Perhaps you want to reboot to another disk every Friday to run a disk utility on it, or to image it.<\/p>\n<p>#!\/bin\/bash<br \/>\nbless -mount \/Volumes\/TestDisk -setBoot<br \/>\nshutdown -r now<\/p>\n<div class=\"twttr_buttons\"><div class=\"twttr_twitter\">\n\t\t\t\t\t<a href=\"http:\/\/twitter.com\/share?text=How+to+Change+a+startup+disk+in+Mac+in+Command+line\" class=\"twitter-share-button\" data-via=\"\" data-hashtags=\"\"  data-size=\"default\" data-url=\"https:\/\/shirishranjit.com\/blog1\/technical-posts\/mac-os-x-tidbits\/os-x-update-crashes-word-power-point\/how-to-change-a-startup-disk-in-mac-in-command-line\"  data-related=\"\" target=\"_blank\">Tweet<\/a>\n\t\t\t\t<\/div><div class=\"twttr_followme\">\n\t\t\t\t\t\t<a href=\"https:\/\/twitter.com\/shiranjit\" class=\"twitter-follow-button\" data-size=\"default\"  data-show-screen-name=\"false\"  target=\"_blank\">Follow me<\/a>\n\t\t\t\t\t<\/div><\/div>","protected":false},"excerpt":{"rendered":"<p>sudo bless -mount \/Volumes\/&#8221;name of your startup disk&#8221; -setBoot So, if the desired disk was named \u201cTestDisk\u201d you would type this: sudo bless -mount \/Volumes\/TestDisk -setBoot If your disk name has spaces in it you\u2019ll need to put quotes around &hellip; <a href=\"https:\/\/shirishranjit.com\/blog1\/technical-posts\/mac-os-x-tidbits\/os-x-update-crashes-word-power-point\/how-to-change-a-startup-disk-in-mac-in-command-line\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":4,"featured_media":0,"parent":620,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-1313","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/shirishranjit.com\/blog1\/wp-json\/wp\/v2\/pages\/1313"}],"collection":[{"href":"https:\/\/shirishranjit.com\/blog1\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/shirishranjit.com\/blog1\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/shirishranjit.com\/blog1\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/shirishranjit.com\/blog1\/wp-json\/wp\/v2\/comments?post=1313"}],"version-history":[{"count":1,"href":"https:\/\/shirishranjit.com\/blog1\/wp-json\/wp\/v2\/pages\/1313\/revisions"}],"predecessor-version":[{"id":1314,"href":"https:\/\/shirishranjit.com\/blog1\/wp-json\/wp\/v2\/pages\/1313\/revisions\/1314"}],"up":[{"embeddable":true,"href":"https:\/\/shirishranjit.com\/blog1\/wp-json\/wp\/v2\/pages\/620"}],"wp:attachment":[{"href":"https:\/\/shirishranjit.com\/blog1\/wp-json\/wp\/v2\/media?parent=1313"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}