Skip to content

Instantly share code, notes, and snippets.

@fishd72
Created September 30, 2025 13:56
Show Gist options
  • Save fishd72/23c1b5a02d6cb74c8d5778ba5cd3da0b to your computer and use it in GitHub Desktop.
Save fishd72/23c1b5a02d6cb74c8d5778ba5cd3da0b to your computer and use it in GitHub Desktop.
#!/bin/bash
mkdir /rescue
mount /dev/mapper/debian--vg-root /rescue
mount /dev/nvme0n1p1 /rescue/boot
mount -t proc proc /rescue/proc
mount -t sysfs sys /rescue/sys
mount -o bind /dev /rescue/dev
mount -t devpts pts /rescue/dev/pts
chroot /rescue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment