Skip to content

Instantly share code, notes, and snippets.

@uglide
Last active August 1, 2023 19:50
  • Star 29 You must be signed in to star a gist
  • Fork 15 You must be signed in to fork a gist
Star You must be signed in to star a gist
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
@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