In lot of my previous posts, I have mentioned using “chroot” to do different things. However, while you are in chroot, depending upon your actions, you might get see some error messages which are usually non-fatal and will let you do whatever you are trying to do (in general). Although in general it is a good idea to fix them for the sake of completeness.
Following are some of the error messages that you might see while in chroot:
Searching for GRUB installation directory ... found: /boot/grub
User postinst hook script [update-grub] exited with value 1
dpkg: error processing linux-image-2.6.30-8-bpo50-test (--install):
subprocess post-installation script returned error exit status 1
Errors were encountered while processing:
Unpacking bzip2 (from .../bzip2_1.0.5-6_i386.deb) ...
Processing triggers for man-db ...
Can not write log, openpty() failed (/dev/pts not mounted?)
Setting up binutils (2.20.1-15) ...
Setting up bzip2 (1.0.5-6) ...
Setting up linux-source-2.6.34 (2.6.34-1~experimental.2) ...
The way to get rid of these messages is by giving the following commands once you chroot into a system partition. For example, let’s say you want to chroot into a Linux partition on /dev/hda5. So you would do something like:
debian:~# mount /dev/hda5 /mnt
debian:~# chroot /mnt
After that give the following two additional commands (not from the chrooted partition but on the system from which you are chrooting) :
debian:~# mount -o bind /dev /mnt/dev
debian:~# mount -t proc none /mnt/proc