Ubuntu – How to remove other linux os and stay with ubuntu only


I have latest ubuntu 15.4. I wanted to try fedora so I installed it afterwards and got dual boot. Now I want to remove fedora and stay with only ubuntu.

  1. How do I completely remove fedora and retrieve the space I gave it ?

  2. How do I remove grub ?

please write in details.
I saw How do I delete Fedora 15 from Ubuntu 12? Fedora was installed first but it has little details and I counldn't manage to do that.

I tryed what kyodake suggested and still don't understand how to merge the 2 partitions. Bellow is the current status in my gparted: (I want to merge sda4 (deleted fedora) to sda1 (my ubuntu)). How do I mount it exactly ?
enter image description here

Best Answer

  • Try this:

    In a Ubuntu session, open a terminal,

    Press Ctrl+Alt+T

    Run it:

    sudo -i
    apt-get update
    apt-get install --reinstall grub-pc grub-pc-bin grub2-common grub-common
    grub-mkconfig -o /boot/grub/grub.cfg
    grub-install --root-directory=/mnt /dev/sda
    grub-install --recheck /dev/sda
    fdisk -l

    By fdisk identify the Fedora partitions, are suppose /dev/sda7 and /dev/sda8, continue running:

    umount /dev/sda7
    umount /dev/sda8

    In gparted, select the hard disk, delete Fedora partitions y and to create a new, file system ext4, You can mount wherever you want in /media, /mnt, /home/user/.

    Close gparted and run:

    sudo update-grub
  • Related Question