Skip to content

Instantly share code, notes, and snippets.

@uglide
uglide / chroot.sh
Last active October 28, 2024 11:26
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