Slashdot Mirror


Shootout: 'rm -Rf /' vs. 'Format C:'

skyshock21 writes "There's an article over at hohle.net about what actually happens when you type the commands Format C: in windows versus rm -Rf / in Linux. Very interesting results indeed. Myths are busted, and hilarity ensues."

10 of 513 comments (clear)

  1. Go away, you don't exist by Anonymous Coward · · Score: 4, Interesting

    was the message I got after trying to logout of a similarly trashed Debian Woody system.

  2. rm -rf / protection in Solaris by colores · · Score: 3, Interesting

    From: "Solaris 10 has (since build 36) a version of /usr/bin/rm (/bin is a sym-link to /usr/bin on Solaris) and /usr/xpg4/bin/rm which behaves thus: [28] /bin/rm -rf / rm of / is not allowed [29]"

  3. Re:An interesting topic, at last!! by Rosyna · · Score: 3, Interesting

    Whatever the issue is it does prove one thing... Windows' System File Restore doesn't actually work too well. I mean you can easily delete NTLDR.dll and XP won't replace it. And this test shows that windows won't replace dlls if you start deleting things en masse. I know it sounds like common knowledge but some people honestly believe that system restore on Windows is the greatest thing ever and cannot be defeated. Go figure.

  4. Re:Try it with NFS... by ajs · · Score: 4, Interesting

    Along similar lines, a co-worker at one of my recent jobs had installed a machine for one of our remote users. He mounted the file-server's storage array directly in order to create the user's home directory. Unfortunately he did 3 things wrong:

    1. He left the root of the storage array mounted
    2. He left it mounted under /tmp
    3. He left the tmp-cleaning cron job enabled

    When we started to see user file go away (but directories left intact) we thought we were under some kind of attack... we were right in a way ;-)

  5. Re:...vs Magnet vs Tossage by 1nhuman · · Score: 5, Interesting

    Actually a Dutch (national) prosecutor did something similiar a month ago. He thought his HDD failed and put his whole PC with his garbage on the street.

    Unfortunatly a Taxi driver took the PC with him and managed to boot the machine and found an enormous ammount of very confidentinial information on the HDD. Information about some top crime and fraude cases. The Taxi driver then sold this HDD to a dutch TV crime fighter.

    In the end this got the prosecutor fired. Which I think is sort of unreasonable, since the major issue is the justice departments lack of descent security procedure.

    --
    The glass is half-full. With poison. And there are cracks in the glass. The dirty, dirty glass.
  6. ... or errant symlinks by achurch · · Score: 3, Interesting

    Along the same lines, I had at one point a link "~achurch" in my public_html directory, for compatibility after my homepage changed URLs. So (you can guess what comes next, I'm sure) I decided one day, several years later, to clean up my web stuff:

    $ rm -r tmp/ x.html [...] ~achurch/
    rm: override permissions 000 for /home/achurch/.xcdroast? _

    I have no idea why mny .xcdroast was 000, but it saved me a huge amount of frustration. I now place a file "..norm-r", mode 000, in important directories and rename things around to make sure it's always first in the directory file. And I never, ever use -f.

  7. Re:...vs Magnet vs Tossage by Firethorn · · Score: 4, Interesting

    physical destruction is the only authorized destruction method for many classified drives.

    On my base, we sometimes took the drives over to EOD (Explosive Ordinance Disposal). They reportably had a great time.

    --
    I don't read AC A human right
  8. Re:sudo password by surprise_audit · · Score: 3, Interesting

    Sounds like they're finally catching on to Multics-type security from back in the 80s, where you could own a file, have read/write access, and still not be able to touch it if it was created in a different privilege level...

  9. Re:...vs Magnet vs Tossage by LaCosaNostradamus · · Score: 3, Interesting

    Let me see if I understand this ... a Dutch prosecutor put his entire computer out in the trash for anyone to come by and take? Firing's too good for him. Anyone in his position should know security procedures for document handling. Are you sure he didn't break Dutch law?

    --
    [You have a stable society when some nut guns down a schoolyard and the law doesn't change.]
  10. Re:...vs Magnet vs Tossage by ajs318 · · Score: 3, Interesting

    I've always thought that it should be the recipient of a used storage device, howsoever acquired, who should be bound to secrecy in respect of its contents. If their intentions are honest, and all they want to do is store stuff on it, fine. If they want a little peek, well, that's pushing it. But the minute they base a decision on something they discovered there, or communicate it to a third party, they've definitely crossed a line.

    Also, if you don't do a bad block scan {which wipes out any pre-existing data good and proper} on a used hard drive when you create the file system{s} on it, you're just asking for trouble.

    I recommend dd if=/dev/audio of=/dev/hda1 {or whatever; but basically you want to get the raw data coming in from the sound card and write it straight to the disk partition} before passing on a used drive. Crank up the input gains to the max, but don't actually plug anything in ..... let the static and power hum do their job, which is to create entropy. After one overwrite cycle, there is no way the drive can recover the data by itself; specialised techniques are required whose cost is prohibitive and whose reliability is questionable. After two overwrite cycles {with high-enough entropy data}, even they don't work. Anything more than two overwrites is a waste of effort, and resources; there is always an easier way to reconstruct data when just one copy of it has been overwritten magnetically.

    --
    Je fume. Tu fumes. Nous fûmes!