bless in Mac OS X

By: Strauss K Emailed: 1732 times Printed: 2344 times    

Latest comments
By: rohit kumar - how this program is work
By: Kirti - Hi..thx for the hadoop in
By: Spijker - I have altered the code a
By: ali mohammed - why we use the java in ne
By: ali mohammed - why we use the java in ne
By: mizhelle - when I exported the data
By: raul - no output as well, i'm ge
By: Rajesh - thanx very much...
By: Suindu De - Suppose we are executing

Set volume bootability and set the active boot volume.
bless has 5 modes of execution: Folder Mode, Mount Mode, Device Mode, NetBoot Mode, and Info Mode.

Syntax (brief)

Info Mode:
   --info [dir]    Print blessing information for a specific volume, or the
                   currently active boot volume if dir is not specified
   --getBoot       Suppress normal output and print the active boot volume
   --version       Print bless version number
   --plist         For any output type, use a plist representation
   --verbose       Verbose output

File/Folder Mode:
   --file file     Set file as the blessed boot file
   --folder dir    Set dir as the blessed directory
   --bootinfo [file]
                   Use file to create a "BootX" file in the blessed dir
   --bootefi [file]
                   Use file to create a "boot.efi" file in the blessed dir
   --setBoot       Set firmware to boot from this volume
   --openfolder dir Set dir to be the visible Finder directory
   --verbose       Verbose output

Mount Mode:
   --mount dir     Use this mountpoint in conjunction with --setBoot
   --file file     Set firmware to boot from file
   --setBoot       Set firmware to boot from this volume
   --verbose       Verbose output

Device Mode:
   --device dev    Use this block device in conjunction with --setBoot
   --setBoot       Set firmware to boot from this volume
   --verbose       Verbose output

NetBoot Mode:
   --netboot       Set firmware to boot from the network
   --server url    Use BDSP to fetch boot parameters from url
   --verbose       Verbose output

Syntax (Detailed)

     bless --folder directory [--folder9 directory] [--file file]
           [--bootinfo [file]] [--bootefi [file]] [--bootBlockFile file]
           [--save9] [--saveX] [--use9] [--label name | --labelfile file]
           [--setBoot] [--openfolder directory] [--nextonly] [--shortform]
           [--legacy] [--legacydrivehint device] [--options string]
           [--quiet | --verbose]

     bless --mount directory [--file file] [--setBoot] [--nextonly]
           [--shortform] [--legacy] [--legacydrivehint device]
           [--options string] [--quiet | --verbose]

     bless --device device [--label name | --labelfile file]
           [--startupfile file] [--setBoot] [--nextonly] [--shortform]
           [--legacy] [--legacydrivehint device] [--options string]
           [--quiet | --verbose]

     bless --netboot --server url [--nextonly] [--options string]
           [--quiet | --verbose]

     bless --info [directory] [--getBoot] [--plist] [--quiet | --verbose]
           [--version]
     bless -help
	 

EXAMPLES

FOLDER MODE
To bless a volume with only Mac OS 9:

bless --folder9 "/Volumes/Mac OS 9/System Folder" --bootBlockFile "/usr/share/misc/bootblockdata"

To bless a volume with only Mac OS X or Darwin, and create the BootX and boot.efi files as needed:

bless --folder "/Volumes/Mac OS X/System/Library/CoreServices" --bootinfo --bootefi

MOUNT MODE
To set a volume containing either Mac OS 9 and Mac OS X to be the active volume:

bless --mount "/Volumes/Mac OS" --setBoot

NETBOOT MODE
To set the system to NetBoot and broadcast for an available server:

bless --netboot --server bsdp://255.255.255.255

INFO MODE
To gather information about the currently selected volume (as determined by the firmware), suitable for piping to a program capable of parsing Property Lists:

bless --info --plist

For a full description of all the bless options see man bless the options available for bless may vary according to the version of OS X you are running.


macos Home | All macos Tutorials | Latest macos Tutorials

Sponsored Links

If this tutorial doesn't answer your question, or you have a specific question, just ask an expert here. Post your question to get a direct answer.



Bookmark and Share

Comments(0)


Be the first one to add a comment

Your name (required):


Your email(required, will not be shown to the public):


Your sites URL (optional):


Your comments:



More Tutorials by Strauss K
cut in Mac OS X
curl in Mac OS X
crontab in Mac OS X
cron in Mac OS X
cp in Mac OS X
continue in Mac OS X
complete in Mac OS X
command in Mac OS X
comm in Mac OS X
cmp in Mac OS X
cksum in Mac OS X
chroot in Mac OS X
chown in Mac OS X
chmod in Mac OS X
chgrp in Mac OS X

More Tutorials in macos
Getting PHP running on Mac OS 10.1
Installing gedit for python programming in Mac OS X
What is Mac OS X?
History of Mac OS X
Major features of Mac OS X
Different Versions of Mac OS X
What is new in Mac OS X Snow Leopard
alias, unalias in Mac OS X
apropos in Mac OS X
awk in Mac OS X
basename in Mac OS X
bash in Mac OS X
bg in Mac OS X
bless in Mac OS X
break in Mac OS X

More Latest News
Most Viewed Articles (in macos )
chmod in Mac OS X
complete in Mac OS X
crontab in Mac OS X
curl in Mac OS X
bless in Mac OS X
cp in Mac OS X
What is Mac OS X?
Major features of Mac OS X
Different Versions of Mac OS X
alias, unalias in Mac OS X
basename in Mac OS X
bzip in Mac OS X
cal, ncal in Mac OS X
caller in Mac OS X
cat in Mac OS X
Most Emailed Articles (in macos)
bless in Mac OS X
bash in Mac OS X
cal, ncal in Mac OS X
chroot in Mac OS X
What is Mac OS X?
History of Mac OS X
Major features of Mac OS X
Different Versions of Mac OS X
What is new in Mac OS X Snow Leopard
alias, unalias in Mac OS X
apropos in Mac OS X
awk in Mac OS X
basename in Mac OS X
bg in Mac OS X
break in Mac OS X