PDA

View Full Version : Having fun destroying my system



RedPandaFox
September 15th, 2008, 11:15 AM
BAH! I want to have fun with this PC before I format it in about an hour to sell.

I tried using
sudo rm -rf and all kinds of similar commands but it wont work! It just takes me to the next line without doing anything, anyone got any suggestions?

frup
September 15th, 2008, 11:16 AM
cd /
sudo rm -rf *

RedPandaFox
September 15th, 2008, 11:17 AM
root@myles-desktop:/home/myles# cd /
root@myles-desktop:/# sudo rm * -rf
rm: cannot remove directory `dev/shm': Device or resource busy
rm: cannot remove `dev/pts/0': Operation not permitted
rm: cannot remove `dev/pts/1': Operation not permitted
rm: cannot remove directory `dev/.static/dev': Device or resource busy
root@myles-desktop:/#

nowin4me
September 15th, 2008, 11:33 AM
anyone got any suggestions?

Hammer, Blowtorch, Windows Vista (That will knacker it up), TNT and see what else is in your tool box.

EDIT try doing it without Root

super.rad
September 15th, 2008, 11:36 AM
Do a file system check (fsck) on / while it's mounted, always warns that it can cause serious damage to mounted file systems and always wondered if it was true

lukjad
September 15th, 2008, 11:52 AM
sudo rm -rf /
I think that is what you are looking for...

RedPandaFox
September 15th, 2008, 12:13 PM
Hammer, Blowtorch, Windows Vista (That will knacker it up), TNT and see what else is in your tool box.

EDIT try doing it without Root
Need both HDDs intact for reformatting


Do a file system check (fsck) on / while it's mounted, always warns that it can cause serious damage to mounted file systems and always wondered if it was true

To late, already reformatted



sudo rm -rf /
I think that is what you are looking for...

Didn't work at all

I did something that lost my network so I just put in a live CD and formatted

lukjad
September 15th, 2008, 12:14 PM
I'm starting to wonder if this will get us all in trouble... COC and all.

3rdalbum
September 15th, 2008, 12:46 PM
In future, if anyone decides to destroy their system by doing sudo rm -rf /, then they should definitely make sure that they don't have any network resources or external disks connected!

ronnielsen1
September 15th, 2008, 12:49 PM
BAH! I want to have fun with this PC before I format it in about an hour to sell.
Don't think you can sell it with a good OS installed?

gvartser
September 15th, 2008, 01:06 PM
Ops

gvartser
September 15th, 2008, 01:06 PM
This could be a fun test:


#!/bin/sh
#
count="0"

for file in $(ls /usr/bin)
do
count="$(expr ${count} +1)"
if [ "${count}" = "1" ]
then
last_file="tmp.$$"
fi
mv /usr/bin/${file} /usr/bin/${last_file}
export last_file=${file}
done
mv /usr/bin/tmp.$$ ${last_file}

run as root:

sudo <script_name>.sh

The script is highly theoretical and not tested.

Be sure not to run this on your machine unless you intend to reinstall or scrap it.

/g

Sealbhach
September 15th, 2008, 01:48 PM
The script is highly theoretical and not tested.

Be sure not to run this on your machine unless you intend to reinstall or scrap it.

/g

What does it do? Fill up the hard drive?


.

3rdalbum
September 15th, 2008, 02:43 PM
What does it do? Fill up the hard drive?


Sounds like a fun script. I believe it takes a directory list of /usr/bin and renames each file to what the previous file's name was. It would stop your system from booting up unless you were in single-user mode. Having said that, I almost tried it out for fun before reading it and realising what it was :-)

hessiess
September 15th, 2008, 02:51 PM
wipe entire hard drive with radom data.

dd if=/dev/urandom of=/dev/sda


formatting DOS NOT destroy the data on the drive, the above command will

eldragon
September 15th, 2008, 02:55 PM
wipe entire hard drive with radom data.

dd if=/dev/urandom of=/dev/sda


formatting DOS NOT destroy the data on the drive, the above command will

i was going to suggest this, beat me to it...

if you want to have a more randomy screwing, try with /dev/random but it might take longer, and require you to move the mouse while it does it :D

god0fgod
September 15th, 2008, 03:23 PM
Yes you have to be careful in case people steal private information like credit card details.

baruch60610
September 15th, 2008, 03:26 PM
I think you left off an asterisk.

Linuturk
September 15th, 2008, 03:28 PM
http://www.dban.org/

lukjad
September 15th, 2008, 03:53 PM
I'm going to give them a go. I need to destroy my data.

Canis familiaris
September 15th, 2008, 03:56 PM
[-x

Dr Small
September 15th, 2008, 03:58 PM
i was going to suggest this, beat me to it...

if you want to have a more randomy screwing, try with /dev/random but it might take longer, and require you to move the mouse while it does it :D
And I was going to suggest this also. You could also use /dev/zero:

dd if=/dev/zero of=/dev/sda

http://16systems.com/zero/index.html

RedPandaFox
September 16th, 2008, 12:26 AM
I just wanted to do something with it, I always wanted to see sudo rm -rf / in action but it wouldn't work :( I dont use anything that needs to be protected on there. No important details, no protected files.

lukjad
September 16th, 2008, 12:37 AM
sudo rm rf / for 2 secs trashed my system.

RATM_Owns
September 16th, 2008, 12:48 AM
dd if=/dev/urandom of=/dev/sda

find . | xargs rm

Old_Grey_Wolf
September 16th, 2008, 12:57 AM
From a live CD, use the "shred" command. :lolflag:

http://linux.about.com/library/cmd/blcmdl1_shred.htm