Thursday, July 30, 2009

LINUX EMERGENCY...HELP! CAT /DEV/URANDOM > /DEV/HDA1 HELP Me!!!?

Some loser just had me cat /dev/urandom %26gt; /dev/hda1





I Ctrl+C it before it was finished, but I can't open anything and I can't save anything; my HDD is full. Someone please help me.

LINUX EMERGENCY...HELP! CAT /DEV/URANDOM %26gt; /DEV/HDA1 HELP Me!!!?
Repeating that command 7 times on a disk considered 'classified' by the US government is enough for the disk to be considered cleaned.





As mentioned above, you should never type a command as Linux Root before you know exactly what it'll do.





There is no affordable way to recover your disk, you'll need to reformat and reinstall.





You should know that normally urandom generates random sequences based on the interference found in the hardware. So it's about as random as you can get on your computer.





Any time you are piping to the folders /dev or /proc, make sure you know exactly what you are doing.





/dev are devices on the computer ( hda1 = harddisk primary master partition 1).





/proc is pieces of the kernel memory available in the filesystem.





Have a look at the included link, it talks about this command. (actually dd if=/dev/urandom of=/dev/hda ). But it's as effective as the command you did if you don't want to lose your data.





Sorry,





David
Reply:He's seriously not kidding - this is why you shouldn't be root. Ever.
Reply:You're screwed, sorry.


No comments:

Post a Comment