this post was submitted on 20 Jan 2025
47 points (96.1% liked)

Linux

49140 readers
658 users here now

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

Related Communities

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

founded 5 years ago
MODERATORS
 

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?

you are viewing a single comment's thread
view the rest of the comments
[–] WolfLink@sh.itjust.works 10 points 2 days ago (2 children)

I’d recommend /dev/urandom instead of /dev/zero

[–] franglais@lemm.ee 7 points 2 days ago (1 children)

Use shred , it will automate multiple random passes, and finish with a zero pass.

[–] Kvoth@lemmy.world -2 points 2 days ago (1 children)

Completely unnecessary. Overwriting the whole drive with zeros completely stops anyone from being able to recover anything

[–] franglais@lemm.ee 6 points 1 day ago (2 children)

It won't stop "anyone", I've been lead to believe there are ways even after a single pass, to recover data. if I had anything to hide, I would use a physical destruction method, nothing else

[–] GrumpyDuckling@sh.itjust.works 1 points 1 day ago (1 children)

If you're that paranoid about it, then just physically destroy the drive.

[–] franglais@lemm.ee 1 points 20 hours ago (1 children)

I work for an it department who resells their old stock online, we scrub the disks before sales, physical destruction is not possible.

[–] GrumpyDuckling@sh.itjust.works 1 points 17 hours ago

That's the companies decision and they should understand the risks.

[–] Kvoth@lemmy.world -1 points 1 day ago

This is a miss understanding. Deleting it doesn't actually delete the data, just the meta data. Overwrite it and it's gone forever

[–] Presi300@lemmy.world 1 points 2 days ago

Yeh, you're right