Skip to content

Instantly share code, notes, and snippets.

@uglide
uglide / chroot.sh
Last active November 18, 2024 19:44
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