by Rich Simms on Thu Sep 18, 2008 1:21 pm
Hi Wil,
You can test it by running your copy of bash and seeing if all the libraries it needs were copied over correctly. You don't want your copy of bash to use the original libraries in /lib. Instead you want it to use the libraries you copied over your lib directory.
To do this you need to change the top of the file tree to be your /mnt directory (when mounted to your pen drive). Use the chroot command for this and it will look like:
[code][root@duke ~]# ls /mnt/bin
bash sh
[root@duke ~]# ls -l /mnt/bin
total 732
-rwxr-xr-x 1 root root 735144 2008-09-18 00:09 bash
lrwxrwxrwx 1 root root 4 2008-09-18 00:10 sh -> bash
[root@duke ~]# chroot /mnt /bin/bash
bash-3.2# echo /bin/*
/bin/bash /bin/sh
bash-3.2# exit
exit
[root@duke ~]#
[/code]
- Rich