Hi,
I wrote this script to remove the Recovery HD and add the space to the Macintosh HD volume. Maybe you'll find this usefull.
---
#!/bin/sh
diskutil list > /tmp/diskutil
while read line
do
# Find the Mac OS X 10.7 Recovery HD volume and erase
if `echo ${line} | grep "Recovery HD" 1>/dev/null 2>&1`; then
recovery_hd=echo "${line}" | awk '{ print $7 }'
diskutil eraseVolume HFS+ Blank /dev/${recovery_hd}
# Find the Macintosh HD volume and merge with erased Recovery HD volume
if `echo ${line} | grep "Macintosh HD" 1>/dev/null 2>&1`; then
macintosh_hd=echo "${line}" | awk '{ print $7 }'
diskutil mergePartitions HFS+ "Macintosh HD" ${macintosh_hd} ${recovery_hd}
fi
fi
done < /tmp/diskutil
---
Kind Regards,
Martin van Diemen
t +31 (0)205677744
G-Star Raw C.V.
www.g-star.com

