How to recover Linux from 'repair file system' error

2

1

Unfortunately my mom did something that I don't know and Linux is in command-line mode. What is the key for exiting from the shell and going to the desktop?

I tried

  • Alt + F2
  • Alt + F6
  • Ctrl + Alt + F2
  • Ctrl + Alt + Delete
  • exit

No one worked for me. It goes to the black shell and tells me enter login and root password. When I enter it, it shows me repair file system in red color. Alt + F2 shows me a blank black page and Alt + F1 will return back to this shell.

My version is openSUSE 11.1.

Nickool

Posted 2012-03-07T14:22:43.707

Reputation: 293

try Alt + F1 ___ – inf – 2012-03-07T14:30:54.577

it did nothing for me – Nickool – 2012-03-07T14:33:40.057

Answers

4

"shows me repair file system in red color"

This is the key: the filesystem is corrupted, probably due to an unclean shutdown. It needs to be repaired. Try entering the root password, which should give you a '#' prompt. Type:

fsck -A -y

That will take a while and print out something about what it's fixing. Once that has completed, type "exit". You may need to restart the system again.

pjc50

Posted 2012-03-07T14:22:43.707

Reputation: 5 786

1yes It is tell me fixed fixed fixed and It has questions which itself tells yes yes yes hope It will help thanks – Nickool – 2012-03-07T14:58:05.347

I love you so much!!!! thanks thanks what can I do for you!!!! thank you!!!!!! – Nickool – 2012-03-07T14:59:54.767

Take it it's working then :) If you could edit the subject line of your original question to something like "How to recover linux from 'repair file system' error" that would be great. Also, now you've got your files back BACK THEM UP SOMEWHERE. – pjc50 – 2012-03-07T17:26:39.677

:D Yes I should do it! ok I change the subject for users:) – Nickool – 2012-03-07T19:20:23.380

2

Ctrl + Alt + F7 should return you to the GUI if it is still running. If not, try startx.

Mark S.

Posted 2012-03-07T14:22:43.707

Reputation: 1 289

it showed me nothing – Nickool – 2012-03-07T14:35:19.710

1

The CLI (Command Line Interface) is not a "window" or program in Linux like it is in recent versions of Windows.

So you are not trying to Exit the CLI, you are trying to Start the Graphical User Interface (GUI).

First off: Have you restarted the computer? And what version or Distro are you using?

Update 1:

Instructions for starting KDE from CLI in opensuse are to run the command:

startx

or

startkde

Update 2:

From http://www.novell.com/coolsolutions/feature/11550.html

The first thing to do is to make sure that KDE will start up from the command line. On SUSE, KDE is installed into the /opt/kde3 folder and all the commands can be found in the bin sub folder. This directory will probably not be in your path as KDE set this in its start up routine.

Your path is a list of folders where Linux looks for commands (Tools, Utilities and Applications) to run.

You can find out your path with the command line:

$ echo $PATH

The command to start the KDE GUI (Graphical User Interface) is a shell script called "startkde".

The script checks to see that everything is cool for it to run correctly, and adds its command folder to your path.

It does lots of other checks and sets up its graphics, fonts, and user preferences. Then it starts the X server and KDE.

Running the command from the command line will let you see any error messages in case it does not start properly. What you do about these is beyond the scope of this answer as there could be many reasons why it didn't work. Hopefully the error messages will be self explanatory.

You can run this command in two ways. Either by giving the full path name thus:

$ /opt/kde3/bin/startkde

or by:

$ cd /opt/kde3/bin

$ ./startkde

If none of those solutions work, I'd recommend running a repair or reinstall of KDE.

Update 3:

Try using xwmconfig to (re)set your X Window Manager to KDE

music2myear

Posted 2012-03-07T14:22:43.707

Reputation: 34 957

yes,opensuse 11.1 KDE – Nickool – 2012-03-07T14:32:48.437

And what GUI were you using: Gnome, KDE, something else? – music2myear – 2012-03-07T14:33:39.760

It is KDE music2myear – Nickool – 2012-03-07T14:37:04.703

It tells me $DISPLAY is not set or cannot connect to the xserver – Nickool – 2012-03-07T14:45:49.900

Then you're beyond my depth in Linux. It sounds like your graphics driver is messed up or the xserver (the window manager) is not running. Googling that error message gives some promising results from others who've had the same issue. It appears you'll need to try an alternative way of starting KDM. – music2myear – 2012-03-07T14:48:04.750

$path showed me a path file without errors – Nickool – 2012-03-07T14:50:07.650

I tried cd /opt/kde3/bin and then I started the kde it has error Error:can't open display: ./startkde:line80:/root/.kde/share/config.startupconfig:no such file or directory – Nickool – 2012-03-07T14:52:29.597

0

Try to restart your computer:

sudo shutdown -r now

thehilmisu

Posted 2012-03-07T14:22:43.707

Reputation: 63

It just restarted me in again that mode – Nickool – 2012-03-07T14:37:37.447

may be you can re-install the kde-desktop

zypper install -t pattern kde4 kde4_basis

http://en.opensuse.org/SDB:KDE_install

– thehilmisu – 2012-03-07T14:46:13.013

0

Depending on the distribution, the X server may have taken over the slot usually occupied by tty1 or tty7. On Fedora, ctrl+alt+F1 takes me back to the X server; ctrl+alt+F7 used to work on Ubuntu.

Failing that, X may have died - in which case you have two choices:

  • Try startx - you'll need to be logged in and with the appropriate scripts configured; not all distributions have this.
  • Restart init. To do this: log in, type:

    $ sudo -i
    # init 3
    # init 5
    

    You may need to re-login between the two inits, depending on your distribution. init 5 means "start multi-user graphical mode" and should boot you up into X. init 3 will likely kill any running applications you have, by the way.

user26996

Posted 2012-03-07T14:22:43.707

Reputation:

startx tells me fatal server error read only file system /root/.serverauth.1505 – Nickool – 2012-03-07T14:39:01.033

You'll need to be root then; try sudo -i which should log you in to the interactive root prompt, then startx. – None – 2012-03-07T14:41:49.920

It tells me many errors xinit:no such process(errno 3):Server error errors in locking authorithy lobloblob – Nickool – 2012-03-07T14:44:39.967

@nik hmmm. Have you tried the ctrl+alt+FX approach? Xs can be from 1-8 I think. – None – 2012-03-07T14:46:11.800

yes I tried them I wanna Die! Ireally need my desktop! I can't again install suse because I have many documents spread everywhere – Nickool – 2012-03-07T14:48:28.807

This is why we have backups. – pjc50 – 2012-03-07T14:51:18.933