PROJET AUTOBLOG


Le Kernel Panique (Kpanic)

Archivé

source: Le Kernel Panique (Kpanic)

⇐ retour index

Chroot

mardi 7 mai 2013 à 13:57

I always forgot how to mount special kernel FS when I need to chroot. So this is a memo :)

mount /dev/sdXX /mnt/
mount -t proc none /mnt/proc
mount -o bind /dev /mnt/dev
mount -o bind /dev/pts /mnt/dev/pts
mount -t sysfs sys /mnt/sys
chroot /mnt/ /bin/bash
hack hack ...