Score:0

alert /dev/mapper/ubuntu--vg-root does not exist after using fdisk to add a new partition

in flag

I wanted to add windows as a dual boot option to my existing linux system. Since all the tutorials mentioned having a dedicated partition for the installation, I used fdisk to create a new primary partition. However it did throw an error (cannot recall frustratingly) that Google said would be solved by rebooting. I tried rebooting and bam, initramfs screen that told me "alert /dev/mapper/ubuntu--vg-root does not exist". Can anybody help me restore my system? I have a usb stick from which I can execute terminal commands by trying ubuntu. As per @PonJar 's comment, adding lsblk output.

lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
loop0 7:0 0 1.8G 1 loop /rofs
loop1 7:1 0 86.9M 1 loop /snap/core/4917
loop2 7:2 0 34.7M 1 loop /snap/gtk-common-themes/319
loop3 7:3 0 140.9M 1 loop /snap/gnome-3-26-1604/70
loop4 7:4 0 2.3M 1 loop /snap/gnome-calculator/180
loop5 7:5 0 13M 1 loop /snap/gnome-characters/103
loop6 7:6 0 14.5M 1 loop /snap/gnome-logs/37
loop7 7:7 0 3.7M 1 loop /snap/gnome-system-monitor/51
sda 8:0 0 931.5G 0 disk
├─sda1 8:1 0 512M 0 part
├─sda2 8:2 0 732M 0 part
└─sda3 8:3 0 930.3G 0 part
sdb 8:16 1 14.5G 0 disk
└─sdb1 8:17 1 14.5G 0 part /cdrom

My ubuntu installation was running in legacy first mode. Please also find below the error shown by GParted. GParted Snap GParted error desc

PonJar avatar
in flag
Add the output of lsblk to your question. Have you any backups? Was your Ubuntu installation running in UEFI or legacy mode?
Prnoob123 avatar
in flag
@PonJar Unfortunately I do not have a backup (but the contents were mostly random photos, so not a huge loss). I have edited the post to answer your questions and also attached GParted snapshot. Please let me know if you need anything else.
PonJar avatar
in flag
There is no evidence of an LVM remaining and unfortunately I have no knowledge of how to restore one that was once there. Others may be able to help with that but maybe not. You may have luck with the photorec app to recover photos and files from sda3. It looks like your old installation was running in UEFI mode. Legacy first will look for a legacy bootable device before looking for UEFI installations. I think this is to make it easier to boot usb devices on a UEFI system. If you reinstall it may be best to select UEFI only while installing and then revert to legacy first.
Prnoob123 avatar
in flag
Thanks for the info @PonJar really appreciate it
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.