Atomic I/O letters column #66

Originally published in Atomic: Maximum Power Computing
Reprinted here February 2007.
Last modified 16-Jan-2015.

 

Shiver me timbers, crash me heads

I'm looking for a way to stop hard disk heads from crashing into the platter while a boat is underway in heavy seas. I've yet to test this on a hard disk in operation but I think the disk would die a horrible death very quickly. I know that solid state disks are available, but they're too expensive for the enthusiast to consider.

So I thought - what about a suspension system to take the jolt out of hitting a swell?

Could you use little hydraulic pistons or springs? There is also the problem of sea air affecting the PC, but one hurdle at a time...

Stephen

Answer:
Maybe this can be done, and maybe not. Ordinary desktop drives certainly aren't built to take a lot of vibration.

Laptop drives, on the other hand, expect to be treated more roughly. Ordinary 2.5 inch laptop drives are also enough smaller than 3.5 inchers that if you mount them in a 3.5 inch bay there's plenty of room for padding, rubber-band suspension, or what have you. Obviously, you get more room again for suspension contraptions if you put a 2.5 inch drive in a 5.25 inch bay, or some even bigger enclosure.

If you completely mummify a drive in foam and then run it for extended periods it may overheat. But, again, laptop drives expect worse treatment than desktop drives get, and don't need much cooling.

Laptop drives aren't terribly expensive any more, either, especially if you can make do with a capacity of 80Gb or less.

Off-the-shelf laptop-drive-to-3.5-inch mounting kits aren't likely to be useful to you, because they use rigid trays or rails that won't absorb any shocks. Those kits often come with a pin adapter for the data and power cables, but you can buy those separately - they're all over eBay, and cheap, because they're just passive plug converters. Laptop PATA/SATA drives use the exact same data standards as desktop drives; they just have smaller connectors.

Note that there are a few laptops on the market these days that have their own accelerometer hardware, separate from the drive, which automatically clicks the drive into the parked-head position if the laptop thinks it's been dropped. IBM's had ThinkPads that do this for a while, and the recent Intel-chip MacBooks do it as well.

These laptops aren't, however, necessarily a good choice for boats, because when they're being bumped around all the time they don't let the drive run at all. You therefore have to turn the fall-detection feature off in the one situation where it'd be most useful.

It's also pretty easy these days to build a basic PC with no moving parts but fans, and you don't necessarily have to settle for a Win98 machine any more, either. Gigabyte-plus CompactFlash cards to use as a system drive are now downright cheap.

Note that any shaking that'll bother a drive will also probably bother various other standard PC components. Expansion slots, for instance, aren't made to tolerate constant jiggling. So putting the whole PC in some kind of shock-absorbing mounting could be an idea.

The cheapest version of this would, I think, be to use a standard laptop, but only when you're lying in your hammock.

 

I recommend a Frankenstein knife switch

I'm looking for software to put to sleep a hard drive and wake it only when needed.

I schedule my backups for the early morning, and I'd like to power up the external drive only when I need to back up my data. I could use Windows' power management, but it manages ALL the disks in my system.

I took a look around even in some programming freaks forums but I cannot get a reply. If the system can do it by itself, surely I can force it manually in some way. Any clue?

Diego


Yeah, that ought to do it.

Answer:
Sounds easy, doesn't it?

It isn't.

Doing this in Windows seems to be pretty much impossible even with internal hard drives. You can use the power management settings, which generally work fine, but you can't have a one-button manual spin-down solution.

Powering an external disk up and down with any kind of software is, in contrast, completely impossible.

As I mention in this column, USB and FireWire external drives don't give the PC any way to spin them down. They may have their own timers, which may or may not be configurable with software from the manufacturer, but otherwise you're completely out of luck. Most of them don't even spin down when the computer they're connected to turns off. All you can do is take advantage of their hot-pluggability and just turn the darn things off manually when you're not using them. Which, as you say, is impractical for backups at 0300 hours.

