Results 1 to 2 of 2

Thread: Deleted partition table by mistake

  1. #1
    Join Date
    Dec 2014
    Beans
    4

    Deleted partition table by mistake

    Hi,

    I erased by mistake my partition table (and, I suppose, only the table) and, when rebooting, (no surprise) the system did not boot at all (directly to the BIOS, saying no system found).

    I tried many techniques, including running Gparted Live OS, TestDisk, and Boot-Repair-Disk, but none succeeded.

    Here are some logs from boot-repair (made sequentially after each try):

    http://paste.ubuntu.com/p/dGY3Y9x82F/

    http://paste.ubuntu.com/p/Nx5w9T8VSg/

    http://paste.ubuntu.com/p/rZ48rH43tS/

    In my last attempt, TestDisk manage to detect some thing, but most of the disk (in GParted) still appeared to be "unused space", i.e., absent from any partition.

    When I rebooted, I was asked "Please unlock disk nvmeOn1p3_crypt", but inputting my usual password never succeeds.

    I use Linux Mint XFCE (I forgot which version, perhaps 19) and I have encrypted partitions. That is, whenever I used to boot normally before the problem comes, I first had to enter a first password to unlock something, and then only my user password to open my session in Linux Mint.

    Any idea what I can do?

  2. #2
    Join Date
    Jun 2009
    Location
    SW Forida
    Beans
    Hidden!
    Distro
    Kubuntu

    Re: Deleted partition table by mistake

    I do not really know LVM - logical volumes which you have if you do a full drive encrypted install.

    But this is typical of the partitions with LVM. All the volumes are inside the third partition, only the ESP - efi system partition and /boot partition are not in LVM partition.
    But your third partition is way too small, it should be all of the rest of the drive.

    Code:
     Device           Start     End Sectors  Size Type
    /dev/nvme0n1p1    2048 1050623 1048576  512M EFI System
    /dev/nvme0n1p2 1050624 2050047  999424  488M Linux filesystem
    /dev/nvme0n1p3 2050048 2054143    4096    2M Linux filesystem
    Not sure if expanding p3 to rest of drive will let you then run repairs on your LVM volumes or not.

    If using Boot-Repair, be sure to both mount your LVM and decrypt it before running any Boot-Repair fixes.

    Info on LVM:
    LVM Advantages/Disadvantages Post #9
    http://ubuntuforums.org/showthread.p...45#post9917145
    https://wiki.ubuntu.com/Lvm
    https://wiki.archlinux.org/index.php/LVM
    https://www.howtoforge.com/linux_lvm


    Mount LVM - duckhook
    https://ubuntuforums.org/showthread....2#post13733372
    https://unix.stackexchange.com/quest.../339621#339621
    For mounting encrypted see first few lines:
    https://askubuntu.com/questions/2622...copy-of-ubuntu
    Recover files on encrypted drive
    https://ubuntuforums.org/showthread.php?t=2382995 &
    https://askubuntu.com/questions/6359...m-command-line

    UEFI boot install & repair info - Regularly Updated :
    https://ubuntuforums.org/showthread.php?t=2147295
    Please use Thread Tools above first post to change to [Solved] when/if answered completely.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •