I would like to extend SDA2 to fill the remaining space. The beginning of SDA2 should remain in the same place.
Can I simply follow the steps you described but, instead of changing the start of the partition, just change the end?
Not exactly, I understood sda2 were at the end of disk, and you wanted to expand to the space before it, but your actual situation is the opposite.
You will have to compute the partition size (partsize) from the end of disk and the beginning of sda2, and the new file system size (fssize), which must be a multiple of the cluster size and at most one sector less than the partition size.
You will have to use ntfsresize with option '-s fssize' instead of '-x'.
Do the following (in that order) :
- backup your important files
- compute the new partition size and the new file system size
- build the target partition : relocate the end of the partition, and make sure the beginning of the partition is unchanged. Make sure the new partition layout is acknowledged by the OS, you may have to reboot.
- check whether the computed fssize is acceptable by 'ntfsresize -n -s fssize /dev/sda2'
- adjust the file system to the fssize by 'ntfsresize -s fssize /dev/sda2'
- recreate the backup boot sector by starting chkdsk (on Windows) or ntfsfix (recent version only).
This situation is managed by gparted, which will take care of all the constraints.