Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Secure hard drive eraser needed (found)

Featured Replies

Is there an easy way to add a secure hard drive eraser to unraid?

 

I've looked at shred but it's not included and I can't find a package for it.

 

Any suggestions besides using a boot disk?

 

Thanks

 

Erik

There is a script that Joe L. has created here.

 

If you do not assign the drive you can run this script on the drive and it will write 0's to the drive, as many times as you like.  I have used it on a three pass cycle to burn in new disks and it should be more then enough to secure erase a HD.

  • Author

I've used that but I wasn't sure if just writing zero's would be enough.

I've used that but I wasn't sure if just writing zero's would be enough.

 

Do enough passes on the HD and you will be fine.  I'm not sure how secure you want it but i would say 3-5 would be pretty good.

I read recently that the ability to recover data that had been overwritten even once was highly overrated.

I believe this is a definitive thread on this subject, especially see BubbaQ's statements here.

  • Author

Thanks for the links and info.  With that I searched google and found the following.  DO NOT USE IF YOU DON'T KNOW WHAT DRIVE YOU'RE DEALING WITH.  THE FOLLOWING WILL DELETE ALL YOUR DATA.

 

You can replace the 2 with the number of passes you want to accomplish.  I think even just one pass would be a good deterrent. Also the sdX X=your sata drive assignment.  If you have IDE drives they'd be hdX.

 

AGAIN DON'T USE UNLESS POSITIVE ABOUT THE DRIVE YOU ARE ABOUT TO ERASE

 

for (( i = 0;i<2;i++ )); do

dd if=/dev/urandom of=/dev/sdX && dd if=/dev/zero of=/dev/sdX

done

 

 

One last disclaimer use at your own risk.  The for loop will wipe your drive!!!

Thanks for the links and info.  With that I searched google and found the following.  DO NOT USE IF YOU DON'T KNOW WHAT DRIVE YOU'RE DEALING WITH.  THE FOLLOWING WILL DELETE ALL YOUR DATA.

 

You can replace the 2 with the number of passes you want to accomplish.  I think even just one pass would be a good deterrent. Also the sdX X=your sata drive assignment.  If you have IDE drives they'd be hdX.

 

AGAIN DON'T USE UNLESS POSITIVE ABOUT THE DRIVE YOU ARE ABOUT TO ERASE

 

for (( i = 0;i<2;i++ )); do

dd if=/dev/urandom of=/dev/sdX && dd if=/dev/zero of=/dev/sdX

done

 

 

One last disclaimer use at your own risk.  The for loop will wipe your drive!!!

 

Good job finding this.  I am not exactly sure how Joe L.'s preclear script works but i assume it does something very similar to this.  The one things Joe's script does is make sure that you do not clear a disk that is assigned in your array.  This in and of itself would lead me to use it instead of the above code.

  • Author

 

 

Good job finding this.  I am not exactly sure how Joe L.'s preclear script works but i assume it does something very similar to this.  The one things Joe's script does is make sure that you do not clear a disk that is assigned in your array.  This in and of itself would lead me to use it instead of the above code.

 

 

True but I'm not sure if Joe's script will write to the mbr or not and it only does zero's which some say is fine others say you should do a random pattern as well.  This will do both.

 

 

Archived

This topic is now archived and is closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.