I was trying to install antergos on lvm I setup with it’s own root provisioned. I had my lvm setup with a 256MiB /boot at lvboot, Arch installed to a 20GiB lvarchroot, Empty 20GiB named lvantroot, 2GiB swap lv, and the rest for /home at lvhome. When I got to installing antergos, everything looked fine. The installer saw my lvm setup, I selected the mount points, told it to format lvboot and lvantroot and mount /home to lvhome and use lvswap. Everything looked like it installed fine. Then the installer hit 100% and I got an error that looked similar to:
Installer failed at: mount [[/dev/mapper/vgfirstdisk-lvantroot]]; None
I could have that a little incorrect, but that’s the gist. I checked and nothing was there. I checked to see if I could see anything in /dev/mapper, but it only has this:
[[email protected] antergos]# ls -alh /dev/mapper total 0 drwxr-xr-x 2 root root 80 Sep 17 07:23 . drwxr-xr-x 18 root root 3.2K Sep 17 07:26 .. lrwxrwxrwx 1 root root 7 Sep 17 07:23 arch_root-image -> ../dm-0 crw------- 1 root root 10, 236 Sep 17 07:23 control
lvdisplay, pvdisplay, and vgdisplay all return nothing, no output. I did find files that ended in .vg and when I looked at them they had a perfect breakdown of the lvm with ids and mount points and everything, then I bumped the flash drive and it disconnected so I had to reboot and those files are lost.
fdisk -l output:
[[email protected] antergos]# fdisk -l /dev/sda Disk /dev/sda: 149.1 GiB, 160041885696 bytes, 312581808 sectors Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disklabel type: dos Disk identifier: 0x0002291d Device Boot Start End Sectors Size Id Type /dev/sda1 * 2048 312580095 312578048 149.1G 8e Linux LVM
The antergos installer shows disk as /dev/sda1, type as ? mount point and label and format are all blank, size is 160G, used is 0b.
I didn’t think to backup before trying to install antergos as arch installed flawlessly a few weeks ago. I can’t just scrap this and call it a loss because I need to get these files back. What can I do to fix this and recover the files that were/are there?
After googling a bit too I found the command vgscan --mknodes which found nothing.
#vgscan --mknodes -v Wiping cache of LVM-capable devices Wiping internal VG cache Reading all physical volumes. This may take a while... Using volume group(s) on command line. No volume groups found. Using logical volume(s) on command line. No volume groups found.
Please can anyone help me here?! I’m really hoping this can be fixed. Please and thank you!