Created
March 27, 2022 08:13
-
-
Save rek/2ae40e5b5220eac52f4a290525ff89d9 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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