Atomic I/O letters column #94

Originally published 2008, in Atomic: Maximum Power Computing
Reprinted here May 31, 2009
Last modified 16-Jan-2015.
 

Each thumb drive comes with a free Harbour Bridge!

I just got suckered.

I bought a "16Gb" USB drive on eBay super-cheap, and it is a fake. I suppose the scammer's plan is that by the time someone uses more than the 512Mb or whatever the thumb-drive actually has, and discovers that now files go in, but they don't come out, it'll be too late to file a complaint. I actually tried filling it up as soon as I got it, though, and it wasn't pretty.

I doubt I'm going to get a lot of satisfaction from the scammer, but I'd like to repartition the drive to 512Mb or whatever so I can at least actually use it. When I go to Disk Management in Windows and try to select "Delete Partition", though, it's greyed out.

Am I going to have to buy Partition Magic or something to make this piece of crap work?

Edward

Answer:
I wouldn't trust one of the horde of eBay fake-drives with anything if I were you, but yes, you probably can make the thing work, more or less.

As you've discovered, Disk Management won't let you delete partitions on "removable" devices. There are utilities that're meant to flip a bit in the firmware and turn removable drives into "fixed" ones, but I wouldn't bet on them doing anything good to a fake-drive.

You don't need to buy anything, though. The usually-suggested solution here is to boot a GParted Linux LiveCD and flail around randomly like dumb Windows users always do until the problem is solved, but the standard "qtparted" program that comes with Knoppix and various other LiveCDs will work, too.

