LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Remove Ubuntu (https://www.linuxquestions.org/questions/linux-newbie-8/remove-ubuntu-4175665314/)

DorKen 12-02-2019 08:07 PM

Remove Ubuntu
 
Hello, I have been dual booting with LinuxMint & Ubuntu to try both os I would like to remove Ubuntu,can i do it without reinstalling Mint and wiping my hard drive clean. Is it possible to just delete the partition that Ubuntu is using,i do not understand the command sequence so that is out, thanks in advance for any suggestions. Ken.

frankbell 12-02-2019 08:28 PM

You don't even need to delete the Ubuntu partition. You can simply reformat it; then you can use it for data.

A web search for "reformat existing partition linux" will turn up a number of links. One of them should apply to your situation. If it were me, I'd use cfdisk, but that's because I've used it for years.

Just be careful that you reformat the correct partition(s) and don't accidentally blow away your Mint partitions. As the old carpenters' saying goes, "Measure twice, cut once."

syg00 12-02-2019 08:33 PM

You need to make sure Mint is the default boot before doing anything drastic. Which system boots by default if you don't select anything ?.

colorpurple21859 12-02-2019 08:36 PM

from linux mint post the output of
Code:

lsblk -f
and which is the first grub menu entry mint or ubuntu?

DorKen 12-02-2019 09:01 PM

Ubuntu boots first as i installed it after Mint

colorpurple21859 12-02-2019 09:22 PM

still need the output of the lsblk -f from a terminal

syg00 12-02-2019 09:26 PM

And this - install efibootmgr in need.
Code:

sudo efibootmgr -v

yancek 12-03-2019 05:52 AM

Do you know if you have UEFI installs or Legacy/CSM (or do you know what that means)? To determine if you have a Legacy or UEFI install, while booted either, copy and paste the command below into a terminal.

Quote:

[ -d /sys/firmware/efi ] && echo "EFI boot on HDD" || echo "Legacy boot on HDD"
If the output is: Legacy boot on HDD, boot into Mint and install Grub to the MBR: sudo grub-install /dev/sda

The above would be if both Mint/Ubuntu are on sda, if not change the drive name to the correct one. That will put Mint Grub boot files in the MBR and then you can safely copy any data from the Ubuntu partition and format it. If your output above is "EFI boot on HDD", post back as the process is different.

DorKen 12-06-2019 04:50 PM

Hi everyone, I wouldn`t know what i was doing with Terminal commands so i backed up my files and reinstalled Mint from a usb image,and got rid of Ubuntu that way, so everything is going along nicely with a clean install. thanks for all your suggestions.


All times are GMT -5. The time now is 03:51 AM.