LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 05-19-2004, 01:22 PM   #1
Linucec
LQ Newbie
 
Registered: May 2004
Distribution: Mandrake, Ubuntu, DSL
Posts: 8

Rep: Reputation: 0
Exclamation Erased files by mistake


I made a mistake and erased some of the /usr and /var files, and now kde wont start.
Im using Mandrake 9.1.
Can anybody help me with this problem Im a new Linux user.
I get messages like the following:

* xfs startup failed
* apmd startup failed
* crond: crond startupfailed
* localhost partmon:touch:cannot touch /var/lock/subsys/partmon:
no such file or directory
* bash: tty: command not found
* bash: dircolors:command not found
* Locale: Cannot set LC_CTYPE to default locale: no such file or directory
 
Old 05-19-2004, 01:41 PM   #2
laceupboots
Member
 
Registered: Dec 2003
Location: Houston
Distribution: Knoppix,lenova yoga 3, Samsung s6 -android
Posts: 307

Rep: Reputation: 30
http://www.mandrakeuser.org/docs/mdo...-recovery.html
 
Old 05-19-2004, 08:33 PM   #3
zakaluka
Member
 
Registered: Oct 2003
Posts: 58

Rep: Reputation: 15
Linucec,

Take a look at http://e2undel.sourceforge.net/. I've used it before with success. However, try to limit your disk activity, since you don't want the disk blocks being used by those files to be taken up by other files.

Regards,

zakaluka
 
Old 05-19-2004, 11:18 PM   #4
Frank_Drebin
Member
 
Registered: Feb 2004
Location: Atlanta, GA USA
Posts: 232

Rep: Reputation: 30
Can you get in to KDE as root?
Do you have a separate partition for your /home?

If you can get in to kde as root, the local user files are the only ones that are hosed.
You can create a new user, chown all the files you need and move them to your current user's folders.
 
Old 05-19-2004, 11:19 PM   #5
Frank_Drebin
Member
 
Registered: Feb 2004
Location: Atlanta, GA USA
Posts: 232

Rep: Reputation: 30
Can you get in to KDE as root?
Do you have a separate partition for your /home?

If you can get in to kde as root, the local user files are the only ones that are hosed.
You can create a new user, chown all the files you need and move them to your current user's folders.


If all else fails and you have a separate /home partition, throw the MD disk in and let it "upgrade" your system. That should fix any problems.
 
Old 05-21-2004, 08:12 PM   #6
Linucec
LQ Newbie
 
Registered: May 2004
Distribution: Mandrake, Ubuntu, DSL
Posts: 8

Original Poster
Rep: Reputation: 0
Exclamation Wont start

The kde interface just wont load.
I just read that the /usr contains the files needed for the X server to start.
I messed up this directory as well as the /var directory and lost the Linux graphical interface. I cannot get into kde as root neither as a regular user.
I guess what I should do is just copy back the erased files. (use one of those recovery programs)
I also tried updating my MD 9.1 to 10.0 but the setup constantly warned me:
Could not copy file "x" right now i dont remember which files.
I guess Ill have to re-install the OS.
Thanks for your reply anyway.
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Well, i erased the nobody acount... NCC-1701&NCC-1701-D Linux - Software 5 09-14-2005 02:13 PM
bookmarks erased habala Linux - General 3 01-29-2005 10:13 PM
External hd keeps getting erased. Schopenhauer101 Linux - Hardware 1 01-15-2005 06:23 PM
Help! Have I Erased My Bios? ixus_123 Linux - Newbie 5 04-11-2004 07:02 PM
Need helpThis script erased a bunch of my files HELP VisionZ Linux - Newbie 12 03-25-2004 10:02 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 07:50 PM.

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