Skip to content

Instantly share code, notes, and snippets.

@rek
Created March 27, 2022 08:13
Show Gist options
  • Save rek/2ae40e5b5220eac52f4a290525ff89d9 to your computer and use it in GitHub Desktop.
Save rek/2ae40e5b5220eac52f4a290525ff89d9 to your computer and use it in GitHub Desktop.
# check the volumes
sudo pvs
# mount the right one
sudo mount /dev/mapper/mint--vg-root /mnt
sudo mount --bind /sys /mnt/sys/
sudo mount --bind /proc /mnt/proc/
sudo mount --bind /dev /mnt/dev/
sudo mount /dev/sda2 /mnt/boot
# confim
ls /mnt/boot/
# change into the volume
sudo chroot /mnt
# fix some things
...
# rebuild grub
sudo update-grub
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment