How Do I Mount Unallocated Space in Linux?
Contents

How do I show unallocated space in Linux?

While also finding the unallocated space in a hard disk using command line # fdisk /dev/sda will display the total space and total cylinder value. Now check the last cylinder value and subtract it from the total cylinder value. Hence the final value * 1000 gives you the unallocated disk space.

How do I add unallocated space to an existing partition in Linux?

How do I add unallocated space to an existing partition in Linux?

  1. Use GParted to increase the size of your Linux partition (thereby consuming the unallocated space.
  2. Run the command resize2fs /dev/sda5 to increase the file system size of the resized partition to its possible maximum.
James H. Sterling

James H. Sterling

Environmental Science & Climate Journalist

James Sterling reports on renewable energy developments, climate policy, ecological conservation, and green tech innovations around the globe.

Share this article
Twitter Facebook Pinterest