How to remove Linux from a Mac?

I don’t really see why would you do that, but here is a how to about removing Linux from a Mac.

Linux creates few partitions (usually / and swap, it’s also a common practice to have /home partition). Everything would be easy if only Mac OS’s built-in Disk Utility would support deleting Linux partitions. But sadly that’s not the case (even on Snow Leopard).

Here you have two options how to delete partition. [b]First[/b] option is to use [b]Windows Vista/7 Install DVD[/b].

1. Put DVD in Super Drive and boot from a DVD (hold alt key on bootup).

2. Select regional settings and fresh install.

3. At the partition editor select every Linux partition and delete it. Windows installation actually deletes partitions immediately as opposite to Linux’s practice where this is done on the end of the installation wizard.

4. Turn off Mac and remove DVD.

[b]Second[/b], more known approach is to use [b]GParted Live CD[/b] which can be downloaded at http://gparted.sourceforge.net/livecd.php. You can also \"burn\" it on USB key.

Resize the partition by dragging its left corner to the end of volume. Click Apply.[/center]
In the pop-up click Partition to complete the task (I’m not responsible for any problems that may occur during this step).
[center][url=/media/techsiteblog/uploads/2.png][img]/media/techsiteblog/uploads/2-300×143.png[/img][/url]

And after successful partitioning you will end up with only one OS X’s partition (actually there is another one, but it’s hidden from Disk Utility).[/center]
[center][url=/media/techsiteblog/uploads/3.png][img]/media/techsiteblog/uploads/3-300×263.png[/img][/url][/center]