LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-02-2019, 08:07 PM   #1
DorKen
LQ Newbie
 
Registered: Oct 2019
Posts: 14

Rep: Reputation: Disabled
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.
 
Old 12-02-2019, 08:28 PM   #2
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,324
Blog Entries: 28

Rep: Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142
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."
 
1 members found this post helpful.
Old 12-02-2019, 08:33 PM   #3
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,128

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
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 ?.
 
1 members found this post helpful.
Old 12-02-2019, 08:36 PM   #4
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,346

Rep: Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589
from linux mint post the output of
Code:
lsblk -f
and which is the first grub menu entry mint or ubuntu?
 
1 members found this post helpful.
Old 12-02-2019, 09:01 PM   #5
DorKen
LQ Newbie
 
Registered: Oct 2019
Posts: 14

Original Poster
Rep: Reputation: Disabled
Ubuntu boots first as i installed it after Mint
 
1 members found this post helpful.
Old 12-02-2019, 09:22 PM   #6
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,346

Rep: Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589
still need the output of the lsblk -f from a terminal
 
1 members found this post helpful.
Old 12-02-2019, 09:26 PM   #7
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,128

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
And this - install efibootmgr in need.
Code:
sudo efibootmgr -v
 
Old 12-03-2019, 05:52 AM   #8
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,504

Rep: Reputation: 2490Reputation: 2490Reputation: 2490Reputation: 2490Reputation: 2490Reputation: 2490Reputation: 2490Reputation: 2490Reputation: 2490Reputation: 2490Reputation: 2490
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.
 
Old 12-06-2019, 04:50 PM   #9
DorKen
LQ Newbie
 
Registered: Oct 2019
Posts: 14

Original Poster
Rep: Reputation: Disabled
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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
On uninstall, does it make more sense to remove or remove completely? annadane Debian 6 01-30-2017 02:47 PM
apt-get remove kolf-kde4 will remove kde4? michielv Linux - Software 1 02-10-2009 06:02 AM
Remove Evolution - remove everything?! samjh Debian 4 01-13-2009 06:26 AM
# yum remove dbus - trying to remove the whole system... atnonis Fedora 4 11-23-2007 06:31 AM
apt-get remove chrony doesn't remove all? asgerhallas Debian 3 06-05-2007 05:37 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:00 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration