disk repair via netboot

Not applicable

We are looking for the best way to automate the disk repair process (of
the internal boot drive). I did a little searching in the JAMF lists
archive but didn't really find a workflow other than:

Creating a diskless netboot image.

Setting the target machine to boot from it.

While netbooted, executing disk repair via CLI (not sure how to add a
script execution here to the netboot process).

Set boot disk pref back to internal drive.


How would we add/deploy a disk repair script to the netboot image (if
that's the best place for it)?



-- --

Bob Grudulis
Media Production and Engineering Systems Engineer

T 415.808.9744 | C 408.242.3381
600 Harrison St San Francisco, CA 94107

PRN | media where & when it matters

This e-mail (including any attachments) is meant for only the intended
recipient of the transmission, and may include confidential information.
If you are not the intended recipient or you received this e-mail in
error, any review, use, dissemination, distribution, or copying of this
e-mail is strictly prohibited. If you have received this message in
error, please notify the sender immediately by telephone at (415)
808-3500 or by return e-mail and delete this e-mail, along with any
attachments and copies, from your system. Thank you.


Honored Contributor

I can see this happening a few ways.

1) Create a configuration with a launchagent that runs disk utility
script and set your netboot image to enable automatic log in. Then when
root (or whatever user) automatically logs in the agent will run and it
will run disk utility.

2) wrap up your script in an apple script and make it an app and it
add it to the start up items for that user and set auto login to enabled

3) Use automator and launch an automator option

Options 2 and 3 could be required for user interaction, where as option
1 would be automated.


New Contributor III

Automating disk repair seems a bit scary.

If the disk needs repair it should have a tech look over it.

We have an emergency boot for this, this has disk warrior and other tools.

You could go the automated route, but I shy away from auto logins.