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 @dgriffith@aussie.zone. 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 @dgriffith@aussie.zone comment

  • zurohki@aussie.zone
    link
    fedilink
    English
    arrow-up
    35
    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@sh.itjust.works
      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

    • survivalmachine@beehaw.org
      link
      fedilink
      arrow-up
      6
      ·
      7 months ago

      Where is data recovery $100? In my country, data recovery is like $1000 USD to look at your drive, and then they tell you how much they can recover and a full quote.

      • zurohki@aussie.zone
        link
        fedilink
        English
        arrow-up
        1
        arrow-down
        1
        ·
        7 months ago

        Depends on what they actually need to do. When it’s a drive that’s working and they just have to image it and run some recovery software it should be pretty cheap.

        Clean room repair of dead hard disks is a different story.