Skip to content

Instantly share code, notes, and snippets.

@uglide
Last active June 4, 2023 12:14
Embed
What would you like to do?
Chroot to Installed system on LVM
#!/bin/bash
fdisk -lu
pvscan
vgscan
vgchange -a y
lvscan
mount /dev/ubuntu-vg/root /mnt
mount --bind /dev /mnt/dev
mount --bind /proc /mnt/proc
mount --bind /sys /mnt/sys
mount /dev/sda2 /mnt/boot
mkdir /mnt/boot/efi || true
mount /dev/sda1 /mnt/boot/efi
chroot /mnt
@ceramicheights
Copy link

Thank you so much!! This is a lifesaver.

@cybernet
Copy link

cheers

@omkarbolake94
Copy link

omkarbolake94 commented Jun 4, 2023

Hi
I have separate boot disk. How to resolve that

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment