Home  >  Q&A  >  body text

linux - 用fdisk误删除了当前系统的根目录那个分区,怎么恢复?

写分区表的时候提示重启才能生效,才发现不太对劲…
由于系统正在这个分区上运行,Linux内核尚且认为这个分区存在,但硬盘的分区表中已经不存在这个分区了。
现在还没重启系统,怎么恢复?

伊谢尔伦伊谢尔伦2764 days ago400

reply all(2)I'll reply

  • ringa_lee

    ringa_lee2017-04-17 13:43:19

    Done.
    First try to find the offset of this partition;
    Then create a partition of the same type as the original but slightly larger in size;
    Finally e2fsck -f + resize2fs.

    reply
    0
  • 天蓬老师

    天蓬老师2017-04-17 13:43:19

    Cannot be restored. Remember that once deleted on Linux, it is an irreversible operation!

    reply
    0
  • Cancelreply