I was editing my disk and when i wrote the changes and exited cfdisk, no cli command worked. Thats when i realized that im f-ed up.

This what happened: I have 3 partitions, 512M efi, a 100G root partition and some free (unallocated) space. I had 84G worth data in the root patition. I totally forgot that and shrinked the root partition to 32G to extend the free space. I was using cfdisk tool for this. I wrote the changes and rebooted my machine, by long pressing power button coz no cli commands worked after writing those chrnges, to see this.

So is it possible to recover my machine now?

:_ )

SOLUTION Thanks to @[email protected]. cfdisk just updates the partition table. So no worry about data damage . To fix this, live boot -> resize the partition back its original size -> fsck that partition. For more explanation, refer @[email protected] comment

  • zurohki@aussie.zone
    link
    fedilink
    English
    arrow-up
    34
    arrow-down
    3
    ·
    edit-2
    7 months ago

    If there’s something really important on that disk, don’t do ANYTHING, just unplug it and hand it over to a data recovery company.

    If there isn’t anything really important on there, go ahead and try and do it yourself.

    Paying $100 to a data recovery company can save you a ton of headaches if it has the only copy of your thesis on there and you mess it up trying to fix things yourself.

    • steersman2484
      link
      fedilink
      arrow-up
      18
      ·
      7 months ago

      If you create an image of the disk in the current state from a live boot or an other machine. You can try fixing it without having to risk making things worse