LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 12-18-2006, 03:36 PM   #1
xbaez
Member
 
Registered: Mar 2004
Location: USA
Distribution: Ubuntu
Posts: 284

Rep: Reputation: 30
I deleted the /dev/cciss folder!!


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 ./

Regards
Xavier
 
Old 12-18-2006, 03:45 PM   #2
Robert Diggs
Member
 
Registered: Dec 2006
Location: Florida
Distribution: The ones that come in magazines and books.
Posts: 136

Rep: Reputation: 15
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 03:47 PM.
 
Old 12-18-2006, 03:47 PM   #3
uselpa
Senior Member
 
Registered: Oct 2004
Location: Luxemburg
Distribution: Slackware, OS X
Posts: 1,507

Rep: Reputation: 46
I just tried "rm -vf /". It didn't do anything at all, saying that "/" is a directory. Are you sure you didn't type "rm -rf /" ?
 
Old 12-18-2006, 05:25 PM   #4
xjlittle
Member
 
Registered: Aug 2003
Location: Indiana
Distribution: fc6 sles9 & 10 kubuntu ubuntu-server
Posts: 240
Blog Entries: 2

Rep: Reputation: 30
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.
 
Old 12-18-2006, 10:28 PM   #5
xbaez
Member
 
Registered: Mar 2004
Location: USA
Distribution: Ubuntu
Posts: 284

Original Poster
Rep: Reputation: 30
I typed

#rm -rvdfr /

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
 
Old 12-19-2006, 02:32 AM   #6
uselpa
Senior Member
 
Registered: Oct 2004
Location: Luxemburg
Distribution: Slackware, OS X
Posts: 1,507

Rep: Reputation: 46
Yes, quite possible.

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.
 
  


Reply


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
Exclamation point in disk path? (i.e. /dev/cciss!c0d0p3) jchrisos Fedora 0 07-18-2006 12:04 PM
what is /dev/cciss/codop3 Ibrahimbazar Linux - Hardware 1 04-11-2006 03:10 AM
Deleted Folder vkrishn1 Linux - General 3 11-17-2004 11:39 AM
can't deleted a folder! santasballz Linux - Newbie 2 02-22-2004 01:03 AM
Deleted /dev/mouse & /dev/psaux Inspection Linux - General 1 12-11-2002 09:11 PM


All times are GMT -5. The time now is 01:16 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration