1

I switched from Windows to Linux (Ubuntu) a few months ago and decided that it'd be a good idea to delete my Windows partition, which I did using the Disks application on Ubuntu.

However during the transition I made the Linux partition only 80 GB big and now I am stuck with 399 GBs of space just laying around.

I don't have a USB or a CD/DVD and I was wondering if I can install Linux from Linux or if there is a way to make use of the free space and save my files there.

I noticed that there is a related post here but as far as I understand this is a Windows only tutorial.

Here is what my Disks application looks like and I have a UEFI system.

Thanks in advance.

2 Answers2

2

Booting ISO from GRUB Menu

The method on this page should work for booting an Ubuntu ISO from the GRUB bootloader 20.04 booting .iso from GRUB menu No need for a USB here.

To reiterate:

  • Add the following menuentry to /etc/grub.d/40_custom:

    menuentry "isoname ISO" {
      set root=(hdX,Y)
      set isofile="/[path]/[isoname].iso"
          loopback loop $isofile
          linux (loop)/casper/vmlinuz boot=casper iso-scan/filename=$isofile toram --
          initrd (loop)/casper/initrd
    }
    

Where (hdX,Y) is the disk and partition the ISO is on, [path] is the path to the folder the ISO file is in, and [isoname] is the name of the ISO

  • In Terminal run:

    sudo update-grub
    
  • Reboot and select Ubuntu from the grub menu. Install as usual.

  • Please let us know how this works for you.

C.S.Cameron
  • 20,530
  • 12
  • 78
  • 125
0

I asked and answered my own question like this here. How to modify partitions without a live USB/CD

That Q/A is focussed on using GParted to resize a root partition, something you cannot do when the partition is mounted and the system on it is running. If you follow this you can resize your existing installation to use the whole disk.

The same principles apply if you want to boot a live iso that would allow the installation of some other distro.

The simplest way to make use of your unallocated space though is to use GParted in your existing installation and create a new partition and mount that somewhere convenient like /home/youruser/files. Then you can use it for file storage. Alternatively you could move your entire home directory there. There are plenty of guides on here about how to do that.

PonJar
  • 1,973