Skip to content

Instantly share code, notes, and snippets.

@topokel
Created September 12, 2013 09:40
Show Gist options
  • Select an option

  • Save topokel/6535074 to your computer and use it in GitHub Desktop.

Select an option

Save topokel/6535074 to your computer and use it in GitHub Desktop.
chroot into my crunchbang from live usb
sudo su
mount /dev/sda2 /mnt
mount /dev/sdb5 /mnt/usr
mount /dev/sdb6 /mnt/var
mount /dev/sdb7 /mnt/tmp
mount /dev/sdb8 /mnt/home
mount --bind /dev /mnt/dev
mount --bind /dev/pts /mnt/dev/pts
mount --bind /proc /mnt/proc
mount --bind /sys /mnt/sys
mount --bind /usr /mnt/usr
mount --bind /var /mnt/var
mount --bind /tmp /mnt/tmp
mount --bind /home /mnt/home
cp /etc/resolv.conf /mnt/etc/
chroot /mnt /bin/bash
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment