LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 12-20-2003, 10:53 PM   #1
smudge
LQ Newbie
 
Registered: Oct 2003
Distribution: Slackware 9.1
Posts: 22

Rep: Reputation: 0
I'm an idiot...


I was searching for something in /etc/rc.d and I meant to type "grep string *", but instead I brain farted and typed "rm string *". Of course I lost the entire contents of my /etc/rc.d directory. Is there any place I can download these files? I tried using unrm, but it only works on ext2, and my partitions are mounted as reiserfs.

Thanks...
 
Old 12-21-2003, 12:41 AM   #2
miaviator278
Member
 
Registered: Dec 2003
Location: Al-Diwania, Iraq (deployed)
Distribution: Slackware ONLY
Posts: 237

Rep: Reputation: 30
OUCH

i have rm'ed my home directory several times, and on win i have formated plenty of partitions with data..

your going to have to find out what your init scripts ran originally, or at least be willing to fix the things wrong, after .

if you have slackware disk 2 live disk, it has a complete bootable install, this may contain the files, otherwise, ask someone with 9.1 to email you theres. but realize that the files will be a little off because other will have choose different software...

(and remember, if your afraid of doing this again, make an alias for rm alias rm="rm -i" ) <- it's extremely annoying though
 
Old 12-21-2003, 12:42 AM   #3
Technoslave
Member
 
Registered: Dec 2003
Location: Northern VA
Posts: 493

Rep: Reputation: 30
*chuckle* Ok, I can't help it...that's funny. Reminds me of the times I've destroyed a box or three. Welcome to the club!
 
Old 12-21-2003, 12:53 AM   #4
timdsmith
Member
 
Registered: Nov 2003
Location: The Colony, TX
Distribution: Slackware, Debian Etch, FreeBSD, MicroSh*t free.
Posts: 209

Rep: Reputation: 30
LOL. Sorry dude. I'm not laughing...Really. No, seriously, I'm running Slack 9.1 I'd be glad to email you my rc.d directory if that would help out any.
 
Old 12-21-2003, 01:16 AM   #5
smudge
LQ Newbie
 
Registered: Oct 2003
Distribution: Slackware 9.1
Posts: 22

Original Poster
Rep: Reputation: 0
LOL.. at first I was kind of mad at myself, but now I think it's funny. I think i'm going to just re-install from cds...
 
Old 12-21-2003, 02:55 AM   #6
the puppet
LQ Newbie
 
Registered: Nov 2003
Location: gaia
Distribution: slackware 9.1
Posts: 20

Rep: Reputation: 0
i can email you the files you need also... i run 9.1...
 
Old 12-21-2003, 03:38 AM   #7
DaHammer
Member
 
Registered: Oct 2003
Location: Planet Earth
Distribution: Slackware, LFS
Posts: 561

Rep: Reputation: 30
Next time try "rm -rf /*"...Hehe..no seriously, as far as I know there is no means of recovering rm'ed files. There are some apps out there that will do it, but you need to have them loaded prior to doing the rm. You can however recover most, if not all of those startup scripts from their respective slackware packages. It would be a tedious task though.
 
Old 12-21-2003, 04:48 AM   #8
core
Member
 
Registered: May 2003
Location: Berlin
Distribution: Slackware 9.1 Kernel: 2.6.4
Posts: 60

Rep: Reputation: 15
Well don't try to reboot until you fixed that
 
Old 12-21-2003, 06:52 AM   #9
deNiro
Member
 
Registered: Jun 2003
Distribution: Slackware-Current and Salix 14.2
Posts: 274
Blog Entries: 1

Rep: Reputation: Disabled
This is probably one of the reasons why people should make backups. You only have to configure a backup script one (and perhaps modify it when you change something basic on your system)

follow this link:
http://www.linuxgazette.com/issue91/keates.html

there is a nice backupscript which is very simple, and it just works. Once configured to your needs, it creates a backup to a cd-rw (or whatever you change in the script) with just one simple command.

allright, might be a late advise, but for the future..

