Skip to content

Instantly share code, notes, and snippets.

@cruisemaniac
Created September 14, 2023 10:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cruisemaniac/422df692e464614b011889fe604bc3f8 to your computer and use it in GitHub Desktop.
Save cruisemaniac/422df692e464614b011889fe604bc3f8 to your computer and use it in GitHub Desktop.
Mounting Disk on Live USB
sudo -s
lsblk -paf
mount /dev/sda2 /mnt
mount /dev/sda1 /mnt/boot/efi
cd /mnt
mount --bind /dev /mnt/dev
mount --bind /dev/pts /mnt/dev/pts
mount --bind /proc /mnt/proc
mount --bind /sys /mnt/sys
chroot /mnt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment