[–] 5 points 1 year ago* (2 children)

OK, to be clear, you can boot to raspbian or your distro of choice and use hdparm if you have a proper SATA controller and connection. This does not work on NVME drives.

#shred

If you have a spinning disk and either are forced to use a USB to SATA adapter or if the drive itself does not support secure erase, then you can use the shred command.

shred -fv /dev/sdb

will write random data to the sata device sdb. f is for force and v is for verbose. You can add z to add an extra zero pass and z to change the number of passes. That means that

shred -z -n 5 /dev/sdb

should do 5 passes and then zero on drive sdb

It will ALSO work for older parallel drives that identify as hd or that still appear as sd with a USB adapter. You had better check your devices with a lsblk before you run it. It will probably overwrite the OS of a running system.

Last word on shred is that it is ungodly slow. One pass of 1 tb takes 1.5 to 3 hours.

#hdparm

For SATA drives that support it, you can use hdparm. A deep explanation of what I'm doing is available here: https://grok.lsu.edu/article.aspx?articleid=16716. I could write out how to do it, but it goes into greater detail.

For forcing the system to sleep, you may need to

echo disk | sudo tee /sys/power/state

Also, be sure to set a password when prompted. If you omit the password, you may brick the drive. I have rarely been able to unbrick a drive.

This process may take several hours. The output of hdparm -I (that is an uppercase i) should tell you how long.

#NVME

Check processes here: https://wiki.archlinux.org/title/Solid_state_drive/Memory_cell_clearing#NVMe_drive

I have followed them once upon a time, but i haven't done it in years and cannot offer solid advice.

  • source
  • parent
  • context
  • [–] 2 points 1 year ago* (1 child)

    It's funny, I was about to post a reply to help - but I looked up my answer (just to me sure), and it turns out I was wrong!

    So I'm learning something here, too. Bookmarked so I can see what Spikes posts later

  • source
  • I would consider $300 very cheap for a laptop in 2025, though I imagine the appeal is more the open and “hackable” nature of the platform.

    The CM5 performance is good enough for a casual web browsing machine, and it uses very little power, so it’ll last forever with a decent battery.

  • source
  • parent
  • context
  • [–] 2 points 1 year ago (1 child)

    I’m very sorry if my dumb joke caused any regret. It was low-hanging fruit and I thought it would be funny.

    Speaking only for myself, when I sense ambiguity, I ask questions to try to improve clarity. On the internet it’s especially easy (understandably) for people to assume a “hostile” or “negative” tone in any bit of writing, even if that’s not intended at all. You can also try a bit of role-playing, where you assume you asked the question and read your answer as if it was something someone else responded to you with. If you vibe with that approach, you can use it to “tune your tone”, or “writer’s voice”.

    I’m no expert, either, these are simply my own anecdotes and I often fail miserably at taking my own advice, as humans are wont to do. Again, I appologize if my lazy attempt at humor caused any distress. I’m happy to have you here and to be able to talk like this. Please reach out any time!

  • source
  • parent
  • context
  • [–] 2 points 1 year ago (2 children)

    I'm physically disabled in social isolation where this is my only external human contact. I tried to share the abstract learning curve on the path I have taken from asking the same questions to finding more useful information. How should I engage with others so that I never have moments like this where I regret my only method of human interaction?

  • source
  • parent
  • context
  • view more: ‹ prev next ›