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 - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-04-2017, 04:02 AM   #1
Laki
LQ Newbie
 
Registered: May 2017
Posts: 3

Rep: Reputation: Disabled
CentOS 6.7 black screen with white coursor


Hi all,
I have problem witn centOS and nouviau drivers, i was able to use ssh to access centos but not to login to Desktop. So i was trying to disable from this link http://www.tecmint.com/install-nvidia-drivers-in-linux/, but aftere step
# dracut -v /boot/initramfs-$(uname -r).img $(uname -r) I reboot PC and now i got black screen witn white coursor. I can reboot with shift and got grub list, but how to fix this?

Thanks
 
Old 05-04-2017, 10:07 AM   #2
r3sistance
Senior Member
 
Registered: Mar 2004
Location: UK
Distribution: CentOS 6/7
Posts: 1,375

Rep: Reputation: 217Reputation: 217Reputation: 217
To get back to commandline you might just be able to hit ctrl+alt+<number> to switch to a CLI (if I remember my keyboard shortcuts correctly), but if that doesn't work.

on grub, hit e to edit the default boot option, go to the "kernel" line and hit e to edit again. Add a 1 to the end of the line and hit return, hit b to boot. This will initialize centos into run level 1, which has no GUI. Alternatively instead of 1 you could do "init=/bin/bash" which would initialize centos into a bash terminal, both are pretty similar. Instead of 1, 3 may work for a full multi-user boot but it isn't guaranteed.

Last edited by r3sistance; 05-04-2017 at 10:10 AM.
 
1 members found this post helpful.
Old 05-04-2017, 11:45 AM   #3
jamison20000e
Senior Member
 
Registered: Nov 2005
Location: ...uncanny valley... infinity\1975; (randomly born:) Milwaukee, WI, US( + travel,) Earth&Mars (I wish,) END BORDER$!◣◢┌∩┐ Fe26-E,e...
Distribution: any GPL that work on freest-HW; has been KDE, CLI, Novena-SBC but open.. http://goo.gl/NqgqJx &c ;-)
Posts: 4,888
Blog Entries: 2

Rep: Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567
"ctrl+alt+<number>" <number> should be F1 to 7
 
Old 05-04-2017, 12:57 PM   #4
Laki
LQ Newbie
 
Registered: May 2017
Posts: 3

Original Poster
Rep: Reputation: Disabled
Thanks,
I found this solution,
If first step is not done , we can enter edit-mode in grub and choose the old initrd by below steps .

a. If grub is secured with a password, press p and enter the password

b. Use the arrow keys to highlight the entry for the kernel you wish to boot

c. Press e for edit

d. Highlight the initrd line and press e again

e. Change the path for the initrd to the backup copy you made (such as /initrd-2.6.18-274.el5.img.bak)

f. Press Enter to temporarily save the changes you have made

g. Press b for boot

Note: This procedure did not actually make any persistent change. The next boot will continue to use the original grub.conf configuration unless it is updated.

from http://advancelinux.blogspot.rs/2013...tramfs-in.html,

But how to make permanent, because when i reboot it show black screen again.

Thanks
 
Old 05-04-2017, 11:58 PM   #5
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
^ good, you managed to get into command line mode.
you will need that to fix your problem.

now here's the thing i don't understand:
if you ssh into the machine, i assume it's a remote server? something like that?
so why do you need to install the proprietary nvidia driver on that?
or are you doing something else?

more information about the setup, please.
in your own words.

additionally, the output of this:
Code:
lspci -k | grep -iEA5 'vga|3d|display'
thank you.
 
Old 05-05-2017, 02:40 AM   #6
Laki
LQ Newbie
 
Registered: May 2017
Posts: 3

Original Poster
Rep: Reputation: Disabled
Hi,
I use ssh because monitor for Centos is dead, i know is better to use ssh then to have gui, but im new in Linux world and coming from MS Windows.(bad habit to have gui and just click here or there).
Any way, when I enter your command this is output :

~]$ lspci -k | grep -iEA5 'vga|3d|display'
01:00.0 VGA compatible controller: NVIDIA Corporation G86 [GeForce 8400 GS] (rev a1)
Subsystem: XFX Pine Group Inc. Device 2310
Kernel driver in use: nouveau
Kernel modules: nouveau, nvidiafb
03:00.0 SATA controller: JMicron Technology Corp. JMB363 SATA/IDE Controller (rev 02)
Subsystem: Gigabyte Technology Co., Ltd Motherboard

I got drivers from NVidia, but as i say at the moment i can access to Centos only when I reboot machine, hold shift button, select Centos with highest kernel version (2.6.32-696.1.1.e16) then press 'e', select
'initrd /initframfs-2.6.32-696.1.1.e16.x86_64.img' press 'e' and change from 'grub edit> initrd /initframfs-2.6.32-696.1.1.e16.x86_64.img' to 'initrd /initframfs-2.6.32-696.1.1.e16.x86_64.img.bak' press enter and 'b' to boot. After that I can log from ssh or from GUI, but if i reboot Centos, after bootup just show a black screen and blinking cursor, and when is in that state i cant connect from shh or ping a machine.
How to replace faulty 'initrd /initframfs-2.6.32-696.1.1.e16.x86_64.img' whit 'initrd /initframfs-2.6.32-696.1.1.e16.x86_64.img.bak'? and can I after install nvidia drivers or i need to go from start to first disable again nouveau drivers from this link http://www.tecmint.com/install-nvidia-drivers-in-linux/
or is some better solution?

Thanks
 
Old 05-05-2017, 10:24 AM   #7
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
Quote:
Originally Posted by Laki View Post
How to replace faulty 'initrd /initframfs-2.6.32-696.1.1.e16.x86_64.img' whit 'initrd /initframfs-2.6.32-696.1.1.e16.x86_64.img.bak'?
Code:
mv /initframfs-2.6.32-696.1.1.e16.x86_64.img.bak /initframfs-2.6.32-696.1.1.e16.x86_64.img
but i suspect that something else is amiss here.
looking at the tecmint article, i have my doubts... it's from 2013...
why didn't you follow the instructions on centos wiki?
which centos version do you use? is it up to date?
did you run 'update-grub'?
 
  


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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
black screen with only white cursor guido.decraemer Linux - Newbie 1 03-26-2015 10:31 PM
Black and White Screen on Resume rsromano Linux - Newbie 4 06-19-2011 10:28 AM
Screen fades to Black and white with Ubuntu10.04 jnostern Ubuntu 10 10-19-2010 03:00 PM
the screen goes black & white sycamorex Linux - Software 4 06-15-2008 08:19 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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

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