I have Arch Linux installed on my computer along with Windows 10. When I installed the Linux, I only gave 35GB of space for the filesystem and now that I don't use Windows anymore, I wanted to resize the partition. I booted to the Arch live usb stick and deleted the linux partition. There were free space only before the Linux file system partition. I.e. my partition table looked something like this
Free space 1000000 1500000
/dev/sda6 1500000 2000000 Linux filesystem
/dev/sda7 2000000 2000400 Boot sector
No i made new Linux filesystem partition on the sector 1000000-2000000, but I don't know, how to shift the filesystem back, so that Grub will find the entry point for the operating system...
Is it possible to do this or should I just re-install Arch?
I tried following this tutorial http://positon.org/resize-an-ext3-ext4-partition but resize2fs gave me only "Bad magic number in super-block while trying to open /dev/sda6"