View previous topic :: View next topic |
Author |
Message |
loscrs n00b
Joined: 10 Jan 2003 Posts: 2
|
Posted: Mon Jan 13, 2003 4:47 pm Post subject: losing settings during install |
|
|
I new to gentoo and linux so I may be missing something here
I have downloaded the iso listed in sparc install able to boot ramdisk
setup my ip and route manually
edit the /etc/resolve.conf
at this point when I test everthing works great
able to mount
"mount -t iso9660 -o ro /dev/cdroms/cdrom0 /mnt"
pings to www.gentoo.org still work
then I try to chroot
chroot /mnt/root-sparc64 bin/bash
and lose ability to resolve hostnames , routing is ok as I can still ping by IP.
How do I get hostname resolution back ?
I tried to run nano and edit /etc/resolv.conf but it errors and says directory is read-only which to me sounds correct as I have mounted the cdorm as root trying edit the resolv.conf file now would be trying to write to cdrom ?
anyone run into this before |
|
Back to top |
|
|
torradan Retired Dev
Joined: 29 Dec 2002 Posts: 52 Location: Niagara Falls, NY
|
Posted: Mon Jan 13, 2003 8:52 pm Post subject: |
|
|
i had the same problem when i started..
when i did that, i had to exit from the chroot, and copy /etc/resolv.conf to /mnt/root-sparc64/etc/resolv.conf
and then chroot again, and it worked.
Hope that helps
--Todd |
|
Back to top |
|
|
loscrs n00b
Joined: 10 Jan 2003 Posts: 2
|
Posted: Tue Jan 14, 2003 4:14 pm Post subject: still not working ??? |
|
|
Todd
when you installed did you boot off of cdrom ?
I exited out of chroot but can't copy resolv.conf as
/mnt/root-sparc64/etc/ is the cdrom and gives me the same error that I get when in chroot thatits a read-only filesystem as it is the CD itself that I mounted?
do I have a bad CD that is either missing the resolv.conf or a link of some sort to my existing resolv.conf ?
do you rememenber if you mounted or chrooot it excatly as instructions say?
"# mount -t iso9660 -o ro /dev/cdroms/cdrom0 /mnt
# chroot /mnt/root-\`uname -m\` bin/bash
"
thanks |
|
Back to top |
|
|
calmtom n00b
Joined: 03 Jan 2003 Posts: 19
|
Posted: Wed Jan 15, 2003 2:38 pm Post subject: |
|
|
I ran into the same problem. I just used the ip address of ibiblio.org in the url to get the tar ball (152.2.210.81), extracted it to the root partition of the hard drive, and chroot to that. Then you can just use nano to write a new resolv.conf. |
|
Back to top |
|
|
|