6

150.00 GiB of unallocated space within the partition. To grow the file system to fill the partition, select the partition and choose the menu item: Partition --> Check.

(I can't click on the check option)

I got this warning after my pc accidentally shut down whilst shifting the partition form right to left side of unallocated space and then extending the partition. Fortunately no data was lost, but now this error message is showing. please help

enter image description here

Grammargeek
  • 2,792

5 Answers5

2

I came across similar problem with ext4 filesystem after a normal Ubuntu installation. I found the answer in this link - How to grow filesystem to use unallocated space in partition

As per recommendation in the above link, "See the man page for resize2fs (which is the command-line tool gparted will use to grow an ext2, ext3, and ext4 filesystem) for more details about resizing those filesystems."

As also stated in one of the posts, "Simply use sudo resize2fs /dev/sda1 etc.,even while the filesystem is mounted, to grow it to the partition size."

Gaurang
  • 21
1

At first, you need to unmount the partition. (It is shown mounted in the screenshot above). In the Gparted window, Right Click on the selected partition /dev/sdb1 and click "Unmount".

Here, you can do two things:

  1. Shrink Partition: To do this, Right click on selected partition and click resize, then drag the partition marker to the left. you will be left with unallocated space in the right, which you can use to make another partition on the device.

NOTE: as you said that you met a system shutdown during partition resize and this one happened. There is a possibility that you have already lost one partition. Usually, /dev/sdb1 should appear before /dev/sdb2 in the partition list.

  1. Grow Partition: To do this, Right click on selected partition and click "Check". It will merge the unallocated space to the same partition i.e. /dev/sdb2.

In general, Grow is considered safe than Shrink.

ESSPEE
  • 11
1

You're extremely lucky not to have lost any data... If I were you, I would:

Take a file back-up of all my files, delete the partition and then re-create the partition and restore the files.

For more info read here for user type 4.

Fabby
  • 35,017
0

Here's what've helped me in the similar situation: I had "lost" half my space due to unallocated warning

  1. Boot Ubuntu from USB stick with an ISO file.
  2. Open terminal.
  3. Run sudo e2ffsck -f /dev/sda1
  4. Accept Inode xyz extent tree (at level x) could be narrower. Optimize? yes with y. I had to do this one twice (for level 1 and 2).
  5. Run sudo resize2fs /dev/sda1

All space was reallocated successfully.

wscourge
  • 113
0

The option is deactivated, because the LVM partition is active. You need to first do Partition > Deactivate. The Check option will then become available.

masiton
  • 119