Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
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 did something very stupid
in an EXT3 system, I entered this command:
#rm -vf /
So, the /boot folder was deleted (I already installed the kernel, boot images... back from RPMs)
My doubt is this folder:
/dev/cciss
I am sure a some files from /dev/ were deleted
If I reboot again, will my machine boot?
This is a file server, $2000 monthly are generated from this http web page, and what I wanted to type was rm -vf ./
Distribution: The ones that come in magazines and books.
Posts: 136
Rep:
lol.
What you did is premanent. Nothing to my knowledge can be done after that command. If you have a recovery program for Linux, you might be able to recover some of it if it has been written over again. That's about all I know, though.
Let me know what happens and if you get a resolution, I like to learn anywhere I can.
Brandon
p.s. I'm only laughing because I've done dumb shit too. You're not alone. No hard feelings.
Last edited by Robert Diggs; 12-18-2006 at 02:47 PM.
If you are using a distribution that has udev hot plug scripts not to worry. The /dev directory entries are created on boot. The cciss directory is the directory that points to your disk drives and should be created when you boot. You can also look in the lost+found directory and see if they are there.
so it was a big mistake
I'm using Red Hat Enterprise 3, and this server is very important for my business, I have apache+mysql there and I fear that after a reboot, it will not boot again
I assume you have a backup of this machine. So at this point, try to backup the live data (i.e. data that has changed since your last backup), such as the web pages, database contents, or whatever you use.
Shortly after that, you'll have to reboot. Then, either,
- you're missing a few static files only (like /boot, /dev, ...) -> boot to a live CD and restore them from your backup
- nothing works anymore -> restore your backup (or a backup of a similar machine) and then restore your live data you've just backed up.
Pay attention to the downtime, if that's important. Do you have a running backup machine?
If you don't have a suitable backup, you'll have to reinstall from scratch, reconfigure and then restore your live data.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.