-
no internet after chroot
Hey gang,
I've been booting KNOPPIX 3.6 from a USB drive using a boot floppy for a little while now and want to update the packages on the original live CD. I'm using the traditional remaster tutorial found here:
http://www.knoppix.net/wiki/Knoppix_Remastering_Howto
following these directions exactly I come to a problem after I chroot to the mounted /knx/source/KNOPPIX directory. I type the command:
Code:
mount -t proc /dev/proc proc
and get no errors or messages or anything like that. when I try to ping google (or any other site), however, I get
Code:
ping: unknown host google.com
naturally, it's not hard to believe that apt-get update doesn't work either...
any idea how to get the net working in my chroot environment?
also, how would I change the apt-get source? I'm pretty sure this one is out of date.
I would just update to 5.1.1 but I'm unaware of any ways to boot it from a USB using a floppy since the 2.6 kernel is too large to fit on a single disc
thanks a bunch!
kiley
-
Senior Member
registered user
Re: no internet after chroot
![Quote](images/misc/quote_icon.png)
Originally Posted by
kvbriggs
...following these directions exactly I come to a problem after I chroot to the mounted /knx/source/KNOPPIX directory. I type the command:
Code:
mount -t proc /dev/proc proc
and get no errors or messages or anything like that. when I try to ping google (or any other site), however, I get
Code:
ping: unknown host google.com
...any idea how to get the net working in my chroot environment?
After you did the command (corresponding to example)
Code:
cp /etc/dhcpc/resolv.conf /mnt/hda1/knx/source/KNOPPIX/etc/dhcpc/resolv.conf
check that the nameserver address, that you know(?!) works in the live CD environment is in your source resolv.conf
...also, how would I change the apt-get source? I'm pretty sure this one is out of date...
For Knoppix 3.6 I think the best bet would be to use the Debian Stable ("Sarge") repositories.
Here are repositories from the /etc/apt/sources.list file I used with Knoppix 3.7 (you might want to change the mirrors depending where you are)
-
hi
what JonnyH had quoted will work.
I had a curious problem /etc/resolv.conf was a symlink to /etc/dhcp/resolv.conf. Ping did not work. I removed the symlink and created a /etc/resolv.conf afresh and it worked. but Make sure that you restore the symlink once you are finished
-
thanks guys. I'm off to bed for now but I'll give it another shot tomorrow. I've been at this project quite a bit this past week and needed a day or so to start fresh. I'll let you know how it goes!
-
Junior Member
registered user
Perosnally, I did something different than
cp /etc/dhcpc/resolv.conf /mnt/hda1/knx/source/KNOPPIX/etc/dhcpc/resolv.conf
command which did not work for me because /mnt/hda1 was no longer mounted for me in the chroot enviroment. I just opened a new non-root shell, checked out the resolv.conf and next went back into the root shell with chroot active and mofied /etc/dhcpc/resolv.conf.
I'm not an expert at this, so don't take this idea as the golden solution.
Similar Threads
-
By exxfile in forum Customising & Remastering
Replies: 1
Last Post: 08-02-2009, 05:35 PM
-
By maxmartin in forum Customising & Remastering
Replies: 4
Last Post: 02-15-2006, 11:28 PM
-
By gursharnsingh in forum Customising & Remastering
Replies: 2
Last Post: 01-15-2004, 09:38 PM
-
By rdmelin in forum Customising & Remastering
Replies: 4
Last Post: 08-20-2003, 02:27 PM
-
By sminotti in forum Hdd Install / Debian / Apt
Replies: 2
Last Post: 08-07-2003, 07:46 PM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
![Dell T7810 Workstation 1x E5-2603 v3 16GB RAM Nvidia QUADRO +cables picture](/store/img/g/p7UAAOSwdWxmeBAb/s-l225/Dell-T7810-Workstation-1x-E5-2603-v3-16GB-RAM-Nvid.jpg)
Dell T7810 Workstation 1x E5-2603 v3 16GB RAM Nvidia QUADRO +cables
$120.00
![HP Z230 Workstation Towers Xeon E3-1231 V3 3.20ghz 8GB Ram NO HDD picture](/store/img/g/XR8AAOSwOV9mOOTQ/s-l225/HP-Z230-Workstation-Towers-Xeon-E3-1231-V3-3-20ghz.jpg)
HP Z230 Workstation Towers Xeon E3-1231 V3 3.20ghz 8GB Ram NO HDD
$39.96
![Dell Poweredge R730xd LFF 14-Bay 2U Server | Choose Your CPU & RAM Config picture](/store/img/g/CdkAAOSwY0BmYMoF/s-l225/Dell-Poweredge-R730xd-LFF-14-Bay-2U-Server-Choose-.jpg)
Dell Poweredge R730xd LFF 14-Bay 2U Server | Choose Your CPU & RAM Config
$489.99
![HP Z440 Workstation 18Cores Xeon E5-2699 V3 128GB 1TB SSD 2TB WIFI WIN11 R5-340X picture](/store/img/g/itIAAOSwjT9mKCN6/s-l225/HP-Z440-Workstation-18Cores-Xeon-E5-2699-V3-128GB-.jpg)
HP Z440 Workstation 18Cores Xeon E5-2699 V3 128GB 1TB SSD 2TB WIFI WIN11 R5-340X
$309.99
![SR1XP Intel Xeon E5-2680 v3 12 Core 30MB 2.5GHz LGA 2011-3 Grade A Processor picture](/store/img/g/fEMAAOSwy1JmPnWm/s-l225/SR1XP-Intel-Xeon-E5-2680-v3-12-Core-30MB-2-5GHz-LG.jpg)
SR1XP Intel Xeon E5-2680 v3 12 Core 30MB 2.5GHz LGA 2011-3 Grade A Processor
$3.87
![Intel SR1XD Xeon E5-2699V3 2.30Ghz 18-Core Socket 2011 CPU Processor Haswell picture](/store/img/g/FLcAAOSwR89mfH1M/s-l225/Intel-SR1XD-Xeon-E5-2699V3-2-30Ghz-18-Core-Socket-.jpg)
Intel SR1XD Xeon E5-2699V3 2.30Ghz 18-Core Socket 2011 CPU Processor Haswell
$35.00
![Genuine Intel Xeon E5-2680V4 2.40Ghz 14-Core 35MB LGA2011 CPU P/N: SR2N7 picture](/store/img/g/fu8AAOSweXNkGJuo/s-l225/Genuine-Intel-Xeon-E5-2680V4-2-40Ghz-14-Core-35MB-.jpg)
Genuine Intel Xeon E5-2680V4 2.40Ghz 14-Core 35MB LGA2011 CPU P/N: SR2N7
$14.99
![Intel Xeon Gold 6140 SR3AX 2.3GHz 18-Core Processor CPU picture](/store/img/g/y6AAAOSwkWtmBd8U/s-l225/Intel-Xeon-Gold-6140-SR3AX-2-3GHz-18-Core-Processo.jpg)
Intel Xeon Gold 6140 SR3AX 2.3GHz 18-Core Processor CPU
$32.79
![Matched Pair __ Intel Xeon Gold 6152 2.1Ghz 22-Core 140W CPU SR3B4 picture](/store/img/g/NlwAAOSwyqhmO~v4/s-l225/Matched-Pair-Intel-Xeon-Gold-6152-2-1Ghz-22-Core-1.jpg)
Matched Pair __ Intel Xeon Gold 6152 2.1Ghz 22-Core 140W CPU SR3B4
$204.95
![Intel Xeon E5-2667 V4 SR2P5 (3.2GHZ/8-CORE/25MB/135W) PROCESSOR CPU picture](/store/img/g/gRcAAOSwTnpmYzzp/s-l225/Intel-Xeon-E5-2667-V4-SR2P5-3-2GHZ-8-CORE-25MB-135.jpg)
Intel Xeon E5-2667 V4 SR2P5 (3.2GHZ/8-CORE/25MB/135W) PROCESSOR CPU
$29.89