Protection from the dreaded "rm -fr /"

Michael Reifenberger mike at Reifenberger.com
Sat Oct 2 12:16:28 PDT 2004


On Sat, 2 Oct 2004, Giorgos Keramidas wrote:
...
>> Exactly. Who would expect `rm -rf /` to actually succeed? It's not only
>> dangerous, it doesn't work in a useful way ;-)
>>
>> If one is thinking about `rm -rf /`, `newfs` is probably the right
>> answer.
>
...

newfs only works if the root is not mounted because otherwise the device is 
locked. (Hmm is GEOM too anti foot shooting? But can't you reenable foot-shooting 
via sysctl?) whereas `rm -rf /` works allwsys
:-)

Anyway. Check your karma.
I've managed to remove large parts of my (and other) various systems several 
times. Every time this happend I where not concentrated or felt in dangerous 
safety.
Once you realize that there is no seatbelt, you make less errors and have better 
backups.

But many thanks to try to make FreeBSD and its operators better!

Bye/2
---
Michael Reifenberger, Business Development Manager SAP-Basis, Plaut Consulting
Comp: Michael.Reifenberger at plaut.de | Priv: Michael at Reifenberger.com
       http://www.plaut.de           |       http://www.Reifenberger.com



More information about the freebsd-hackers mailing list