LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
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-14-2009, 02:57 AM   #1
sreeharsha.t
Member
 
Registered: Jan 2009
Location: Mumbai, India
Distribution: Fedora 9, 10,11, RHEL 5
Posts: 67

Rep: Reputation: 18
deleted /tmp when X is running, Now gnome isn't starting


Hi all,

I deleted all the contents of the /tmp/ folder while X is running.
rm -R /tmp/*

Now the X is continuously restarting without showing the login screen. Is there any way to fix this?

Thanks.
 
Old 05-14-2009, 03:03 AM   #2
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Linux Mint
Posts: 8,511

Rep: Reputation: 884Reputation: 884Reputation: 884Reputation: 884Reputation: 884Reputation: 884Reputation: 884
kill X completely
press CTRL_ALT_F1
as root
Code:
killall gdm
then restart X
Code:
gdm

Last edited by repo; 05-14-2009 at 03:05 AM.
 
Old 05-14-2009, 03:45 AM   #3
sreeharsha.t
Member
 
Registered: Jan 2009
Location: Mumbai, India
Distribution: Fedora 9, 10,11, RHEL 5
Posts: 67

Original Poster
Rep: Reputation: 18
Hi repo,

I tried killing gdm and then started it.

The X windows started but its restarting again and again without even asking for the login password.

Thanks.
 
Old 05-14-2009, 06:42 AM   #4
sreeharsha.t
Member
 
Registered: Jan 2009
Location: Mumbai, India
Distribution: Fedora 9, 10,11, RHEL 5
Posts: 67

Original Poster
Rep: Reputation: 18
Reinstalling the packages worked.

Hi repo,

I use fedora so I have reinstalled the following software groups using local yum install.
1. 'GNOME Desktop Environment'
2. 'X Window System'

The following steps would be helpful for fedora/redhat users:
0. Boot into runlevel 3. You can do this by pressing any key at the grub startup, then pressing 'e' to edit the kernel parameters and appending the 'kernel ...' line with '3'. So the line looks like
Quote:
kernel ... root=... rhgb quiet 3
1. log in as root and mount your fedora DVD into /mnt/fedora9
Quote:
mount -o loop -o ro /path/to/fedora9.iso /mnt/fedora9
2. Create a local yum repo file 'fedora-local.repo' in /etc/yum.repos.d/ with contents:
Quote:
[fedora-local]
name=Fedora 9 local network
baseurl=/mnt/fedora9/
enabled=1
gpgcheck=0
3. In all the other files in the yum.repos.d folder, for every repo disable it by editing the line 'enabled=1' to 'enabled=-' where ever you find it. (make a note of it for reverting the changes later! if you forget you will have difficulty in figuring out which repos have to be enabled!!)
4. Now uninstall the 'GNOME Desktop Environment' package group.
Quote:
yum groupremove 'GNOME Desktop Environment'
If you use KDE, then you need to uninstall 'KDE (K Desktop Environment)'
Quote:
yum groupremove 'KDE (K Desktop Environment)'
5. Uninstall the 'X Windows System' package group.
Quote:
yum groupremove 'X Windows System'
6. Reinstall GNOME or KDE or both if you wish.
Quote:
yum groupinstall 'GNOME Desktop Environment'
or / and
Quote:
yum groupinstall 'KDE (K Desktop Environment)'
7. Reinstall 'X Windows System'
Quote:
yum groupinstall 'X Windows System'
8. Reboot.

That kicked action into my X system. !! Hopefully, it should work for others too. Anyone using other distro's can also work on something like this.

Life teaches lessons in many ways, so does linux - DONOT DELETE /tmp WHEN USING X WINDOWS!!

Last edited by sreeharsha.t; 11-17-2011 at 11:50 AM.
 
  


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
deleted contents of /tmp dave`2005 Slackware 2 06-22-2007 10:45 PM
Accidentally deleted (rm -rf) /tmp DIR tuesdays-child Fedora 3 03-22-2006 08:26 AM
getting files deleted on /tmp ines Linux - General 13 01-28-2005 03:35 AM
/tmp files being deleted new@linux Linux - Newbie 2 12-30-2004 01:51 PM
tmp directory being deleted jpokrzyk Linux - General 3 10-30-2004 06:42 PM


All times are GMT -5. The time now is 03:53 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration