A Qnap NAS has a drive with some bad sectors, I want to RMA it, but before just want to figure out how to prepare a drive? It’s part of a raid 5 setup of 4 drives unencrypted. So I want to remove it and wipe it. Got a Linux machine I can use, but never done this before.

What are common Linux tools to do that sensibly?

-1 points

Since dipshits are down voting me for being right, I’ll just leave this here

https://skeptics.stackexchange.com/questions/13674/is-it-possible-to-recover-data-on-a-zeroed-hard-drive

permalink
report
reply
1 point
*
sudo dd if=/dev/urandom of=/dev/[sdx] bs=4096K status=progress

Or for multiple passes:

sudo shred -fzv /dev/[sdx]

Change [sdx] to the drive you want to wipe, make sure you double check it’s the right one.

permalink
report
reply
1 point

Assuming the drive writes normally a simple command like

dd if=/dev/random of=/dev/sdX

Where sdX is the location of the drive should do the trick. Depending on drive time this may take a bit.

permalink
report
reply
1 point

Yeah my first thought was just keep running dd commands, and sooner or later you’ll have the hdd wiped.

permalink
report
parent
reply
3 points

Instructions unclear, accidentally deleted 200 EB of irrecoverable NASA data.

permalink
report
parent
reply
1 point

LDNAM. Is or used to be on the UBCD.

For the future remember, encryption helps when the disk is no longer operational.

permalink
report
reply
5 points

shred or alternatively you can zero out all the bytes in a drive with dd if=/dev/zero of=/dev/<DRIVE>

permalink
report
reply

Linux

!linux@lemmy.ml

Create post

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

  • Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.
  • No misinformation
  • No NSFW content
  • No hate speech, bigotry, etc

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

Community stats

  • 6.9K

    Monthly active users

  • 6.9K

    Posts

  • 186K

    Comments