Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Slackware This Forum is for the discussion of Slackware Linux.


  Search this Thread
Old 11-01-2005, 08:39 PM   #1
Registered: Oct 2005
Location: Nanaimo, BC. ~CANADA~
Posts: 70

Rep: Reputation: 15
Deleted the wrong folders


I am a newb to Linux/Slackware and to prove so I deleted two rather important folders.

In a complete newb fashion I dove head first into "the unknown".

While I was 'playing' around with installing programs I inadvertanly decided that since a program was not going in properly I would delete it.

Now I was NOT logged in as root, however I was using root terminal (same thing I guess huh ). Anyway logged in as thanotos, and under 'my desktop' I was in a folder I created called downloads.

Inside 'downloads' there were two folders created when I un-tar'd the program: /usr and /opt.

I tried to delete those, or thought that I did, resulting some how in NOT touching the ones in the 'download' folder but the folders of equal name under ROOT.

So, now I cannot load any XWindow aps, BASH apps or any other programs associated within /usr and /opt folders.

My question now is: Is it possible to copy the /usr and /opt folder from the Slackware 10.2 into ROOT (and how)? Or would it be easier to just reinstall?

I am dual booting Slackware 10.2, Linux 2.4.31 Kernel with Windows XP on a seperate HDD.

Appreciating any suggestions or comments that come across and am not afraid to learn, unfortunately sometimes I learn too slow.
Old 11-01-2005, 09:08 PM   #2
LQ Newbie
Registered: Mar 2004
Location: Boise, ID
Distribution: Fedora
Posts: 3

Rep: Reputation: 0
reinstall because...

Apps or libs in the directories you deleted may need particular libraries installed elsewhere on the system. Restoring /usr or /opt from another distro will NOT likely be compatible or find all the libs and link and paths the apps expect. I would definately just reinstall. Back up your personal data first!

Old 11-01-2005, 09:56 PM   #3
Senior Member
Registered: Nov 2002
Location: Stockton, CA
Distribution: Slackware 11 - kernel - Dropline Gnome 2.16.2
Posts: 1,132

Rep: Reputation: 50
I recently had a similar thing occur.


You will be glad you did.
Old 11-02-2005, 10:48 AM   #4
Registered: Dec 2002
Distribution: Slackware
Posts: 927

Rep: Reputation: 30
ouch - a good example of the danger of running as root

I'd say a reinstall would be the easiest route at this point - if you have data on the disk you want to save, you may be able to retreive it using a live cd, something like Knoppix may be the simplest solution.

good luck


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 the wrong folders Thanotos Linux - Newbie 8 11-07-2005 08:30 AM
Folders unable to be deleted? Waerner Linux - Newbie 7 05-27-2005 07:59 PM
deleted linux partition adn the boot loader was deleted also,now i have only gnu grub boris199 Linux - Laptop and Netbook 2 01-29-2005 05:53 PM
retriving deleted files and folders nayabingi Linux - General 2 09-27-2004 11:26 AM
Up %$## creek, deleted wrong files. Passive Linux - Software 2 07-21-2004 03:54 PM > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 08:45 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration