LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 11-05-2006, 10:37 AM   #1
xflow7
Member
 
Registered: May 2004
Distribution: Slackware
Posts: 215

Rep: Reputation: 45
Couldn't switch to console from failed X??


OK, so yesterday while in the midst of getting 2.6.17.13-generic up and running I had a couple of instances where the X server failed to start (default runlevel 4) because I had to sort out Synaptics and the NVIDIA driver. I made the mistake on one occassion of Ctrl-Alt-F7-ing over to the failed X (I don't know why), but then I found I couldn't get back to a tty to try to make a fix to the problem and either restart X or reboot nicely. Ctrl-Alt-F6 did nothing. Nor did Ctrl-Alt-Bkspc (not surprisingly as X didn't manage to start). I found myself with no choice but to hard power down which caused all kinds of fsck errors on reboot (of a severity that it dumped me into an administrative prompt to manually fsck and ignorantly attempt to answer it's questions about what inodes to fix and delete).

At this point, I was sure there was no way the system would boot again, but it did and I eventually got up and running. However, some of the fsck fixes clearly corrupted some things (lost my Firefox Bookmarks, for example) and while I haven't noticed any system weirdness yet, I am near certain there are now some bugaboos lurking where files have been corrupted that are going to bite me in the butt eventually.

So, my questions to the community:

1) Has anyone else found themselves in a situation where they were unable to Ctrl-Alt-F? to a console. I've never had that problem on previous Slacks or other distros. tty6 has always been there for me and I was shocked when I couldn't get to it. I can only think that the keymap for the X display console somehow got hosed.
2) Is there something else I could have done when I found myself unable to get to a console to safely shutdown or prevent the errors resulting from powering down while the fs was still mounted? Some secret key combination I don't know or something.

FWIW, Dell Inspiron 8200, Slack 11, ext3 filesystem

Thanks,

Dave
 
Old 11-05-2006, 11:50 AM   #2
gnashley
Amigo developer
 
Registered: Dec 2003
Location: Germany
Distribution: Slackware
Posts: 4,928

Rep: Reputation: 612Reputation: 612Reputation: 612Reputation: 612Reputation: 612Reputation: 612
You could compile sysreq into your kernel which will get you out most of the time, if you can remember how to use it.
 
Old 11-06-2006, 03:25 PM   #3
Mortus Canis
LQ Newbie
 
Registered: Jun 2003
Location: Gonzaga University
Distribution: Slackware, RHEL
Posts: 23

Rep: Reputation: 15
I have had that experience. In most cases I am able to go to another computer on my network and ssh into the seemingly hung machine and kill stuff nicely before rebooting it through the ssh session.
 
Old 11-06-2006, 04:33 PM   #4
randomsel
Member
 
Registered: Oct 2006
Location: Wilmington, DE
Distribution: Slackware 11
Posts: 201

Rep: Reputation: 30
if CTRL-ALT-DEL doesn't work, CTRL-ALT-F? either, can't ssh into the box, then try Raising Skinny Elephants, It's Utterly Boring.

(that sysrq thing, less than 3 post, no linky to wikipedia...)
 
Old 11-06-2006, 04:36 PM   #5
Mr_C
Member
 
Registered: Jan 2004
Location: Trinidad & Tobago
Distribution: Slackware
Posts: 317

Rep: Reputation: 30
@Mortus Canis: likewise. I hate to reboot.

Now I know theres a lot going on and people has lost confidence in reiser but really I have found reiserfs to be the most reliable filesystem I've come accross. It has never let me down in odd crashes.
Something to look at.
 
Old 11-07-2006, 05:26 AM   #6
gnashley
Amigo developer
 
Registered: Dec 2003
Location: Germany
Distribution: Slackware
Posts: 4,928

Rep: Reputation: 612Reputation: 612Reputation: 612Reputation: 612Reputation: 612Reputation: 612
Crashes of X are what taught me to use reiserfs also. I've never had any corruption whatsoever, even after hundreds of crashes when doing weird development stuff!
Anyway sysrq is an advanced kernel feature which must be compiled in. If X doesn't respond you push CTRL+ALT+SCROLL and then you have 2-3 seconds in which you can give a selection of commands. I have used it before, but not lately.
 
Old 11-07-2006, 06:59 AM   #7
xflow7
Member
 
Registered: May 2004
Distribution: Slackware
Posts: 215

Original Poster
Rep: Reputation: 45
Thanks for the tips. I had seen the Sysrq thing when I've compiled kernels in the past, but never considered compiling it in. Now I get it. Whenever I get around to building a kernel I'll keep that in mind.

Sounds like Reiserfs may be worth a look, too. Not that I'm in any real hurry right now to wipe my partition and start over.

Anywho, thanks for the responses.

Dave
 
  


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
console switch problem fireflyanant Linux - Newbie 3 04-06-2005 10:20 PM
Switch from X to console wizard7423 Programming 13 12-29-2004 09:11 AM
How to switch to Gnome under console? explorer1979 Debian 1 08-27-2004 07:09 PM
Cant switch to console from X sepppel Linux - Newbie 2 07-18-2004 12:57 PM
to switch from X window to console: go_sooner Linux - General 2 02-03-2004 09:36 AM

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

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

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