(And yes, fellow dumb Windows user, you can just do the Knoppix equivalent of Start -> Run -> type "qtparted", and it'll work!)

Make sure you don't tell Linux to make the new partition use the non-Windows-compatible ext3 filesystem, and also bear in mind that if you try to format the drive back on Windows it'll probably revert to its fake "official" size. But apart from that, it'll now, to a first approximation, work.

 

They should never have invented the directory

I've got this messy "temporary" folder full of subfolders and sub-subfolders and so on, and there's some stuff in there that I can't delete.

When I try, Windows gives an error saying "the file name you specified is not valid or too long", which is a pretty neat trick since I didn't specify any "file name", I just clicked the folder and pressed "Delete".

If I drill down into the directory structure I can delete most of the stuff in there, but there are some deeply nested files that just won't go away.

How can I kill them, without formatting the drive?!

M

Far too many folders.
I'm sure we've all been here.

Answer:
The "file name" Windows is complaining about is not just the actual name of the file, but the whole fully-pathed name, including all of the folders.

If a pathed file name exceeds 255 characters, several basic Windows functions will barf. Not just delete - you're likely to have trouble opening the file, too.

It's easy enough to create files with over-long full names, by for instance moving a bunch of nested directories inside some other already-deeply-nested directory, or by copying stuff from a less restrictive operating system - Mac OS, for instance - to Windows, especially if you copy it into an already-deeply-nested folder.

The quick and dirty solution to this problem is to just reduce the path to the file by hand, by giving shorter names to the subfolders along the way. If you've got many files to deal with that all have different deeply nested paths then this is impractical, but usually you can solve the problem by just renaming half a dozen directories to "a".

If you'd like to deal with this problem - and several others - more elegantly, try "Unlocker".

 

Fourth Wire Of Mystery

I recently bought a new motherboard, and the CPU fan connector on it is compatible with these new four-pin PWM (pulse-width modulation) cooling fans.

From what I can gather, they have an extra wire, and use PWM to cut the duty cycle to a certain percentage, in order to slow the fan down when maximum cooling is not required.

I have two questions:

1. Why use PWM at all? What's wrong with the old way of fan throttling (reducing the DC voltage)?

2. Why the fourth wire? It seems like pulsating DC can be delivered with two wires as easily as four.

Chris

Answer:
PWM fans have their own built-in speed-control hardware. The signal on the fourth wire tells the fan how fast to spin, and it takes care of the actual power-pulsing by itself. (Perhaps there's some sort of feedback via the speed-pulse data on the standard third wire, but I think that's unlikely to be necessary for PC applications.)

I don't think pulse-width-modulating the power going into a normal two- or three-wire fan will work very well. Their brushless motors probably will spin slower if you give them pulsed input, but the result will be unpredictable and probably also inefficient, as the motor tries to spin to full speed each time it gets a pulse. You can fix that by putting a decent-sized capacitor across the load, which can turn PWM into a load into a relatively smooth waveform, but I don't know of any motherboards that do this. So yes, the motherboard could send PWM power to fans, but it probably wouldn't work too well.

Just reducing the voltage will work with any DC fan, but it requires the motherboard to have some kind of variable-resistor hardware, which costs money. PWM is preferable because it's just switching. Turning stuff on and off over and over very very fast is easy to do with modern semiconductor technology, but actually directly reducing a DC voltage always requires you to dump excess power as heat. This, essentially, is why switchmode power supplies are so popular today, while old-style heavyweight low-efficiency linear PSUs are dying out.

Ordinary brushed DC motors work just fine from pulsed input, by the way. That's how the speed controllers in model cars and cordless drills work. They usually have a pulse frequency in the audio range, which is why the motors "sing" noticeably, especially when the throttle's only just open and there's no "real" motor noise to drown out the voice-coil behaviour of the motor coils seeing the narrowest PWM pulses the controller can deliver. Squeeze the trigger of your cordless drill or the throttle of your R/C car just a little bit, and before the chuck, or the wheels, get enough torque to overcome friction and start turning, you'll hear the motor going "eeeEEEeeeEEeeee...".

 

You'd think shotguns would be more fun

I took home my boss's computer to repair it. Seemingly easy diagnosis of a bad power supply. We replaced it with one from the shop, brand new Thermaltake with 50 watts more than he had before. The old supply was clearly bad; before the pilot LED on the motherboard wouldn't light and now it does. But now the computer (a Gateway. Don't blame me, I didn't buy it...) steadfastly refuses to boot.

I jumped the green wire to ground and the new supply turns on just fine; the drives spin up and the fans come to full tilt, but there is no display or other output; not even keyboard lights or POST beeps.

I checked the switch by jumping the "turn-on" terminals, and the board will still not power up. Any clue what's gone on here? Thanks for any input!

Sean

Answer:
This is the sort of problem that can only be solved by shotgun debugging - removing parts and seeing how, or if, the problem changes, then adding the parts back in and/or swapping them out for alternatives until you locate the fault.

Unless, that is, the Gateway PSU was non-standard in some way, like Dell PSUs used to be. This is probably not the case, but I'm not certain.

If you asked me to guess what the actual cause of the problem was, I'd say the old dying PSU barbecued the mobo or something important plugged into it, or you accidentally static-zapped something when working on the computer afterwards. But the cause of the problem hardly matters, for practical purposes (except, if it's static, you should probably get an anti-static wrist strap before working on more computers...). Whatever caused the fault, you're still going to need to swap stuff to find it. It's irritating, but there's nothing else for it.

Sometimes the shotgunning process doesn't take very long at all, mind you - like, you just remove a computer's two RAM modules, and now the computer powers up and gives you the I've-got-no-RAM beeps, and when you plug one of the memory modules back in it returns to the old problem, but the other one works. Bingo, fault found. But it can easily take a lot longer than that.

 

It doesn't just mean "young surfers"

Just a simple question: What is the plastic edge-covering thing found in some cases...

Nylon edging strip in Lian Li case.

...called, or where can I get some from?

Jesmond

Answer:
I'd call it "edging strip". Usually edging strip is beefier stuff, like this, but the heavy-duty stuff won't go around tight corners unless you cut grooves in it. In a pinch you could do that and then use it in a computer case, though.

The standard computer-case kind of edging strip always seems to be made out of white nylon with wide slots cut in it, giving it that distinctive crenellated appearance; specifying "white nylon" may help you narrow down your search.

It might also be called "grommet strip", because a circle of it can serve the same purpose as a rubber grommet.

(Jesmond got back to me; he indeed found it listed as "grommet strip".)

If all else fails, you could just use one or two layers of thick tape. It wouldn't look great, but it'd probably protect wires and fingers from sharp panel edges just as well. PVC or rubber hose can work, too; just cut a lengthwise slit in one side of the hose. You may need a few drops of glue to get hose to stay in place, though.

 

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)