How can I merge the partitions on my Mac?

Episode 1177 (33:35)

Valentine from Bulgaria
Disk Utility

Valentine has a partitioned hard drive and he wants to merge the two together. Leo says that there are two ways to do this. He could do it destructively through the disk utility, or he could do it in a non-destructive way, which is tricky. Disk utility can also do that, but he can also use the DiskUtil command line tool. You need OS X.5 or later. Here's how -