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 - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 11-19-2005, 09:54 PM   #1
Joe4
LQ Newbie
 
Registered: Nov 2005
Posts: 10

Rep: Reputation: 0
After nvidia module build, black screen & no access


My XF86Free was working fine with the nv driver (before I got and installed nvidia-kernel-commun & related). I tried to actually install the nvidia driver & I built it. The build went fine and it lseemed like it will work. After a reboot, the screen goes black (no signal from the monitor) so I can't even get in to replace XF86Config-4 with the backup I made of that file prior to the build.

How can I somehow get in and replace the file for now?
I'll deal with the building etc later on I guess.
 
Old 11-20-2005, 03:24 AM   #2
makuyl
Senior Member
 
Registered: Dec 2004
Location: Helsinki
Distribution: Debian Sid
Posts: 1,107

Rep: Reputation: 54
The screen goes black immediately so you don't even see bootup messages? Strange. You didn't by chance fiddle with the frame buffering in grub? Anyway, you can use a linux livecd to edit files. Kanotix, Knoppix, Damnsmalllinux come to mind.

EDIT: Come to think of it, don't you have another kernel you can boot into? IMO you should always have two kernels installed if you bork one up.

Last edited by makuyl; 11-20-2005 at 03:31 AM.
 
Old 11-20-2005, 12:50 PM   #3
Joe4
LQ Newbie
 
Registered: Nov 2005
Posts: 10

Original Poster
Rep: Reputation: 0
Thanks for the suggestion. I did get in finally.
 
Old 11-20-2005, 02:11 PM   #4
michapma
Member
 
Registered: Oct 2003
Location: Zürich
Distribution: Debian
Posts: 537

Rep: Reputation: 39
For future reference, any time the X server fails to start, you can switch to one of the consoles to administer the system. Press Ctl+Alt+F1 (or +F2, F3, etc.) to switch, and then login.
 
Old 11-20-2005, 02:58 PM   #5
Joe4
LQ Newbie
 
Registered: Nov 2005
Posts: 10

Original Poster
Rep: Reputation: 0
Quote:
Originally posted by michapma
For future reference, any time the X server fails to start, you can switch to one of the consoles to administer the system. Press Ctl+Alt+F1 (or +F2, F3, etc.) to switch, and then login.
Thanks a lot, I'll keep it in mind.
 
Old 11-20-2005, 03:26 PM   #6
michapma
Member
 
Registered: Oct 2003
Location: Zürich
Distribution: Debian
Posts: 537

Rep: Reputation: 39
You should try it right now to see how it works. It's simple and very useful, especially with X issues.

Oh, and you need to know that X server usually runs on console 7, so press Ctl+Alt+F7 to get back to X. You'd be pretty mad at me if I didn't mention that.
 
Old 11-20-2005, 03:58 PM   #7
makuyl
Senior Member
 
Registered: Dec 2004
Location: Helsinki
Distribution: Debian Sid
Posts: 1,107

Rep: Reputation: 54
Mmh, and here I thought you couldn't login at all. Oh well.
 
Old 11-20-2005, 09:11 PM   #8
Joe4
LQ Newbie
 
Registered: Nov 2005
Posts: 10

Original Poster
Rep: Reputation: 0
Quote:
Originally posted by michapma
You should try it right now to see how it works. It's simple and very useful, especially with X issues.

Oh, and you need to know that X server usually runs on console 7, so press Ctl+Alt+F7 to get back to X. You'd be pretty mad at me if I didn't mention that.
I did try and it works great. However, when I was trying to boot I had a totally black screen.
The way I finally got in was by trying the other kernel that was listed there,
I had a hunch maybe it wouldn't use X, that was the case.
I am glad you mention these, as I will experiment later on to make the nvidia driver work with the card
so this should work if I do not reboot after I edit the conf file but kill X and start it again (I hope).
Thanks again
 
Old 11-20-2005, 09:25 PM   #9
Joe4
LQ Newbie
 
Registered: Nov 2005
Posts: 10

Original Poster
Rep: Reputation: 0
Quote:
Originally posted by makuyl
Mmh, and here I thought you couldn't login at all. Oh well.
Sorry, if I wasn't more explicit, that was the case. I just didn't feel like cluttering too much if you will.
I did try the Knoppix boot, but it refused to save the changes to the file (read-only file system, even when I chose the other root console from the K menu (I read somewhere you should use that root console)).
Is there any way to save changes on a file on your hard disk from a Knoppix boot? (that could be handy in the future) The other kernel listed happened to not be configured for X. I got in and edited the file.
I guess you learn by spending some sleepless hours at the console...but it sure helps when you get feedback.
Thanks for your help
 
Old 11-21-2005, 02:01 AM   #10
makuyl
Senior Member
 
Registered: Dec 2004
Location: Helsinki
Distribution: Debian Sid
Posts: 1,107

Rep: Reputation: 54
If the partition is mounted read only you can do "sudo mount -o remount,rw /dev/hd?? /mnt/hd??"
 
Old 11-21-2005, 03:10 AM   #11
Joe4
LQ Newbie
 
Registered: Nov 2005
Posts: 10

Original Poster
Rep: Reputation: 0
I am glad there is such a simple and elegant solution. Thanks again
 
Old 11-21-2005, 04:30 AM   #12
michapma
Member
 
Registered: Oct 2003
Location: Zürich
Distribution: Debian
Posts: 537

Rep: Reputation: 39
Quote:
Originally posted by Joe4
The other kernel listed happened to not be configured for X. I got in and edited the file.
Just a little side note. A kernel is never configured for X, but rather the system is. When you install Debian, it makes at least two entries in the GRUB bootloader: one using the normal kernel that you configured, and which will run all the systems as normal; and a second, rescue/troubleshooting version, which if I understand right has a lot of modules removed and (I think) boots the system into a lower run level. You probably just selected this second kernel configuration.

For a little detail on runlevels, see here:
http://openskills.info/infobox.php?ID=1104

You'll see, for example, that runlevel 5 is "multi user with graphical environment."

Quote:
I guess you learn by spending some sleepless hours at the console...but it sure helps when you get feedback.
Amen. Remember that once you are an expert hacker.
 
Old 11-21-2005, 11:08 AM   #13
Joe4
LQ Newbie
 
Registered: Nov 2005
Posts: 10

Original Poster
Rep: Reputation: 0
Quote:
Originally posted by michapma
Just a little side note. A kernel is never configured for X, but rather the system is. When you install Debian, it makes at least two entries in the GRUB bootloader: one using the normal kernel that you configured, and which will run all the systems as normal; and a second, rescue/troubleshooting version, which if I understand right has a lot of modules removed and (I think) boots the system into a lower run level. You probably just selected this second kernel configuration.

For a little detail on runlevels, see here:
http://openskills.info/infobox.php?ID=1104

You'll see, for example, that runlevel 5 is "multi user with graphical environment."
Got it, Thanks.
Quote:
Amen. Remember that once you are an expert hacker.
That will take some time I suppose...
 
  


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
nvidia v...7676 on FC4 with black screen bakasaru Linux - Hardware 2 10-10-2005 12:28 AM
Unable to build nvidia module martincho Linux - Hardware 3 05-21-2005 07:49 PM
Unable to build the NVIDIA kernel module subaruwrx Linux - General 2 03-12-2005 08:15 PM
nVidia in Xorg=black screen FXRS Slackware 13 07-01-2004 01:55 AM
Toshiba 5100 & Nvidia - black bar on right side of my screen? rnmartinez Linux - Laptop and Netbook 0 06-10-2004 08:26 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 06:45 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