LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 06-23-2003, 01:13 PM   #1
shadow.blue
Member
 
Registered: Jan 2003
Distribution: gentoo (2.6.5-gentoo)
Posts: 73

Rep: Reputation: 15
Angry HELP! call me an idiot, i deleted /usr/X11R6/bni


HI Guys,

I still can`t believe this was happening.

I was just about cleaning up my system because of
lack of free space, and I wanted to check the size
of my bin directory in /usr/X11R6.

But instead of doing an du -shx bin I simply did a real
nice rm -r bin... and the job was done

Well, It was already too late when I noticed my fatal
error, I guess I need more coffee... or maybe less... whatever.


My question is if there is any way to make this rm -r not happened to get my binaries back, or what can I do?

I fear to reboot and I don`t know what to do at all now

HELP!

-shad
 
Old 06-23-2003, 01:32 PM   #2
contrasutra
LQ Guru
 
Registered: Mar 2003
Location: New Jersey
Distribution: Arch Linux
Posts: 1,445

Rep: Reputation: 47
Nope, they are gone. There's no "Recycle Bin" when doing this.

My suggestion for next time, create an alias that makes the "rm" command move to some folder like ~/.trash . So you create your own recycle bin.


Umm....yeah, they're gona. I guess you should reinstall. Sorry, cant think of any other way.
 
Old 06-23-2003, 02:03 PM   #3
rmartine
Member
 
Registered: Dec 2002
Location: San Luis Obispo, CA
Distribution: Fedora Core 3
Posts: 618

Rep: Reputation: 30
Just reinstall Xfree if that's all you wacked. Kde Gnome go in other places so they should be independent of whatever X "lower abstraction" program you use.

Mental note about running as root.....
 
Old 06-23-2003, 02:10 PM   #4
rmartine
Member
 
Registered: Dec 2002
Location: San Luis Obispo, CA
Distribution: Fedora Core 3
Posts: 618

Rep: Reputation: 30
I was also just thinking... you should be able to find that actual directory gziped somewhere on the net assuming you only wacked the .../X11R6/bin directory.

I once deleted something similar and managed to get it back. Some other poor soul did the same thing I did and to back it up he gziped lots of his directories and stored them on the web.

I thought that was funny.
 
Old 06-23-2003, 02:28 PM   #5
rmartine
Member
 
Registered: Dec 2002
Location: San Luis Obispo, CA
Distribution: Fedora Core 3
Posts: 618

Rep: Reputation: 30
Oooh Oooh!!! I thought of another one.

Download the source the whatever version of XFree you're using and recomile and install it back to where is was.

