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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
|
05-19-2015, 03:48 AM
|
#1
|
Member
Registered: Apr 2015
Posts: 110
Rep: 
|
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 ?
|
|
|
05-19-2015, 03:55 AM
|
#2
|
Senior Member
Registered: Jan 2007
Location: Wild West Wales, UK
Distribution: Linux Mint 22 MATE, Peppermint OS-Devuan, EndeavourOS, antiX
Posts: 4,359
|
|
|
|
05-19-2015, 03:57 AM
|
#3
|
LQ Newbie
Registered: May 2015
Location: France
Distribution: Debian 7/8, Raspbian, Redhat 6/7
Posts: 4
Rep: 
|
You can run a livecd, mount your hard drive, backup your important data (on an external hard drive or usb storage) and reinstall Linux.
|
|
|
05-19-2015, 04:03 AM
|
#4
|
LQ Addict
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 24,263
|
I think a simple reboot would be enough
|
|
|
05-19-2015, 04:12 AM
|
#5
|
LQ Veteran
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,385
|
Quote:
Originally Posted by esraam
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.
|
05-19-2015, 04:23 AM
|
#6
|
Member
Registered: Apr 2015
Posts: 110
Original Poster
Rep: 
|
Quote:
Originally Posted by beachboy2
|
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.
|
|
|
05-19-2015, 04:27 AM
|
#7
|
Member
Registered: Apr 2015
Posts: 110
Original Poster
Rep: 
|
Quote:
Originally Posted by syg00
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 ?
|
|
|
05-19-2015, 04:31 AM
|
#8
|
Member
Registered: Apr 2015
Posts: 110
Original Poster
Rep: 
|
Quote:
Originally Posted by pan64
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 ? 
|
|
|
05-19-2015, 06:14 AM
|
#9
|
LQ Addict
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 24,263
|
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
|
|
|
05-19-2015, 06:30 AM
|
#10
|
LQ Guru
Registered: Sep 2011
Location: Upper Hale, Surrey/Hants Border, UK
Distribution: One main distro, & some smaller ones casually.
Posts: 5,872
Rep: 
|
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.
|
|
|
05-19-2015, 06:34 AM
|
#11
|
Member
Registered: Apr 2015
Posts: 110
Original Poster
Rep: 
|
I receive the following message every few seconds :
fcoemon: error 111 connection refused
fcoemon: Failed to connect to lldpad
Can some body help please ?
|
|
|
05-19-2015, 06:37 AM
|
#12
|
Member
Registered: Apr 2015
Posts: 110
Original Poster
Rep: 
|
Quote:
Originally Posted by pan64
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.
|
|
|
05-19-2015, 06:40 AM
|
#13
|
Member
Registered: Apr 2015
Posts: 110
Original Poster
Rep: 
|
Quote:
Originally Posted by fatmac
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 
|
|
|
05-19-2015, 07:23 AM
|
#14
|
Member
Registered: Apr 2015
Posts: 110
Original Poster
Rep: 
|
#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
|
|
|
05-19-2015, 07:28 AM
|
#15
|
LQ Addict
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 24,263
|
mkdir -p /var/run/dbus probably helps
|
|
|
All times are GMT -5. The time now is 04:11 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|