I tried to upgrade Ubuntu from Hardy to Intrepid last night, and seem to have killed it.
I can boot into "recovery mode" and the root shell, but it freezes when it tries to start the Gnome environment etc.
In this recovery mode it doesn't seem to be on the network (ie. ifconfig shows the lo bit but not the eth0 bit) And I can't ping or ssh to it.
How can I start networking from this prompt?
cheers
phil
Do you normally get your IP address from DHCP server ?
To set IP address you want (for example 192.168.0.1) type:
If you have a problem with gdm during the boot, switch to the real console:
Use the Ctrl-Alt-F1 shortcut keys to switch to the first console.
To switch back to Desktop mode (
gdm
), use the Ctrl-Alt-F7 shortcut keys.To start networking,
/etc/init.d/networking start
should do the trick. I'd say that if Gnome isn't starting, you've got X config problems. If you disable gdm from starting on boot, then you should be able to get to a regular console prompt and do diagnosis from there (check/var/log/Xorg.0.log
and so on).Step by step with
ip
ip link
command. The name may differ with motherboards. It should be different fromlo
, the virtual local interface.eth0
, the following command will bring the interface up. This should now be visible when executing the commandip link
once more.8.8.8.8
This requires editing a system configuration file that normally should not be edited. However, any changes made will automatically disappear when rebooting.Add a line containing, for example:
Some more helpful commands
Personally, I ended up in this dire situation by replacing an NVidia video card with a much older model. Once the networking established, the following set of commands allowed me to successfully install the proper NVidia card driver.
In newer versions of Ubuntu name resolution does not work via
/etc/resolv.conf
anymore. Thus you need to do something likeYou can go back to the recovery menu options by login-out (cntrl + D), then select the option "Network ------- Enable networking" and Ubuntu will do the rest for you to activate networking. You will be brought back to this menu screen, so you can get back to the shell prompt and continue whatever you were trying to fix.
Just start the network manager in recovery mode