LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Manjaro
User Name
Password
Manjaro This forum is for the discussion of Manjaro Linux. Note: This forum does not have any official participation.

Notices


Reply
  Search this Thread
Old 10-21-2021, 05:14 PM   #1
BudiKusasi
Member
 
Registered: Apr 2017
Distribution: Artix
Posts: 345

Rep: Reputation: 15
chroot’s nill internet connection


How come within chroot internet connection is gone off, how to solve ?
Thank you before
 
Old 10-21-2021, 06:11 PM   #2
shruggy
Senior Member
 
Registered: Mar 2020
Posts: 3,670

Rep: Reputation: Disabled
I hope you didn't forget to mount pseudo filesystems inside chroot mountpoint before changing to it
Code:
for dir in dev proc sys
do mount --bind /$dir /mnt/$dir
done

Last edited by shruggy; 10-21-2021 at 06:13 PM.
 
1 members found this post helpful.
Old 03-16-2023, 01:38 AM   #3
Xeratul
Senior Member
 
Registered: Jun 2006
Location: UNIX
Distribution: FreeBSD
Posts: 2,658

Rep: Reputation: 255Reputation: 255Reputation: 255
Quote:
Originally Posted by BudiKusasi View Post
How come within chroot internet connection is gone off, how to solve ?
Thank you before
You can check /etc/resolv.conf


Code:
cp /etc/resolv.conf  /mnt/etc/resolv.conf 

then after chroot /mnt
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] in chroot compiled programs do not work in chroot graphit Linux From Scratch 2 04-11-2010 03:04 AM
chroot to run hd-installed distro's programs from chroot in live distro? silencestone Linux - Software 0 10-12-2007 06:29 AM
sudo /usr/bin/chroot /home/chroot /bin/su - xxx| /bin/su: user xxx does not exist saavik Linux - General 3 07-04-2007 10:30 AM
mount command not working in chroot. and now chroot not working mohit.jain Linux From Scratch 5 07-14-2006 03:57 AM
to chroot or not to chroot complus Linux - Security 4 02-29-2004 04:07 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Manjaro

All times are GMT -5. The time now is 11:27 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration