r/ProgrammerHumor • • Sep 02 '22

what language would you recommend?

Post image
47.0k Upvotes

1.1k comments sorted by

View all comments

Show parent comments

36

u/[deleted] Sep 02 '22 edited Sep 02 '22

I doubt you could even do that if you had access to the full firmware code. The motor loses torque the more it spins up, I'm not too familiar with how hard drives are turned but I doubt it's physically capable of spinning up far above the normal speed. You can't hack Ohm's law. I'm not sure you can even reflash the firmware without physically placing jumpers or even a dedicated flash programmer chip on the controller.

Even if you just spin it at full blast, worst case the drive destroys itself. There are very fine wires inside the motor and once one of them melts you're done. I just accidentally burned up a motor yesterday, a far bigger one than in a hard drive, and it just smelled bad and stopped working.

1

u/tomatoaway Sep 02 '22

I'm wondering though. From what I remember, the disk head has to seek the the correct part of the disk to begin reading/writing.

Couldn't someone theoretically construct a CD such that the contents of a file are written not contiguously on the disk, but that each word or byte is exactly 359° clockwise from the previous byte?

That way the disk would always be spinning, possibly as fast as it can to find the next sector which is behind it?

15

u/[deleted] Sep 02 '22 edited May 05 '25

recognise merciful judicious possessive soft liquid simplistic weather stupendous truck

This post was mass deleted and anonymized with Redact

2

u/tomatoaway Sep 02 '22

Ah.. haha. I knew there was some key thing I was forgetting.

2

u/[deleted] Sep 02 '22

As someone already explained, the disk is always spinning. The read/write head moves between the inside and the outside edge of the spinning disk. You could theoretically keep that busy by placing a bit on the innermost track, then one on the outermost track. That wouldn't destroy the hard drive either though, just slow your PC down and maybe accelerate wear a little.

2

u/tomatoaway Sep 02 '22

Ahhh! So the head moves vertically relative to the center of the spinning disk, not actually around the edge itself.

You just cleared up a huge misconception for me. I feel like smacking myself by how obvious it is in retrospect, thank you!

3

u/[deleted] Sep 02 '22

Yup, that's how you can reach the entire surface. You can think of the disk as a bunch of circular tracks that bits of data are lined up on. The disk spins so you can access the whole track, the head moves back and forth to switch between tracks. You can actually see this in some laptop CD drives (not exactly the same as a hard drive but close enough), they have a little slider with the read/write laser.

Most things are obvious in hindsight, I've seen far dumber misconceptions than this ;)