(Incidentally, I note that when you start searching for this kind of stuff, you find a lot more people talking about doing it on Macs than on PCs. I take this as an indication of the relative noise levels to which the two groups of users are accustomed. Most PC users, definitely including me, can't tell by listening whether their hard drives are spinning.)

 

Putting the toothpaste back in the tube

What are your thoughts on the Viatek ReNu-It Disposable Battery Recharger?

My kids have billions of toys that need AA batteries. Recharging cheap alkalines would be nice.

I have a regular NiMH/NiCad charger. Will alkalines blow up if I put them in it?

Matthew

Answer:
Yes, alkalines will not be happy if you put them in a normal charger. That's why they always tell you not to in the warning on the side.

(Though when I tried to blow one up by pushing five amps through it backwards, all it did was leak. Darn.)

The Viatek "Recharger", like all other "chargers" for ordinary disposable batteries, is not very useful, and not actually technically a charger at all.

Alkaline batteries have a non-reversible reaction, like any other "primary" cell. You can't charge them. All you can do is thwack them with a bit of voltage to burn off metal dendrites and kick the remaining reagents into reacting a bit more completely. Which isn't worthless, but isn't very interesting either.

(Alkaline cells with a slightly different chemistry actually can be recharged, after a fashion.)

If you "refresh" an alkaline in this manner it'll definitely last significantly longer in low-drain applications, like running a clock or a remote control. For most toys, though, you probably won't even notice a difference in run time, especially if you don't refresh the batteries before the toy runs them flat.

There've been umpteen of these devices before - the ReNu-It is definitely not the first. They're all the same. Some hypothetical nanotechnological wonder could indeed recharge any primary cell, but this is about as easy as it is to turn urine back into beer.

Back in the real world, you can minimise your battery expenses by buying rechargeables for high-drain devices (radio controlled cars, digital cameras), carbon-zinc ("Super Heavy Duty") cells in bulk for low-drain toys, and possibly also off-brand alkalines in bulk for some of the toys in between. Bulk off-brand alkalines are far cheaper than Energizers or Duracells, and although they often have lower capacity (especially if the discount store bought up a bunch that're already three years old...), the price per unit of energy remains far superior.

Of course, the very cheapest and nastiest alkalines, especially old ones, may leak. My easy-to-follow advice: Buy the cheapest cells you can find that don't.

 

Can't find second gear

I've got three PATA hard drives in my PC (C, E and F; D is the DVD-RW), and one of them is really slow. Burning DVDs, for instance, works fine from C or F, but times out non-stop when the data is coming from E.

The drive wasn't using much CPU time when I accessed it, so I figured that the problem wasn't that it was stuck in PIO mode instead of DMA, but I still first looked in the BIOS setup to see if it wasn't set to DMA any more. But it was set to "Auto" just like everything else, of course.

So I downloaded a SMART data checking program, and that said that everything was OK, and I checked the drive for errors, and there weren't any, and I defragged it, and the problem was still there.

Then I looked in the XP Device Manager and, lo and behold, the Secondary IDE Channel properties said there was a drive in PIO mode, even though the menu item right above it was still set to "DMA If Available".

WTF is going on, and how can I make it stop?

Adrian

Drive in PIO mode
I'm sorry if this picture gives you nightmares.

Answer:
A surprising number of Windows XP systems have this problem.

When WinXP's atapi.sys driver clocks up a total of six timeout or CRC errors for a given drive, it knocks that drive's communication speed down by one notch. If the errors are caused by hardware that can't actually run as fast as it says it can (or just a lousy cable), this will solve them. If the errors are spurious, though, you can end up with a fast drive slowly ticking down through the DMA modes, then into the dreaded PIO modes from days of yore. And it will never come back up again, unless you fix it manually.

(You didn't notice much CPU use when accessing the drive, by the way, because modern CPUs are fast enough that non-DMA ATA modes no longer load them up significantly.)

I'm indebted to a couple of readers who've pointed out to me the easy way to fix this problem. Go into Device Manager (Control Panel -> System -> Hardware -> Device Manager), expand the IDE ATA/ATAPI controllers section, right-click the IDE Channel to which the slow drive is connected, select Uninstall, OK your way through that process, and reboot. Windows will reinstall that channel, and it should now be set back to high-speed defaults.

Alternatively - if you don't want to reboot, or if you just like pain - you can run regedit (from Start -> Run...), then go to
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Class\{4D36E96A-E325-11CE-BFC1-08002BE10318}\
(accept no imitations...), and find the first of the 0001, 0002... entries that contains a "DriverDesc" key whose value matches the name of the controller channel that's having the problem. In your case, that'd be the first one called "Secondary IDE Channel".

Now add a key called "MasterDeviceTimingModeAllowed" or "SlaveDeviceTimingModeAllowed", depending on whether the drive with the problem is a master or a slave, and set its hex value to "ffffffff".

Now, when you go to the Device Manager Properties window for that controller channel, set the device mode back to PIO and click OK. Then reopen the properties window and set the mode to "DMA if available" and click OK again, and your drive should be back up to speed.

 

Other letters columns

I/O #1
I/O #2
I/O #3
I/O #4
I/O #5
I/O #6
I/O #7
I/O #8
I/O #9
I/O #10
I/O #11
I/O #12
I/O #13
I/O #14
I/O #15
I/O #16
I/O #17
I/O #18
I/O #19
I/O #20
I/O #21
I/O #22
I/O #23
I/O #24
I/O #25
I/O #26
I/O #27
I/O #28
I/O #29
I/O #30
I/O #31
I/O #32
I/O #33
I/O #34
I/O #35
I/O #36
I/O #37
I/O #38
I/O #39
I/O #40
I/O #41
I/O #42
I/O #43
I/O #44
I/O #45
I/O #46
I/O #47
I/O #48
I/O #49
I/O #50
I/O #51
I/O #52
I/O #53
I/O #54
I/O #55
I/O #56
I/O #57
I/O #58
I/O #59
I/O #60
I/O #61
I/O #62
I/O #63
I/O #64
I/O #65
I/O #66
I/O #67
I/O #68
I/O #69
I/O #70
I/O #71
I/O #72
I/O #73
I/O #74
I/O #75
I/O #76
I/O #77
I/O #78
I/O #79
I/O #80
I/O #81
I/O #82
I/O #83
I/O #84
I/O #85
I/O #86
I/O #87
I/O #88
I/O #89
I/O #90
I/O #91
I/O #92
I/O #93
I/O #94
I/O #95
I/O #96
I/O #97
I/O #98
I/O #99
I/O #100
I/O #101
I/O #102
I/O #103
I/O #104
I/O #105
I/O #106
I/O #107
I/O #108
I/O #109
I/O #109
I/O #110
I/O #111
I/O #112
I/O #113
I/O #114
I/O #115
I/O #116
I/O #117
I/O #118
I/O #119
I/O #120
I/O #121
I/O #122
I/O #123
I/O #124
I/O #125
I/O #126
I/O #127
I/O #128
I/O #129
I/O #130
I/O #131
I/O #132
I/O #133
I/O #134
I/O #135
I/O #136
I/O #137
I/O #138
I/O #139
I/O #140
I/O #141
I/O #142
I/O #143
I/O #144
I/O #145
I/O #146
I/O #147
I/O #148
I/O #149
I/O #150
I/O #151
I/O #152
I/O #153
I/O #154
I/O #155
I/O #156
I/O #157
I/O #158
I/O #159
I/O #160
I/O #161
I/O #162
I/O #163
I/O #164
Dan's Data letters #1
Dan's Data letters #2
Dan's Data letters #3
Dan's Data letters #4
Dan's Data letters #5
Dan's Data letters #6
Dan's Data letters #7
Dan's Data letters #8
Dan's Data letters #9
Dan's Data letters #10
Dan's Data letters #11
Dan's Data letters #12
Dan's Data letters #13
Dan's Data letters #14
Dan's Data letters #15
Dan's Data letters #16
Dan's Data letters #17
Dan's Data letters #18
Dan's Data letters #19
Dan's Data letters #20
Dan's Data letters #21
Dan's Data letters #22
Dan's Data letters #23
Dan's Data letters #24
Dan's Data letters #25
Dan's Data letters #26
Dan's Data letters #27
Dan's Data letters #28
Dan's Data letters #29
Dan's Data letters #30
Dan's Data letters #31
Dan's Data letters #32
Dan's Data letters #33
Dan's Data letters #34
Dan's Data letters #35
Dan's Data letters #36
Dan's Data letters #37
Dan's Data letters #38
Dan's Data letters #39
Dan's Data letters #40
Dan's Data letters #41
Dan's Data letters #42
Dan's Data letters #43
Dan's Data letters #44
Dan's Data letters #45
Dan's Data letters #46
Dan's Data letters #47
Dan's Data letters #48
Dan's Data letters #49
Dan's Data letters #50
Dan's Data letters #51
Dan's Data letters #52
Dan's Data letters #53
Dan's Data letters #54
Dan's Data letters #55
Dan's Data letters #56
Dan's Data letters #57
Dan's Data letters #58
Dan's Data letters #59
Dan's Data letters #60
Dan's Data letters #61
Dan's Data letters #62
Dan's Data letters #63
Dan's Data letters #64
Dan's Data letters #65
Dan's Data letters #66
Dan's Data letters #67
Dan's Data letters #68
Dan's Data letters #69
Dan's Data letters #70
Dan's Data letters #71
Dan's Data letters #72
Dan's Data letters #73
Dan's Data letters #74
Dan's Data letters #75
Dan's Data letters #76
Dan's Data letters #77
Dan's Data letters #78
Dan's Data letters #79
Dan's Data letters #80
Dan's Data letters #81
Dan's Data letters #82
Dan's Data letters #83
Dan's Data letters #84
Dan's Data letters #85
Dan's Data letters #86
Dan's Data letters #87
Dan's Data letters #88
Dan's Data letters #89
Dan's Data letters #90
Dan's Data letters #91
Dan's Data letters #92
Dan's Data letters #93
Dan's Data letters #94
Dan's Data letters #95
Dan's Data letters #96
Dan's Data letters #97
Dan's Data letters #98
Dan's Data letters #99
Dan's Data letters #100
Dan's Data letters #101
Dan's Data letters #102
Dan's Data letters #103
Dan's Data letters #104
Dan's Data letters #105
Dan's Data letters #106
Dan's Data letters #107
Dan's Data letters #108
Dan's Data letters #109
Dan's Data letters #110
Dan's Data letters #111
Dan's Data letters #112
Dan's Data letters #113
Dan's Data letters #114
Dan's Data letters #115
Dan's Data letters #116
Dan's Data letters #117
Dan's Data letters #118
Dan's Data letters #119
Dan's Data letters #120
Dan's Data letters #121
Dan's Data letters #122
Dan's Data letters #123
Dan's Data letters #124
Dan's Data letters #125
Dan's Data letters #126
Dan's Data letters #127
Dan's Data letters #128
Dan's Data letters #129
Dan's Data letters #130
Dan's Data letters #131
Dan's Data letters #132
Dan's Data letters #133
Dan's Data letters #134
Dan's Data letters #135
Dan's Data letters #136
Dan's Data letters #137
Dan's Data letters #138
Dan's Data letters #139
Dan's Data letters #140
Dan's Data letters #141
Dan's Data letters #142
Dan's Data letters #143
Dan's Data letters #144
Dan's Data letters #145
Dan's Data letters #146
Dan's Data letters #147
Dan's Data letters #148
Dan's Data letters #149
Dan's Data letters #150
Dan's Data letters #151
Dan's Data letters #152
Dan's Data letters #153
Dan's Data letters #154
Dan's Data letters #155
Dan's Data letters #156
Dan's Data letters #157
Dan's Data letters #158
Dan's Data letters #159
Dan's Data letters #160
Dan's Data letters #161
Dan's Data letters #162
Dan's Data letters #163
Dan's Data letters #164
Dan's Data letters #165
Dan's Data letters #166
Dan's Data letters #167
Dan's Data letters #168
Dan's Data letters #169
Dan's Data letters #170
Dan's Data letters #171
Dan's Data letters #172
Dan's Data letters #173
Dan's Data letters #174
Dan's Data letters #175
Dan's Data letters #176
Dan's Data letters #177
Dan's Data letters #178
Dan's Data letters #179
Dan's Data letters #180
Dan's Data letters #181
Dan's Data letters #182
Dan's Data letters #183
Dan's Data letters #184
Dan's Data letters #185
Dan's Data letters #186
Dan's Data letters #187
Dan's Data letters #188
Dan's Data letters #189
Dan's Data letters #190
Dan's Data letters #191
Dan's Data letters #192
Dan's Data letters #193
Dan's Data letters #194
Dan's Data letters #195
Dan's Data letters #196
Dan's Data letters #197
Dan's Data letters #198
Dan's Data letters #199
Dan's Data letters #200
Dan's Data letters #201
Dan's Data letters #202
Dan's Data letters #203
Dan's Data letters #204
Dan's Data letters #205
Dan's Data letters #206
Dan's Data letters #207
Dan's Data letters #208
Dan's Data letters #209
Dan's Data letters #210



Give Dan some money!
(and no-one gets hurt)