LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 05-19-2015, 03:48 AM   #1
esraam
Member
 
Registered: Apr 2015
Posts: 110

Rep: Reputation: Disabled
Unhappy rm -rf /var/run


I removed my /var/run !!
I am using scientific linux 6.
what shall I do now ?
Can I re-install it and get thing to work back ?
Can some one help ?
P.S : I don't need to re-install linux again I got many important data on the one I was already using and It is urgently needed to get it back to work .
Can Somebody suggest help ?
 
Old 05-19-2015, 03:55 AM   #2
beachboy2
Senior Member
 
Registered: Jan 2007
Location: Wild West Wales, UK
Distribution: Linux Mint 21 MATE, EndeavourOS, antiX, MX Linux
Posts: 3,954
Blog Entries: 32

Rep: Reputation: 1463Reputation: 1463Reputation: 1463Reputation: 1463Reputation: 1463Reputation: 1463Reputation: 1463Reputation: 1463Reputation: 1463Reputation: 1463
esraam,

Some suggestions here:

http://superuser.com/questions/90114...-run-on-debian
 
Old 05-19-2015, 03:57 AM   #3
Danelectro
LQ Newbie
 
Registered: May 2015
Location: France
Distribution: Debian 7/8, Raspbian, Redhat 6/7
Posts: 4

Rep: Reputation: Disabled
You can run a livecd, mount your hard drive, backup your important data (on an external hard drive or usb storage) and reinstall Linux.
 
Old 05-19-2015, 04:03 AM   #4
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,692

Rep: Reputation: 7275Reputation: 7275Reputation: 7275Reputation: 7275Reputation: 7275Reputation: 7275Reputation: 7275Reputation: 7275Reputation: 7275Reputation: 7275Reputation: 7275
I think a simple reboot would be enough
 
Old 05-19-2015, 04:12 AM   #5
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,103

Rep: Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117
Quote:
Originally Posted by esraam View Post
I got many important data on the one I was already using and It is urgently needed to get it back to work .
Can't have been too important if you do commands like that without a backup.

No sympathy.
 
2 members found this post helpful.
Old 05-19-2015, 04:23 AM   #6
esraam
Member
 
Registered: Apr 2015
Posts: 110

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by beachboy2 View Post
yea , I have seen that thread before I posted my question
I tried :
#dpkg -S /var/run
and got :
-bash : dpkg: command not found

may be dpkg is a command for debian and not for scientific linux ?
Do you know the equivalent command in scientific linux ?


I also tried
#sudo mkdir /var/run
#sudo atd

they run successfully ,
but when i try other commands depend on /var/log directory I get permission denied
and the directories required are not found

#hald --verbos=yes --daemon=no

gives error :
Failed to connect to socket /var/run/dbus/system_bus_socket : No such file or directory

#mkdir /var/run/dbus/system_bus_socket
gives :
mkdir: cannot create directory '/var/run/dbus/system_bus_socket'

So what do you think ?

Last edited by esraam; 05-19-2015 at 04:25 AM.
 
Old 05-19-2015, 04:27 AM   #7
esraam
Member
 
Registered: Apr 2015
Posts: 110

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by syg00 View Post
Can't have been too important if you do commands like that without a backup.

No sympathy.
how to get a backup ?
too late ?
You think there is no hope to get things to work ?
 
Old 05-19-2015, 04:31 AM   #8
esraam
Member
 
Registered: Apr 2015
Posts: 110

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by pan64 View Post
I think a simple reboot would be enough
I rebooted the PC ...
It takes very long time logging then it opens the terminal ( I wanted to have level 3 reboot )
The problem is I can't get the keyboard and mouse to work on using the GUI ...!
because of haldaemon failure problem which I may think related to the deleted directory ..
If i can get haldaemon to start ,, and get the mouse and keyboard to work on the GUI then everything would be fine enough..

Can you help ?
 
Old 05-19-2015, 06:14 AM   #9
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,692

