PDA

View Full Version : Cant get chroot to have mounted proc



pythonholumm
04-02-2004, 08:47 AM
to get an internet conection i have to ctrl-D after i mount proc
when i ctrl-d my chroot is lost when i chroot it unmounts my internet conection(ping google.com gives me unknown host)

please help im getting vary frusterated. there has been nothing but trouble trying to remaster a knoppix. but im stubrn

sbkryan
04-02-2004, 09:15 AM
have you added your DNS to the to the /etc/resolv.conf

this will needed to be dun in the chroot enviroment

unno
04-22-2004, 08:20 PM
with your internet connection running before you chroot copy the file resolv.conf to your new system.
cp -f /etc/resolv.conf /mnt/hda*/source/KNOPPIX/etc/resolv.config
Like this your DNS Server in the new system is ok. Now chroot:
chroot /mnt/hda*/source/KNOPPIX
Then mount proc: mount -t proc /proc proc
ping google.com should work now. If not try ping 216.239.59.99 if this
works your DNS sever address is wrong.
unno

nvgringo
04-22-2004, 09:21 PM
I got my nameserver out of windows and used VI to edit /etc/resolv.conf. I lke the idea of copying it better unno. If the internet worked when you booted up then it should work when you are Chrooted after you copy over the file.right? You wouldn't even need to know what the dns is. How much of a security problem would it be if you did not go back in and edit out you nameserver and distributed the remaster?