How do I remove Ubuntu from Mac

Linux Uninstall Ubuntu - that's how it works

display

If only Ubuntu is running on a computer, the deinstallation is done very quickly. It takes a little more effort on a dual-boot computer with Windows and Ubuntu, since the GRUB boot manager has to be removed. We'll show you both ways here step by step.

Uninstall only Ubuntu

The simplest case: you only have one operating system installed and want to reset the computer for a sale. It gets a little easier if you want to use the computer with a different operating system. Then you can do without "deinstallation" and simply install the new system. This is also a viable option when it comes to sales. But back to deleting, which you do in two steps: Remove partitions, securely erase data.

To the Partition start the computer with the Live Linux Parted Magic from a USB data carrier. Here we show you in detail how you work with Parted Magic. After the start Clear With the partition manager GParted, namesake for Parted Magic, easy all partitions on the Ubuntu disk, then create create a new, single partition and format it. Basically that's enough, but it doesn't hurt to write the whole new partition full once, so that no one can restore old files.

There are a number of options for overwriting, but one is nice and simple and always available, namely that Clone / copy tool dd. First of all, you need that Name of the former Ubuntu hard drive, as a rule this should be "sda" if there is only one hard drive. If not, you can find it in GParted. Then open one terminal and enter the following command:

dd if = / dev / random of = / dev / sda

The virtual "device" called "random" is used here as an input file (if for input file) and simply supplies endless random data. The data carrier "sda" serves as the output file (of for output file). So dd simply writes random data to the hard driveuntil it is full. And so you can sell the computer or hard drive without risking old data being recovered.

Uninstall dual boot Ubuntu

With a Windows-Linux dual-boot system, the procedure is slightly different: Here, too, you have to use the Delete partitions, can, however, do this easily under Windows. You can save yourself overwriting, after all, the computer stays with you. For that you still have to Boot manager removed which always asks you when the computer starts up whether Windows or Ubuntu should start.

First, open the Disk management above "Control Panel / Administration / Computer Management / Disk Management". Here you will find a neat list of all your hard disks and their partitions. Ubuntu will have created two partitions by default: a large one for the system itself and a small one as temporary storage (swap), which is probably two to four gigabytes in size. You can use Ubuntu - Recognize partitions by the fact that Windows does not list any names or file systems. Simply right-click to delete both. You can then use the context menu to access the new, empty area convert to a new partition. Or better: If Ubuntu was installed on the same hard drive as Windows, you can also use the Extend the Windows partition by the space that has become free. This works via the context menu of the Windows partition and the menu item "Extend". By the way: Windows likes to talk about volumes, but means the same here.

Of course, you can also optionally use the Overwrite newly gained space with random data - better safe than sorry. In Windows this is easy with the free Eraser program. If you have extended the Windows partition: In the Workplace one Right click on the Windows drive and select from the context menu "Eraser / Erase unused spaceWith the option Eraser overwrites the entire free space of the partition with a mess of characters and then of course deletes it. Existing files are of course not deleted!

Remove boot manager

The easiest way to remove the boot manager is probably the EasyBCD program. When downloading, you will be redirected to the manufacturer's website. At the very bottom is one for personal, non-commercial use free version in the "Non-commercial free" box. On the "register"-Button you still have to enter a name and an e-mail address, further information is not required. Fortunately, no activation link or similar is sent to the e-mail address, EasyBCD runs immediately after the download.

During the installation you will need a couple of Warning messages and confirm the license. Before you start, I would like to point out again: data loss is unlikely, but it is always possible with such actions. So secure your most important data. In an emergency, it doesn't hurt to have a live Linux on hand so that you can start the computer. In addition, you can also boot Windows via the boot manager on the Live CD if necessary!

So open up EasyBCD and switch to the tab "BCD installation". Under "MBR configuration options"Now select Ihr windows system - As a rule, "Vista (or higher)" should be the right choice, also for Windows 7, 8 and 10. You only have to switch here if you are actually still using Windows XP.

The "Write MBR"-Button then triggers the actual action: MBR stands for Master Boot Record, to put it simply, the beginning of a partitioned data medium that also contains boot managers such as GRUB or Windows' own BOOTMGR. EasyBCD rewrites this area, sets it quasi back. And with that GRUB has already disappeared. In Windows itself you will find the tool "Bcdedit.exe" for the command line, information is available via the command "bcdedit.exe /?" The name of both programs comes from the file , which contains the boot information, the "BCD", which stands for Boot Data Configuration.