Posted on 08-30-2011 08:15 AM
Has anyone here developed a script to remove the hidden Lion Recovery Partition???
--
Matt Lee, CCA/ACMT/ACPT/ACDT
Senior IT Analyst / Desktop Architecture Team / Apple S.M.E / JAMF Casper Administrator
Fox Networks Group
Posted on 08-30-2011 08:35 AM
Script, no, but diskutil should do what you need.
Posted on 08-30-2011 05:14 PM
You'd need to put Disk Utility into debug mode to be able to see the Lion partition to then be able to remove it.
Diskutil –list will show "Recovery HD" however.
GL.
Rhys.
Posted on 05-30-2012 07:11 AM
I know this post is old, but I figured it was worth putting the info here anyway. This was my quick and dirty script and only applies if the OS is loaded on the main disk. Use at your own risk.
#!/bin/sh
/usr/sbin/asr adjust -target /dev/disk0s3 -settype Apple_HFS
/usr/sbin/diskutil mergePartitions HFS+ 'Macintosh HD' disk0s2 disk0s3
Posted on 05-30-2012 07:18 AM
And as well I will link back to martin's other post as well, which is better than my script. Tidying things up here.