LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   did something stupid (https://www.linuxquestions.org/questions/linux-newbie-8/did-something-stupid-743861/)

johnh10000 07-30-2009 04:02 AM

did something stupid
 
Hi gang did something stupid

It was being slow, and thashing the disk. so like an idiot, i pressed the reset button!!!!

now i've check in recovery mode, get the net turned on, which gets its dhcp 192.168.1.3 as always, but no internet.

on the same box is a duleboot of xp, thats fine, well as far as the net goes.

so, ive trashed a netwrk config file somewhere.

how do i recover please?

could i resintall over the top, and not format?

jdkaye 07-30-2009 04:15 AM

Quote:

now i've check in recovery mode, get the net turned on, which gets its dhcp 192.168.1.3 as always, but no internet.
I don't understand what this means. Have you tried rebooting normally? Exactly what happens when you do that? 192.168.1.x is a normal internal ip number. It is not visible outside your local network.

You also might want to mention what distro you're using.
cheers,
jdk

ak99505 07-30-2009 04:17 AM

Quote:

Originally Posted by johnh10000 (Post 3625211)
Hi gang did something stupid

It was being slow, and thashing the disk. so like an idiot, i pressed the reset button!!!!

now i've check in recovery mode, get the net turned on, which gets its dhcp 192.168.1.3 as always, but no internet.

on the same box is a duleboot of xp, thats fine, well as far as the net goes.

so, ive trashed a netwrk config file somewhere.

how do i recover please?

could i resintall over the top, and not format?

whats the output of
Code:

ip addr 
ip route


mrrangerman 07-30-2009 06:25 AM

Quote:

johnh10000

could i resintall over the top, and not format?
Why would you want to do that?

Do as jdkaye has asked "reboot normally" try that a couple of times if that doesn't help edit your /etc/resolv.conf file and make sure it's still listing a DNS nameserver.

johnh10000 07-31-2009 02:02 AM

Quote:

Originally Posted by mrrangerman (Post 3625330)
Why would you want to do that?

Do as jdkaye has asked "reboot normally" try that a couple of times if that doesn't help edit your /etc/resolv.conf file and make sure it's still listing a DNS nameserver.

HHmm as my mail server was down too, I got this morn, I booted off a a jaunty disk, and went for the recover broken system.

Anyways were sort of bak. I'm off on hols today so it can wait.

geek745 07-31-2009 11:06 PM

so you'll find you need 4 pieces of information to get online:

1. local ip (from router's dhcp or static ip)
2. subnet mask (to go with the local net, usually 255.255.255.0 for home setup)
3. default gateway (ip of your router, usually the same as your ip but ending in .1 instead of whatever your machine has)
-- up to this point you can access anything by ip, anywhere in the world
4. dns (/etc/resolv.conf should have at least one "nameserver" entry) - so that you can figure out what IP belongs to "google.com" for example and access the web in the normal fashion.

Reinstall will not be necessary; only modifying some configuration. You may want to boot into something on that machine that can get online (your dual-boot windows) and then obtain all the needed connection information from that box to reboot and likewise configure linux.

DHCP is supposed to feed clients all 4 of those information listed above; as long as it is enabled and working, you should have no trouble.


All times are GMT -5. The time now is 05:16 AM.