czwartek, 9 września 2010

Chroot

Chroot is great and powerfull. Comes very usefull when you want to repair a Linux install straight form Live-cd. Just follow the steps:

mount -t proc none /media/DISK/proc
mount -o bind /dev /media/DISK/dev
cp -L /etc/resolv.conf /media/DISK/etc/resolv.conf

Of course change the DISK with a propper drive name.
The last command is

cp /etc/resolv.conf /media/DISK/etc/
chroot /media/DISK/ /bin/bash

Enjoy :-)

Brak komentarzy:

Prześlij komentarz