Hack and / - When Disaster Strikes: Attack of the rm Command

 in
Can the rm -rf / command ever be tamed? Learn how to pick up the pieces when rm runs rampant on your filesystem.
______________________

Kyle Rankin is a director of engineering operations in the San Francisco Bay Area, the author of a number of books including DevOps Troubleshooting and The Official Ubuntu Server Book, and is a columnist for Linux Journal.

Comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

Great article... I used photorec to recover files

Shannon VanWagner's picture

Great article, Thanks!

I had a user that deleted some files because he used 'rm -rf stuff *.' instead of 'rm -rf stuff/*'.

So the solution I used to get back his files was the program call photorec from http://www.cgsecurity.org/wiki/PhotoRec

The recovery took a long time and the recovered file names were randomized but we were able to get back the most important files.

Shannon VanWagner
humans enabled

Geek Guide
The DevOps Toolbox

Tools and Technologies for Scale and Reliability
by Linux Journal Editor Bill Childers

Get your free copy today

Sponsored by IBM

Upcoming Webinar
8 Signs You're Beyond Cron

Scheduling Crontabs With an Enterprise Scheduler
11am CDT, April 29th
Moderated by Linux Journal Contributor Mike Diehl

Sign up now

Sponsored by Skybot