How do I remove an older 32 bit version of ubuntu

Asked by Peter Jordan

I have ubuntu16,04 32 bit installed alongside ubuntu 18.04 64bit on my wifes computer. I now need the disk space so want to completely remove the unused 16.04 32 bit version. Is there a simple command line way I can do this?.
I could manually remove all the program apps but this would not remove the old kernals and OS files.
There must be a simple way to do this but cannot think how. Any help would be appreciated.

Question information

English Edit question
Ubuntu libnss-unknown Edit question
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Manfred Hampl (m-hampl) said :

I see several possibilities to do this, but each of then has a certain risk - if you select the wrong partition, then you will delete the 18.04 installation instead of the 16.04 installation.

Preliminary steps:
1. You have to make sure that grub points to the 18.04 installation.
How does the grub menu look like?
2. How is your disk partitioned?
What is the output of the command
sudo fdisk -l

Possibilities for the real execution:
- You can delete the complete partition with fdisk or gparted or similar disk utilities, and then create a new partition in the same space, or maybe even extend the 18.04 partition to use the free space
- You can "empty" the partition by re-creating the file system with a command like "mkfs.ext3 /dev/partition-idetifier"
- You can leave the file system in place and delete all files with a command like "sudo rm -rf /mount/partition-identifier"

Whatever you do, take caution not to delete the wrong partition.

Can you help with this problem?

Provide an answer of your own, or ask Peter Jordan for more information if necessary.

To post a message you must log in.