|
mac geekeryGet your geek on. |
Resizing a disk for use with twocanoes "Winclone"June 10, 2009 - 3:33pm
Does anyone have/can anyone create a script that does the following on a 10.5.7 computer? a. Identifies the boot drive of a computer (assuming a MacPro here with 2 drives: a boot drive and a second internal drive used for data). I can see that a diskutil info disk0s2 will provide me with Total Size and Free Space but my scripting is not good enough to go any further. I’d like to deploy this via ARD. About atothec |
|
||||
FREESPACE=`df -g | grep /dev/disk0s2 | awk ‘{ print $4 }’`