LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Ubuntu (https://www.linuxquestions.org/questions/ubuntu-63/)
-   -   can't access machine after starting in runlevel 1 (https://www.linuxquestions.org/questions/ubuntu-63/cant-access-machine-after-starting-in-runlevel-1-a-849979/)

memius 12-16-2010 08:41 PM

i did this:

Code:

find -type f -newermt '2010-12-12 17:26 ! -newermt '2010-12-13 18:30'
in order to find out which files had changed around the time things hit the fan, and i saw an update notifier that reminded me that i had just done a synaptic-prompted system update just before this happened. i had gone through the whole thing, which took ages, but i had not gotten around to restarting the machine to make the changes take effect.

when i did restart the system, it was after the screen turned black when i did 'sudo services kdm stop' or similar. might this have something to do with it all?

eSelix 12-17-2010 05:55 PM

Do you have access to Grub on boot? On Grub2 you can have pressed Shift before grub start, to access the menu. On old Grub this is done by ESC just before grub loading. If yes, run in single user mode (if you have this option, or add "single" to kernel parameters). It should load kernel and wait for your commands in runlevel 1. If it will work:
1. Run "apt-get update" then "apt-get upgrade" or other tool if you like
2. Try installing nvidia drivers
3. Check that you can enter runlevel 2, by "telinit 2".

And give me response if you can run in single user mode, apt-get has no errors, nvidia intaller worked and what happen after entering runlevel 2?

tommcd 12-17-2010 08:34 PM

Quote:

Originally Posted by memius (Post 4190100)
i was unable to stop X after trying the following:
sudo /etc/init.d/kdm stop
sudo service kdm stop
sudo stop kdm

For future reference, you can enable the old ctrl+alt+backspace method to stop X in Ubuntu like this: https://wiki.ubuntu.com/X/Config/DontZap
See the Using the command line section there. It works like a charm.
Quote:

Originally Posted by memius (Post 4190100)
how do i get my nvidia card to work?)

What nvidia card do you have? If it is a GForce 6 or newer, when you boot to recovery mode you can install the nvidia driver from the Ubuntu repos:
Code:

sudo apt-get install nvidia-current nvidia-settings mesa-utils
sudo nvidia-xconfig
sudo reboot

Note that if you have installed the nvidia driver from nvidia.com, you will need to completely remove that before installing the nvidia driver from the Ubuntu repos.

memius 12-18-2010 02:52 PM

eselix:

i managed to get into grub and tell it to start in single user mode. startup sequence began, but after 'cannot reserve mmio region', the screen turned black.

tommcd:

my card is a geforce 880. i chrooted into my harddisk and logged in as myself, and ran:

Code:

sudo aptitude install nvidia-current nvidia-settings mesa-utils
and

Code:

sudo aptitude nvidia-xconfig
however, since i was only chrooted, i did
Code:

sudo shutdown -P now
in stead of
Code:

sudo reboot
when i started the machine, the screen was black, no prompt.

tommcd 12-18-2010 05:21 PM

When you boot to recovery mode there should be an option to drop to a root shell. Try that and see if you can reinstall and reinable the nvidia-current driver from the Ubuntu repos.
If that does not work, there should also be an option in recovery mode called Xfix Fix Video, or something like that. See if you can run that to fix the video and boot to the desktop.

memius 12-18-2010 05:23 PM

lo and behold!

the machine booted normally, but without X11, only in terminal mode. i have no idea why.

after that, i was logged in as myself, and things worked out. so, i guess this is solved, but i have no idea why.

it turned out the graphics card didn't work at all, so now i'm trying with another one that i had lying around. wish me luck :)


All times are GMT -5. The time now is 12:47 PM.