Jump to content
  • Sky
  • Blueberry
  • Slate
  • Blackcurrant
  • Watermelon
  • Strawberry
  • Orange
  • Banana
  • Apple
  • Emerald
  • Chocolate
  • Charcoal
Deividas

Self Destroy of HDD

Recommended Posts

Hi there, I was making small program or api for self destroying (I needed to put it in my private program).

So I decided to share it with all, because I think some people will found this useful.

To fast self destroy of hdd write in:

pastebin run eKz1RmEP

And If you need to use it in your program, this code will help you:

local fs = require("filesystem")
for file in fs.list("") do
    print("Deleting \"" .. file .. "\"")
    fs.remove(file)
end

Cheers! :D

Link to post
Share on other sites

Hi there, I was making small program or api for self destroying (I needed to put it in my private program).

So I decided to share it with all, because I think some people will found this useful.

To fast self destroy of hdd write in:

pastebin run eKz1RmEP

And If you need to use it in your program, this code will help you:

local fs = require("filesystem")
for file in fs.list("") do
    print("Deleting \"" .. file .. "\"")
    fs.remove(file)
end

Cheers! :D

 

This in any way won't destroy the HDD, but destroy the data in it, and this might not work since some files might be protected or in use.

 

To correctly destroy all your system data you would need to override the init.lua file and do a low-level clean of your system to properly destroy the HDD.

 

If you just want to clear your HDD, run the computer with OpenOS floppy, then find the mount of your HDD and delete all data in it simply by using rmdir command.

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use and Privacy Policy.