How to destroy a filesystem
posted Nov 9th 2008 4:00pm by Eliot Phillipsfiled under: android hacks, g1 hacks, pcs hacks, security hacks

The G1 ‘execute every command you type‘ bug naturally spawned ‘rm -rf /’ jokes. rm is the Linux command for deleting files. The -r and -f flags will cause it to remove files recursively and ignore confirmation. Executed as root it will annihilate the entire filesystem. Won’t it? [Jon Hohle] decided to test exactly how destructive the command was to *nix systems. How functional would the system be afterwards? He tested it side by side with the Windows equivalent, both ‘format c:’ and ‘del /F /S /Q’. He wanted to see what protections were available and what would be left working. Linux ended up completely broken while Windows, thanks to file locking, actually shutdown cleanly… and never came back. Some OSes, like Solaris, refuse to run the command ‘rm -rf /’ to prevent accidents.

i did that in operating systems unix2 at my college
so much fun watching stuff crash and burn lol
Posted at 4:11 pm on Nov 9th, 2008 by poisomike87