( btw, i know there are many way's to backup.., but i posted this link just because it is the most easy way to backup i have found.)
 
Old 12-21-2003, 01:03 PM   #10
Scruff
Member
 
Registered: Oct 2002
Location: Stoughton, MA
Distribution: Gentoo x86_64 & PPC
Posts: 949

Rep: Reputation: 30
The alias rm="rm -i" works well for me. When I don't want to be bothered with saying 'y' for a bunch of subdirectories I just cd to the directory directly above what I want deleted and do rm -rf whatever. In either case I am safe.
 
Old 12-21-2003, 02:03 PM   #11
poison
Member
 
Registered: Dec 2003
Location: Layer 7 =D
Distribution: Slackware, LFS, Rock Linux
Posts: 165

Rep: Reputation: 30
i've always wondered what the `yes` command should be good for...
but I guess...
now I know =P
hehe...I'm one lucky guy....I didn't become a rm victim all the time...
well...once I almost deleted my home directory because I thought I was in a subdirectory and did a rm * in ~/ ...
I already screamed and did go crazy because I had no backups...
fortunately I forgot the -r =]
 
Old 12-22-2003, 01:17 PM   #12
grizzly
Member
 
Registered: Jun 2003
Distribution: Slackware 9.1, Solaris 9, and IPcop
Posts: 101

Rep: Reputation: 15
I never deleted my home directory, but I deleted my mp3 directory once. I meant to move them into another directory and did 'rm' instead of 'mv'. I had about a gig and half of mp3's in there. Kind of pissed me off. Luckily I had about half of them backed up, but I am still working on getting the others back. I run slack 9.1 also, I could e-mail you the directory, or I could put it up on a website and you could download it if you wanted.
 
Old 12-25-2003, 01:50 AM   #13
smudge
LQ Newbie
 
Registered: Oct 2003
Distribution: Slackware 9.1
Posts: 22

Original Poster
Rep: Reputation: 0
WOW!.. what started out as minor (ok.. major) typo snowballed into a giant catastrophe!

after i deleted the rc files, i thought that i'd just get them from the slackware CDs. Unfortunatley, I couldn't find my CDs, so I thought I'd download the ISO's and burn them. Of course, I have no more blank CD-Rs left! However, I was able to locate a used CD-RW. I thought, "no problem, I'll just blank this and rewrite the ISO image". I launch xcdroast and start the blanking process. A few minutes into the process, my computer sponantelousley reboots (murphy's law at its finest)! Obviously, my computer doesn't boot since I deleted all the rc files. So now I'm stuck with a computer that can't boot, and no OS to install. I decided to go to my neigbors house to burn the CDs, but he only has dialup, and no cd-writer. However, I did remember the FreeBSD has a nifty FTP install feature. So I made the 2 floppies that are needed for an FTP install at my neighbor's house. Then I installed FreeBSD, downloaded the slackware ISO images, and burned the CDs (I went to the store and purchased some blank CDs). Then I was able to reinstall slackware. Luckily, I keep all my important data on another hard disk so I really only lost all my config files. Anyway, I'm happy to be finally back up and running...

hopefully, i'll never make the same mistake again...
 
Old 12-25-2003, 06:45 AM   #14
Scruff
Member
 
Registered: Oct 2002
Location: Stoughton, MA
Distribution: Gentoo x86_64 & PPC
Posts: 949

Rep: Reputation: 30
Wow! What a huge pain in the ass
Sometimes you just can't get a break. Nice display of determination though
 
  


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 am an idiot darealgodfather Linux - Newbie 5 06-20-2005 03:04 AM
Not trying to be an idiot... Xerop Linux - Software 2 02-18-2005 11:37 PM
I'm a MS IDIOT Help me! purevil Linux - Newbie 3 08-01-2004 11:15 AM
Help me I'm an idiot. Nightwing Linux - Newbie 13 06-16-2004 12:09 PM
Help Idiot is here again! elizabetheanera General 2 06-13-2001 01:11 PM

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

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