I have a computer that runs both Linux and Windows operating systems, but I only gave Windows 120 GB of the 2 TB storage space. Now, I want to increase the size of the Windows partition.

I’m using a “Live USB” to boot my computer and was successful in reducing the size of the Linux partition. However, I encountered an error from e2fsck while trying to move the first of two Windows partitions.

Below is a representation of my current hard drive partition setup, which displays the shrunken Linux partition on /dev/sda3 in dark blue, with unoccupied space to the right:

My next step was to relocate the minor Windows partition (/dev/sda4), which is shown in dark blue and located right next to the available unoccupied space, to the left. Once that was done, I could expand the primary Windows partition (/dev/sda5), which is represented by the green color, and utilize the remaining free space.

However, the initial relocation process failed, and e2fsck displayed an error message after warning me to create a backup as this could affect the boot system.

In case that image is too hard to read, here’s the text:

Move /dev/sda4 to the left  00:00:00    ( ERROR )

calibrate /dev/sda4  00:00:00    ( SUCCESS )

path: /dev/sda4 (partition)
start: 3646980096
end: 3647012863
size: 32768 (16.00 MiB)
check file system on /dev/sda4 for errors and (if possible) fix them  00:00:00    ( ERROR )

e2fsck -f -y -v -C 0 '/dev/sda4'  00:00:00    ( ERROR )

ext2fs_check_desc: Corrupt group descriptor: bad block for block bitmap
e2fsck: Group descriptors look bad... trying backup blocks...
e2fsck: Invalid argument while using the backup blockse2fsck: going back to original superblock
Error reading block 15761408 (Invalid argument). Ignore error? yes

Force rewrite? yes

Superblock has an invalid journal (inode 8).
Clear? yes

*** journal has been deleted ***

Superblock has_journal flag is clear, but a journal is present.
Clear? yes

The filesystem size (according to the superblock) is 31457280 blocks
The physical size of the device is 4096 blocks
Either the superblock or the partition table is likely to be corrupt!
Abort? yes

Error writing block 15761408 (Invalid argument). Ignore error? yes

windows: ***** FILE SYSTEM WAS MODIFIED *****
e2fsck 1.45.3 (14-Jul-2019)

As a result of the failed attempt to move the partition, no changes were made despite e2fsck indicating that the file system had been modified. The original partition configuration shown in the first image is still in place.

At this point, the error message is not clear to me, and I am uncertain about what to do next. It’s worth noting that both the Linux and Windows systems still boot, and there are no apparent issues.

I am considering a couple of options. The first is to wipe the Windows partition entirely since it is only used for gaming, and all game files can be recovered from Steam. However, I am concerned that this may harm the boot record. Another idea is to adjust the Windows partitions using a tool that runs on Windows instead of GParted.

Askify Moderator Edited question April 23, 2023