9/20/2023 0 Comments Mac os partition command linePerhaps you want to reboot to another disk every Friday to run a disk utility on it, or to image it.īreaking down this script the first line sets the disk your Mac will boot from. You can incorporate this into a UNIX shell script to reboot your machine to another disk at a certain time. Sudo bless -mount "/Volumes/My Disk" -setBoot If your disk name has spaces in it you’ll need to put quotes around the path to the disk, like this: Sudo bless -mount /Volumes/TestDisk -setBoot So, if the desired disk was named “TestDisk” you would type this: Sudo bless -mount /Volumes/"name of your startup disk" -setBoot To change the startup disk type the following in Terminal: To get the full story on “bless” open up Terminal and type “man bless” (no quotes). The command for setting the startup disk using Terminal is “bless“. While it’s quite easy to change which disk your machine starts up from using System Preferences there may be times when you need/want to do it either at the command line or within a script.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |