LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 06-23-2003, 11:56 AM   #1
biner
LQ Newbie
 
Registered: Jun 2003
Posts: 8

Rep: Reputation: 0
X problem with mandrake


Hello,

I had Mandrake 8.1 installed since a year on dual boot with windows XP. All was fine.

The other morning I use Gimp and it frose my computer. I reseted it and when I tried to go back into linux but it complained that a partition was not unmouted properly and my screen flickered sleep/awake when getting into X.

I posted the a question on another forum of LQ and got help. Looking at the doc I used e2fsck to repair the bad partition (/dev/hda8) although I got an advice that what I did was dangerous. After that I got no complaits anymore about unproper unmounting and the partition is visible when using "fdisk -l /dev/hda"

Now I get into the console mode fine but I cannot get into an X session. I typed XFdrake, I tried a resolution test, it didn't work complaining of "can't read lock file /tmp/.xf.lock" (I can't guarantee there are no typo here). Anyways, after that it asks me if it can switch the x session by default when booting and I answered yes. So now when I boot linux, I see the console mode again with "/etc/issue -> cannot execute binary file" writen on the login name.

Can anybody help me?

1) Did I do anything stupid with e2fsck?
2) Should I reinstall something instead of trying to repair it?
3) And can anybody tell me why I have to loose all that time and energy juste because Gimp froze my computer and I reseted it? What happened?
4) How can I reset my X sessions? XFdrake doesn't seem to do the job, even in "-- expert" mode.

Thanks in advance for any help.

ps: part of this message appears on the distro forum but I decided to put it here because it may be a more proper forum and also, I posted it as a following to my original problem which seems to be a bad idea judging from the amount of answers.
 
Old 06-23-2003, 04:16 PM   #2
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696

Rep: Reputation: 232Reputation: 232Reputation: 232
Delete all in /tmp and try again. It may be that one or two files were lost on reboot (e2fsck can't help with such case), probably with X settings. When you delete /tmp, X should start from the beginning.

I highly recommend an upgrade to ext3.
 
Old 06-23-2003, 04:29 PM   #3
Proud
Senior Member
 
Registered: Dec 2002
Location: England
Distribution: Used to use Mandrake/Mandriva
Posts: 2,794

Rep: Reputation: 116Reputation: 116
From what I understand, this took a while to fix because linux apps normally keep track of their status via lock files. Eg if the file exists there's an instance of the app running.
The trouble is when you suddenly kill the power the apps dont have a chance to delete the lock files etc, so next time your vital apps try to start they think there's another instance of them already running, and most will quit out as more than once instance will cause conflicts as they both try and use one system.
Deleting the temporary files should fix this.
An ext3 or ReiserFS partition has a small journal or list of previous file actions, which means in the event of a crash or power loss you can roll back some of the last file changes which often solves many problems.
 
Old 06-23-2003, 11:37 PM   #4
biner
LQ Newbie
 
Registered: Jun 2003
Posts: 8

Original Poster
Rep: Reputation: 0
Okay,

Thanks for the help but I will need more I'm afraid.

I'm not sure I understand (in fact I'm pretty sure of the rest). I know that whatever e2fsk did, it got rid of the flickering. The only problem remaining is that X doesn't work anymore.

I erased everything in the /tmp directory, even the files and directories starting with ".". I used XFdrake after that and it complained again, while "Starting X Font Server" was written on the top of my screen that it "can't read lock file /tmp/.X9-lock". I tried to make a phony file with "touch /tmp/.X9-lock" but I got the same message from XFdrake and after it fails the /tmp directory is empty.

I'm open to any help....

Thanks!
 
Old 06-24-2003, 05:08 PM   #5
Proud
Senior Member
 
Registered: Dec 2002
Location: England
Distribution: Used to use Mandrake/Mandriva
Posts: 2,794

Rep: Reputation: 116Reputation: 116
Try forcing the uninstall and reinstall of the XFree86 package without dealing with dependancies. This should just refresh and reset your X server setup, but I dont promise it'll fix things or not make it worse. Think of this as a plan B.
 
Old 06-24-2003, 10:04 PM   #6
lectraplayer
Member
 
Registered: Mar 2003
Location: a little west of Birmingham, AL, USA.
Distribution: Porteus 3.1
Posts: 934

Rep: Reputation: 32
What package is X? I'm gonna try to uninstall and reinstall it on my laptop. I'm having trouble with it too. I installed it on another machine then moved the disk, so it's set up for hardware on anoter machine.
 
Old 06-25-2003, 02:37 PM   #7
Proud
Senior Member
 
Registered: Dec 2002
Location: England
Distribution: Used to use Mandrake/Mandriva
Posts: 2,794

Rep: Reputation: 116Reputation: 116
You moved the hard drive to different hardware? I suggest a full reinstall in that case.
Use the graphical uninstaller to search for the X package name, but the command line to force the removal and reinstall.
 
Old 06-25-2003, 05:19 PM   #8
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696

Rep: Reputation: 232Reputation: 232Reputation: 232
Quote:
Originally posted by lectraplayer
What package is X? I'm gonna try to uninstall and reinstall it on my laptop. I'm having trouble with it too. I installed it on another machine then moved the disk, so it's set up for hardware on anoter machine.
XFree is in a set of RPMS. Their names begin with XFree (there are also fonts among them, you don't need to reinstall them). The most important package is XFree86-server*
 
Old 06-25-2003, 08:54 PM   #9
lectraplayer
Member
 
Registered: Mar 2003
Location: a little west of Birmingham, AL, USA.
Distribution: Porteus 3.1
Posts: 934

Rep: Reputation: 32
Quote:
Originally posted by Proud
You moved the hard drive to different hardware? I suggest a full reinstall in that case.
Use the graphical uninstaller to search for the X package name, but the command line to force the removal and reinstall.
Problem: I have no CD-ROM drive in this system and my boot disks don't support my ethernet card. That's the only option I've found in this situation. Will try it again though. My floppy may be bad now though.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Mandrake 10.1 problem AciDusT Linux - Newbie 1 03-09-2005 05:33 PM
Problem with Soundcard-Worked good with Redhat.Problem with Mandrake invinciblemk Linux - Newbie 1 02-27-2004 06:02 AM
Mandrake problem ShadowStorm Linux - Newbie 8 10-31-2003 12:10 AM
Mandrake 9.1 Problem Sharkannon Linux - Software 0 04-19-2003 01:29 PM
Mandrake 8.1 Problem Daniel(0_0) Linux - Newbie 7 01-25-2002 08:22 PM

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

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