Rep: Reputation: 7275Reputation: 7275Reputation: 7275Reputation: 7275Reputation: 7275Reputation: 7275Reputation: 7275Reputation: 7275Reputation: 7275Reputation: 7275Reputation: 7275
I still think the reboot should repair that directory. There should be something else too.
probably you will find some related info using dmesg or in /var/log/messages
 
Old 05-19-2015, 06:30 AM   #10
fatmac
LQ Guru
 
Registered: Sep 2011
Location: Upper Hale, Surrey/Hants Border, UK
Distribution: Mainly Devuan with some Tiny Core, Fatdog, Haiku, & BSD thrown in.
Posts: 5,444

Rep: Reputation: Disabled
Before you go any further, it might be a good idea to search their forum.
http://scientificlinuxforum.org/

Edit: Your GUI may rely on hald & dbus, likely you can start them from the command line like in other distros.

Last edited by fatmac; 05-19-2015 at 06:33 AM.
 
Old 05-19-2015, 06:34 AM   #11
esraam
Member
 
Registered: Apr 2015
Posts: 110

Original Poster
Rep: Reputation: Disabled
I receive the following message every few seconds :

fcoemon: error 111 connection refused
fcoemon: Failed to connect to lldpad


Can some body help please ?
 
Old 05-19-2015, 06:37 AM   #12
esraam
Member
 
Registered: Apr 2015
Posts: 110

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by pan64 View Post
I still think the reboot should repair that directory. There should be something else too.
probably you will find some related info using dmesg or in /var/log/messages
#dmesg :
gives a huge number of output lines .... how can that help ?

#nano /var/log/messages :
gives an empty file


I rebooted my Pc and now i get :
I receive the following message every few seconds :

fcoemon: error 111 connection refused
fcoemon: Failed to connect to lldpad


so What do you think I shall do ?

Last edited by esraam; 05-19-2015 at 06:41 AM.
 
Old 05-19-2015, 06:40 AM   #13
esraam
Member
 
Registered: Apr 2015
Posts: 110

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by fatmac View Post
Before you go any further, it might be a good idea to search their forum.
http://scientificlinuxforum.org/

Edit: Your GUI may rely on hald & dbus, likely you can start them from the command line like in other distros.
#service haldaemon start

gives :
starting haldaemon [FAILED]

how can I start it ?
how to use dbus ??

thanks for your help
 
Old 05-19-2015, 07:23 AM   #14
esraam
Member
 
Registered: Apr 2015
Posts: 110

Original Poster
Rep: Reputation: Disabled
#hald --verbos=yes --daemon=no

gives error :
Failed to connect to socket /var/run/dbus/system_bus_socket : No such file or directory


Does anybody have any idea how to solve this error ?

given that on trying to create the missing directory using :

#mkdir /var/run/dbus/system_bus_socket

gives
mkdir : cannot create directory /var/run/dbus/system_bus_socket : No such file or directory
 
Old 05-19-2015, 07:28 AM   #15
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,692

Rep: Reputation: 7275Reputation: 7275Reputation: 7275Reputation: 7275Reputation: 7275Reputation: 7275Reputation: 7275Reputation: 7275Reputation: 7275Reputation: 7275Reputation: 7275
mkdir -p /var/run/dbus probably helps
 
  


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
[SOLVED] Separate /run and /var/run j_v Slackware 9 11-08-2014 11:45 AM
/var/log/wtmp vs. /var/run/utmp masenko703 Linux - Newbie 4 10-05-2012 03:41 AM
sshd trojan? keys / passwds written in /var/run.defunct, /etc/httpd/run/.defunct raymor Linux - Security 8 08-11-2011 11:25 AM
i chmodded /var/run R03L Fedora 2 08-03-2009 04:06 AM
rm cannot remove /var/run/atd.pid and /var/run/xdm.pid danishmr Linux - Software 1 05-04-2004 08:01 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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