SlackwareThis Forum is for the discussion of Slackware Linux.
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.
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.
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.
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
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.
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.
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)
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.)
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.
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 =]
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.
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...
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.