Results 1 to 5 of 5

Thread: no internet after chroot

  1. #1
    Junior Member
    Join Date
    Mar 2007
    Posts
    3

    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

  2. #2
    Senior Member registered user
    Join Date
    Feb 2003
    Location
    England
    Posts
    177

    Re: no internet after chroot

    Quote 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)
    Code:
    deb http://http.us.debian.org/debian stable main contrib non-free
    deb http://non-us.debian.org/debian-non-US stable/non-US main contrib non-free
    deb http://security.debian.org stable/updates main contrib non-free

  3. #3
    Junior Member
    Join Date
    Jan 2007
    Posts
    7
    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

  4. #4
    Junior Member
    Join Date
    Mar 2007
    Posts
    3
    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!

  5. #5
    Junior Member registered user
    Join Date
    Oct 2005
    Posts
    21
    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

  1. The dreaded chroot !
    By exxfile in forum Customising & Remastering
    Replies: 1
    Last Post: 08-02-2009, 05:35 PM
  2. Chroot, KDE language?
    By maxmartin in forum Customising & Remastering
    Replies: 4
    Last Post: 02-15-2006, 11:28 PM
  3. chroot help
    By gursharnsingh in forum Customising & Remastering
    Replies: 2
    Last Post: 01-15-2004, 09:38 PM
  4. X programs from chroot
    By rdmelin in forum Customising & Remastering
    Replies: 4
    Last Post: 08-20-2003, 02:27 PM
  5. To chroot or not to chroot
    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
  •  


A-Tech 8GB DDR3 1600 PC3-12800 Laptop SODIMM 204-Pin Memory RAM PC3L DDR3L 1x 8G picture

A-Tech 8GB DDR3 1600 PC3-12800 Laptop SODIMM 204-Pin Memory RAM PC3L DDR3L 1x 8G

$13.99



Samsung 16GB 2Rx4 PC4-2133P DDR4-17000 1.2V RDIMM ECC Registered Server Memory picture

Samsung 16GB 2Rx4 PC4-2133P DDR4-17000 1.2V RDIMM ECC Registered Server Memory

$16.29



HyperX FURY DDR3 8GB 16GB 32GB 1600 MHz PC3-12800 Desktop RAM Memory DIMM 240pin picture

HyperX FURY DDR3 8GB 16GB 32GB 1600 MHz PC3-12800 Desktop RAM Memory DIMM 240pin

$12.90



A-Tech 16GB 2 x 8GB PC3-12800 Laptop SODIMM DDR3 1600 Memory RAM PC3L 16G DDR3L picture

A-Tech 16GB 2 x 8GB PC3-12800 Laptop SODIMM DDR3 1600 Memory RAM PC3L 16G DDR3L

$27.98



A-Tech 8GB PC3-12800 Desktop DDR3 1600 MHz Non ECC 240-Pin DIMM Memory RAM 1x 8G picture

A-Tech 8GB PC3-12800 Desktop DDR3 1600 MHz Non ECC 240-Pin DIMM Memory RAM 1x 8G

$13.99



Kingston HyperX FURY DDR3 8GB 16GB 32G 1600 1866 1333 Desktop Memory RAM DIMM picture

Kingston HyperX FURY DDR3 8GB 16GB 32G 1600 1866 1333 Desktop Memory RAM DIMM

$13.25



TeamGroup 16GB PC4 2666 PC4 21300 DDR4 2666MHz 1.2V CL19 Desktop RAM Memory picture

TeamGroup 16GB PC4 2666 PC4 21300 DDR4 2666MHz 1.2V CL19 Desktop RAM Memory

$27.95



32GB (4X8GB) DDR3 PC3-12800 1600 NON ECC LOW DENSITY MEMORY F3-12800CL10Q-32GBXL picture

32GB (4X8GB) DDR3 PC3-12800 1600 NON ECC LOW DENSITY MEMORY F3-12800CL10Q-32GBXL

$32.00



A-Tech 256GB 4x 64GB 4Rx4 PC4-19200 ECC Load Reduced LRDIMM Server Memory RAM picture

A-Tech 256GB 4x 64GB 4Rx4 PC4-19200 ECC Load Reduced LRDIMM Server Memory RAM

$287.96



A-Tech 64GB 4x 16GB 2Rx4 PC4-17000R DDR4 2133MHz ECC REG RDIMM Server Memory RAM picture

A-Tech 64GB 4x 16GB 2Rx4 PC4-17000R DDR4 2133MHz ECC REG RDIMM Server Memory RAM

$87.96