Or... Install it somewhere safe (ie. /home/myaccount/thissucks/ so you don't go blasting anymore directories. Then move the /safeplace/X11R6/bin directory back to where is belongs. Just make sure you fix the symlinks that live in there. There are only a couple.

I've never seen anything link to the bin directory so you might be able to just move it. hehe

Good Luck
 
Old 06-23-2003, 04:13 PM   #6
shadow.blue
Member
 
Registered: Jan 2003
Distribution: gentoo (2.6.5-gentoo)
Posts: 73

Original Poster
Rep: Reputation: 15
Is there a possibility to just recompile the bin directory of xfree?

I have only dialup connection, dont want to get the whole lot of files I dont really need...
 
Old 06-23-2003, 04:30 PM   #7
contrasutra
LQ Guru
 
Registered: Mar 2003
Location: New Jersey
Distribution: Arch Linux
Posts: 1,445

Rep: Reputation: 47
Just reinstall X from the Slackware disc. Its like an 8MB file if you want to download it, but compiling X if a very long drawn process.
 
Old 06-23-2003, 04:40 PM   #8
shadow.blue
Member
 
Registered: Jan 2003
Distribution: gentoo (2.6.5-gentoo)
Posts: 73

Original Poster
Rep: Reputation: 15
hmm... I really dont know if I shouldn`t go and see the doc.

Either I get some more sleep, or I will get myself killed.

You know... well.

I was such a troll and was that much angry about my incompetence that I didnt notice that I didnt actually deleted /usr/X11R6/bin... it was much worse, it was --> /usr/bin <--

well, now I guess I am a total idiot as well as totally screwed :X`

I noticed it when I went to xfree86.org and downloaded the binaries. When I tried to copy it to the bin file, i noticed first that they were all there... first I was really happy about that "miracle"... but I know I deleted some bin directory... and it didnt take much time to find out it was /usr/bin.

That was my end.

HELP

Well, I pretty much guess now I am really in a bad position, because all the programs have been installed there.

Any suggestions now?

PS: Sorry for misleading all of you. I am just a total mess after this incident...
 
Old 06-23-2003, 05:23 PM   #9
cuckoopint
Member
 
Registered: Feb 2003
Distribution: Debian
Posts: 797

Rep: Reputation: 30
Lesson #1.
Back-ups are your buddies.

Lesson #2.
Depending on what fs type you have, you can sometimes "undelete" a missing inode.

Lesson #3.
We're not talking about a couple inodes. This is /usr/bin. Unless you are really bored and like picking up sand, one seed at a time, its time to make a backup and reinstall.

:/
 
Old 06-23-2003, 05:39 PM   #10
shadow.blue
Member
 
Registered: Jan 2003
Distribution: gentoo (2.6.5-gentoo)
Posts: 73

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by cuckoopint
Lesson #3.
We're not talking about a couple inodes. This is /usr/bin. Unless you are really bored and like picking up sand, one seed at a time, its time to make a backup and reinstall.

:/ [/B]
Well... this is what I am up to right now *sigh*

Backing up the whole wide world and make a new cut.

well, this is going to last some time till the system is up again like I had it right now
 
Old 06-23-2003, 05:51 PM   #11
rmartine
Member
 
Registered: Dec 2002
Location: San Luis Obispo, CA
Distribution: Fedora Core 3
Posts: 618

Rep: Reputation: 30
Hmmm. /usr/bin/

Anyone out there know what files reside in /usr/bin? For RedHat you'd be completely screwed, "sort of", becuase kde lives in /usr/bin.

Like I said above, search the net. There will probably be a directory listing of a stock Slackware install and you might be able to pull a tar.gz file from it.
 
Old 06-23-2003, 05:56 PM   #12
contrasutra
LQ Guru
 
Registered: Mar 2003
Location: New Jersey
Distribution: Arch Linux
Posts: 1,445

Rep: Reputation: 47
/usr/bin contains most of the binaries for the system. You've probobly lost some system files and other stuff you installed, no tarball on the net is going to have that.


Make sure you back up your xf86config file, in case its highly customized, and your preference files. They are usually in your home directory, hidden (with a period in front of them). So you may have to unhide files to be able to burn them to a disc.
 
Old 06-24-2003, 12:15 AM   #13
cuckoopint
Member
 
Registered: Feb 2003
Distribution: Debian
Posts: 797

Rep: Reputation: 30
Can I add a Lesson #4?

If you had /home in a seperate partition, you wouldn't need to be backing it all up now... and it would prolly be easier keeping /usr on a seperate partition as well.

At the minimum back up your data and any worthy configs.
 
Old 06-24-2003, 04:53 AM   #14
shadow.blue
Member
 
Registered: Jan 2003
Distribution: gentoo (2.6.5-gentoo)
Posts: 73

Original Poster
Rep: Reputation: 15
I am still backing up

Well, right now I got my home directory containing all hidden files, some config files from /etc (including XF86config), my download directory, what else do I need where prefs are stored?

... this is going to be a loooooong night ...
 
Old 06-24-2003, 10:46 AM   #15
contrasutra
LQ Guru
 
Registered: Mar 2003
Location: New Jersey
Distribution: Arch Linux
Posts: 1,445

Rep: Reputation: 47
preferences are stored either in home (as hidden) or in /etc. You sound like you got them all, just reinstall and hope for the best.

Dont forget your LILO config if you're dual booting, since Slackware wont add windows automatically, it can save you some time just to replace the config with your old working one.
 
  


Reply



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
I'm an idiot... erased /usr/bin zdavis Linux - Software 1 03-12-2005 07:52 AM
How do I get /usr/X11R6/xhost to run when I log into GNOME? netstv Linux - General 0 06-09-2004 10:53 AM
Is cp of /usr/X11R6 causing problem? arlene Linux - Newbie 4 04-07-2004 09:30 AM
dependency - /usr/X11R6/bin/xauth ?? init-5 Linux - Software 1 09-16-2003 07:36 AM
Why /usr/X11R6 before /usr/local? Griffon26 Linux - Software 2 07-18-2002 06:46 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

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