3

I'd like a Mac to always boot in target disk mode. Similarly to setting

sudo nvram boot-args="-v"

which boots in verbose mode, I tried

sudo nvram boot-args="-t"

but to no avail. Any idea?

2

1 Answer 1

6

From this (very useful!) page : http://www.cnet.com/news/how-to-manage-os-x-boot-options-with-wireless-keyboards/

I found the answer you want. And I quote:

The "boot-args" variable can be used for setting the above modes. but in addition if you need to load the system into Target Disk mode, you can do so by setting the "target-mode" PRAM variable in the following way (this will be enabled only once for the next time the system is started):

sudo nvram target-mode=1

It looks like you can't get it to do that on every boot - but you could write a startup script that waited for a minute then set that parameter again then rebooted. Note that without the delay, you would never be able to boot the machine again :)

Then if you ever did want to start the machine not in Target Disk Mode, you would simply kill the startup script while it was waiting for the minute.

8
  • Thanks for the target-mode=1 parameter. It's unfortunate that you cannot get it to boot in target disk mode indefinitely. Regarding Note that without the delay, you would never be able to boot the machine again I'd say that zapping the NVRAM with the ⌘⌥+P+R should allow you to boot again in normal mode. Wouldn't it?
    – VH-NZZ
    May 27, 2014 at 10:21
  • Putting it in target mode forever would mean you could never get it out again. Hence my suggestion of a startup script with a delay ... May 27, 2014 at 10:21
  • Putting it in target mode forever would mean you could never get it out again how about zapping the nvram as I wrote above?
    – VH-NZZ
    May 27, 2014 at 10:26
  • 1
    Oh. Yes. Good point. Haha :) May 27, 2014 at 10:30
  • 1
    Lingon is a helpful GUI for creating a startup-script: sourceforge.net/projects/lingon/?source=pdlp
    – njboot
    May 27, 2014 at 10:53

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .