Rebooted my server and got this

I’ve rebooted my server and got this - can’t mount root. How can I fix it?


Any ideas?

Ubuntu server 22.04

I believe this is a Urback issue. I can see my filesystem from Grub shell, is there some way to stop Urback from running on boot, so the root is booted directly?

Yes, something is trying to mount a urbackup made snapshot.
Urbackup is not an os, it does not handle mounts at boot.

If it is an image you restored and rebooted, then that is a different story.
If so, please provide more info or it is impossible to find reason.

Edit
Kinda says what you have to do, something has changed the boot parameters.
Please edit root= boot parameter to be the root device....
Looks like you are trying to load a snapshot from grub and not the root… ^^
Anyway, def not a urbackup thing.

3 Likes

Fixed it, I’m sorry, my brain is now working today

Can you tell us what you did to fix it ?

Sure!
I’ve used live Ubuntu usb.

In the terminal:

sudo -i

fdisk -l (find your boot partition, mine showed up as /dev/sda5)

mount /dev/sda5 /mnt

mount --bind /dev /mnt/dev

mount --bind /sys /mnt/sys

mount --bind /proc /mnt/proc

chroot /mnt

exit

update-grub

reboot

2 Likes

Thanks, always nice to know how problems were resolved.

Pretty sure you did that in the other order, or you would exit your chroot before you ran update-grub.

Also, you are looking for your root partition with fdisk to chroot into, not your boot. And then mount the boot partition inside your root (wherever that is, that depends on your system)
So your setup (ubuntu) does not have a separate boot I assume (have actually never ran it), because you do not mount it before you chroot in your sollution, maybe that is why you call it “boot”…

Just wanted to make sure the info is correct since a solution was requested.

Hi,
thanks, Your solution helped me solve my problem.
After installation of UrBackup agent for Linux Ubuntu I got the same error when booting into Linux Ubuntu pc.
Linux Ubuntu pc couldn’t boot properly and was stuck in initramfs ash shell every time.
some kind of new boot partition was created which overrode all menuentries inside /boot/grub/grub.cfg, all /dev/sda3 entries were replaced by
/dev/mapper/root-96d1f8c1f425

These steps fixed my problem:
ran Linux Ubuntu from live USB/DVD

lsblk # my main partition with boot folder was sda3
sudo mount /dev/sda3 /mnt
sudo mount --bind /dev /mnt/dev
sudo mount --bind /sys /mnt/sys
sudo mount --bind /proc /mnt/proc
sudo chroot /mnt
sudo update-grub
exit
sudo reboot