I installed Fedora 28. But I resized the partition that contained Fedora (/dev/sda7) wrongly using GParted and now I can't boot my system. (Note the partition format is ext4)

  • 2
    Boot a live cd and see if you can repair the partition with fsck – Panther Oct 29 '18 at 17:13
  • No it's not working – erfanr Oct 29 '18 at 18:41
  • 1
    Did you get an error message? – Panther Oct 29 '18 at 18:49

Resizing a partition does not implicitly resize any filesystem it might contain. You should have shrunk the filesystem and then shrunk the partition. (I'm surprised gparted didn't warn you.)

However, to try and fix the damage, resize the partition back to whatever it was before. If you're not sure of the value then make sure it's at least the size it was before.

If you have already used the space then all bets are off, unfortunately. You might get some of your files back with a filesystem rescue tool. Or you might not.

  • Yeah, it worked. Now I can use my OS. Thank you very much. :) – erfanr Oct 29 '18 at 23:00

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.