ChatGPT on dd block size

I was pretty impressed by this:

ChatGPT 3.5

User:
if you’re going to use dd to write random data over a hard drive device what block size is best?

ChatGPT:
When using the dd command to write random data over a hard drive device, the choice of block size can impact the performance of the operation. The optimal block size can vary depending on the specific circumstances, but there are some general guidelines you can follow.

A common recommendation is to use a block size that is a multiple of 4 KB (4096 bytes), which is often the physical sector size of modern hard drives. This alignment can improve performance because it matches the underlying hardware.

Here’s an example of using dd with a block size of 4 KB:

$ dd if=/dev/urandom of=/dev/sdX bs=4K

Replace /dev/sdX with the actual device name you want to overwrite, and adjust the block size (bs) according to your needs.

However, keep in mind that there is no one-size-fits-all answer, and performance may vary depending on your specific hardware and use case. You might want to experiment with different block sizes to see what works best for your situation.

Additionally, when overwriting a hard drive for security reasons (e.g., before decommissioning or selling it), consider using tools specifically designed for secure erasure, such as shred or wipe. These tools often implement more sophisticated algorithms to ensure data is thoroughly and securely overwritten.

RMA WD Purples

I got two Western Digital 8TB SATA Purples which arrived from Amazon today. When I plugged them into my first computer the BIOS hung for a few minutes then powered off the computer. Huh? So I took the drives out and put them in another computer, and before the BIOS screen I got this:

Western Digital Purple drive asking for password

I tried a few passwords (blank, “admin”, etc) but nothing worked. I searched for the default password, couldn’t find one. I installed the WD Security software on my MacBook Pro and tried connecting the drive with two different USB adapters, but nothing worked.

I’m just gonna send these back and never buy Western Digital purples again.

My RMA note are:

Why are you returning this? Item defective or doesn’t work

Comments (required): It asked me for a password, but it didn’t give me the password. I wasted a lot of time on this trying to find and fix the problem.

Six sigma blister pack

When I signed up for distance education a decade or two ago they wouldn’t let me use my normal username ‘jj5’ (from memory at three characters it was too short) so I had to pick something else on the spot while I was signing up and in the heat of the moment I picked ‘sixsigma’, mostly as a bit of a joke.

In statistics sigma is the standard deviation, and six sigma with regard to a normal distribution is six standard deviations from the norm which is very very unlikely. It was just me being cute and not particularly humble but at the same time just tongue in cheek.

Anyway. The thing is that I think very very unlikely events/things are cool. Because when they happen they shake everything up. And today a very very unlikely thing happened to me, which in my whole life has never happened before, and will probably never happen ever again:

Today one of the blisters in the blister pack that my medicine comes in didn’t have a tablet in it!

I mean, wow, right? :)

Empty blister pack

ATmega fuse bytes

A quick search for arduino fuses programming turned up a bunch of results:

More chromium woes

Man my chromium browser has been giving me a lot of grief lately. Two times so far I needed to reboot to fix the problem. This is the third time and rebooting is always such a hassle. :(

-------------------
Thu Nov 23 20:20:54 [bash:5.2.15 jobs:0 error:0 time:0]
jj5@charisma:/home/jj5
$ chromium 
[1123/202056.945777:ERROR:elf_dynamic_array_reader.h(64)] tag not found
[1123/202056.945823:ERROR:elf_dynamic_array_reader.h(64)] tag not found
Trace/breakpoint trap (core dumped)
-------------------

PCBWay: Educational 555 Board

I got an email from one of the marketing people from PCBWay who said they could offer me free PCB printing services in exchange for a review of their service on my blog. I am very happy to do that!

Today I signed up for an account over here: https://www.pcbway.com/Member/Login/

The signup process was extremely painless: email address, password, terms of service, privacy policy, done.

(Note: I am not a lawyer, but I did read the ToS and privacy policy, and basically they claim the rights to your design files for various purposes and might transfer your data over an insecure network. I think these services are fine for hobbyists dealing with open hardware, but if you’re a commercial entity dealing with higher value intellectual property or larger volumes you might like to get legal advice before engaging.)

After logging in I got an email confirmation code emailed to me. I updated my account settings including my basic information and contact information so they know where to ship my PCBs. In exchange for my having filled out my full profile they gave me US$35 worth of vouchers with various terms (e.g. minimum spend).

I then used their shared project service to search for a 555 timer circuit that would meet my requirements. I found this one: Educational 555 Board.

I clicked “Add to cart” and accepted all the defaults (shown below) on my order for 5 PCBs. So far I am a happy customer! (Update: as part of our sponsorship deal PCBWay covered the shipping costs too! I was a bit worried they might ask me to cover the shipping, but they included it, which was super excellent, especially as the shipping was about five times as much as the boards themselves!)

I’m just getting started with PCB printing. I expect that in future I will do much more of it. I have been working my way through PCB design with KiCad – updated for KiCad 7 to learn how to design PCBs using KiCad. Apparently there is a PCBWay Plug-In for KiCad, so that might be something worth checking out.

When my PCBs from PCBWay arrive I will make a video of me putting together the 555 timer circuit and then using it to test my IC test probes. Stay tuned for that one!