Atomic I/O letters column #154

Originally published 2014, in PC & Tech Authority
(in which Atomic magazine is now a section)
Reprinted here December 12, 2014
Last modified 16-Jan-2015.
 

You bounced the bits loose

A couple of months ago I knocked over my 2Tb Seagate Expansion USB external hard drive - I had it standing vertically and elbowed it over onto the desk with a sickening thump. It seemed fine afterwards though, I did an error scan and there were no problems. This morning though, it's stone dead, might as well not be plugged in at all as far as the computer's concerned.

As you have said on many previous occasions, data you do not have backed up is data you do not particularly want. Imagine a crazy parallel universe in which there was data that I DID want on this drive. What chance do I have of recovering it, and how?

C.

Answer:
A standard physically-small external hard drive will contain a 2.5-inch laptop drive, which is quite resistant to physical damage from falls. Larger external drives that're cheaper per gigabyte contain ordinary 3.5-inch desktop drives, though, and those are more vulnerable to drop damage. I say this for the benefit of other readers, though, not you, because if a fall's going to break a hard drive, it'll almost always break it immediately. Not even an hour later, let alone two months.

A large proportion - possibly a majority, actually - of external-drive failures are electronic, not mechanical. And, better news yet, they're usually not a failure of the hard drive's own electronics, but of either the drive box's power supply or its "bridge" hardware, which is what translates the hard drive's native ATA into to USB or FireWire or whatever. (ESATA external drives don't have any bridge hardware to fail, though.)

So if you open the box and plug the drive inside into new bridge hardware, or just straight into a PC, you'll often be in business again.

The new bridge hardware can be in another external box, or it can be one of the super-cheap USB-to-PATA/SATA adapter cables that're all over eBay for a few bucks delivered.

Note that the cheapest kits don't come with a power supply for the drive, but if the broken external box's PSU still works you can use that. A full USB-to-PATA-and-SATA kit with a power supply and cables for a SATA drive (if you want to hook up an old Parallel ATA drive you'll have to bring your own ribbon cable) should still cost you less than $US15 on eBay, but note that separate power supplies just like the ones that come in these kits cost less than four US dollars delivered, and in my experience are generally worth about that much. They probably won't kill you or your drive, but may die with a pop the moment you plug one in. Running a drive from a PC power supply is a good alternative; if you've got a spare PC PSU you can get it to turn on in the absence of a PC by using a paper clip to bridge the only green wire on the big ATX connector to any of the black-wired grounds.

 

After a drive, he gives his car a rubdown and feeds it some oats

Is defragmenting a Solid-State Drive always a bad idea?

My dad has one in his all-singing-all-dancing home PC now, and persists in running scheduled defrags of it once a week.

SSDs wear out when you write to them, right? Doesn't defragging write to the whole disk, so it wears the thing out as fast as anything ever could? Is there any possible reason to do this?

Matthew

Answer:
I'm hesitant to say that there's never any possible reason to defrag an SSD, because filesystems are pretty deep magic and there are some extremely perverse possible drive use cases.

SSDs also use "wear levelling" to spread write operations over the entire drive, so if you defrag a 50%-full SSD, moving most of the data on it, you'll not unduly damage half of the drive and leave the other half alone.

But the principal purpose of defragging a mechanical drive is to reduce its "latency", or access time - the "seek speed", the time it takes to get the heads to the right location on the platters, and then the "rotational latency", the time it takes for the right data to spin around under those heads. Modern defraggers also move frequently-used and associated data to the most quickly-accessed part of the platters.

All parts of an SSD's storage are as fast as each other, and even a slow SSD has random seek times of well under one millisecond. (That's about a tenth of the fastest mechanical drives, and about a twentieth of what many drives manage.)

So even if you ran a disk fragmenter, software specifically designed to split files into as many widely-separated parts as possible (here's an old defragger with an option to do that!), the effect on system performance would probably not be noticeable.

Perhaps this will convince your dad. I'm not putting any money on that, though.

 

At least it doesn't run .EXEs

When I use IrfanView to view images in a folder that contains MP3s, it insists on PLAYING those MP3s when it gets to them in the file order. I don't have IrfanView associated with those file types, so it doesn't open them if I double-click one, but I can't stop it playing them when it gets to one. Oh, and it opens PDFs too.

How do I stop this?!

Hamish

Answer:
In the IrfanView Properties/Settings interface, click the lyrically-named "Load only associated types while moving through directory" radio button.

 

Strangely fascinating Web sites

Sometimes, the Chrome browser starts locking up all of one CPU of my computer - I've got a hyperthreaded 4-core i7, so that means 12.5% utilisation in Task Manager. There doesn't seem to be any particular site that does this; if I've got a lot of tabs open, Chrome just sometimes decides that one page, or if I'm unlucky more than one, needs some really deep thought.

I can see in Task Manager or Process Explorer that this is happening, and if I quit the whole browser and re-run it to re-load all of the tabs then the problem may be solved. I also, however, notice that it often is one particular tab doing it, and when I close that tab the extra CPU usage goes away. But I only find this at random, because there's no way for me to see which tab has the problem in advance!

Is there a finer-grained task-monitor thing that will show me each tab's resource use?

Dave

Answer:
Yes there is, and it's built into Chrome. Just press shift-Escape to bring up Chrome's own inventively-titled Task Manager, which can monitor lots of different things, with CPU usage one of the default columns.

(It's more comprehensive than you probably need in a browser, but the control-Escape Task Manager comes into its own in Chrome OS.)

 

Self-censorship

Certain Web sites give me an "unable to access the network" error in Chrome and analogous ones in other browsers. I just ran Internet Explorer and it says "Internet Explorer cannot display the webpage" with the connection-diagnosing thing saying "the device or resource [URL-of-site] is not responding", and Firefox says "The proxy server is refusing connections", "Firefox is configured to use a proxy server that is refusing connections"... but I don't have a proxy server!

Or maybe I do, that'd be something that malware that wants to display its own special ads or whatever might do, right? Supporting evidence for the malware theory is that my phone, connected to the same home network as the computer, can see the Internet fine. And most Web sites work for both the PC and the phone (as far as normal Web sites work on a phone anyway). But some don't work on the PC.

Among the blocked sites are the City Council site for Penrith NSW, where I live (some other random NSW council sites are blocked too...), and also buchmann.ca, webcom.com, lawlink.nsw.gov.au, patft.uspto.gov and lightbulbs-direct.com.

What malware/other thing is this? I'm at my wits' end!

Olav

Answer:
A bit of back-and-forth with Olav turned up the culprit: PeerBlock, a utility for blocking certain hacking attacks, and self-appointed copyright cops, and various other things. (Olav actually installed Peerblock after I mentioned it in this column a year ago.)

The default PeerBlock setup is extremely paranoid, blocking connections with all sorts of blameless governmental and educational institutions just to make sure it also catches the maximum number of bad actors. And PeerBlock, by default, also blocks HTTP, which is to say normal Web-browsing, traffic along with everything else. The effect of this is a semi-random scattershot blocking of all sorts of useful Web sites.

 

DOS 3.1 represent yo

Can you map a network drive on... your own drive? Like, bind a drive letter to a folder or other drive on your computer, so you can run a program that expects all its stuff to be on e:\programname from a folder called c:\programname, without changing any configuration stuff for the program?

I ask this because I dumped my ancient Eudora e-mail program to this almost as ancient WinXP laptop so I can use it while my proper computer's being fixed, but now it's not in e:\Eudora any more so when I run it it complains and it seems to work but I'm worried I'm messing something up. I suppose I could edit the setup files, but it strikes me that binding E: to C: somehow would be a useful thing to be able to do anyway. Is it possible?

Peppin

Answer:
it certainly is, using the good old SUBST command, which became part of MS-DOS getting on for thirty years ago now.

If you open a DOS prompt (just run "cmd" in the Start-menu box in Windows versions pre-8, or sacrifice a rabbit and then type "cmd" in the Start screen of Win8), and type...

subst e: c:\somedirectory

...then that folder on C will now be e: as far as the system is concerned. You'll have to re-run the command every time you reboot, but that's probably the way you want it for a temporary setup like this.

 

I'm not saying it's aliens, but...

When I go to Sharing in the properties for a folder (Win7 64 bit), the list of people the folder can be shared with when I click "Share" includes "Administrators", my own account, and "Everyone", and "<Unknown Contact="Contact">".

That last one apparently has "Read/Write" access, by default. It doesn't appear in "Manage [user] Accounts".

What IS it?!

Sandra

"Unknown Contact" in file sharing
Don't be alarmed, citizen.

Answer:
There are a couple of ways this can happen, both involving previous Windows installs.

If you installed your current version of Windows on a computer that had some earlier Windows version on it, a user account from that previous Windows can appear as an "Unknown Contact" on the new one.

Also, if you've moved an NTFS-formatted drive from a previous computer to a new one, folders that were network-shared on the old one - which you're likely to be re-sharing on the new one - will have the Unknown Contact on their access permissions list, while other folders won't.

If you've managed to encounter a folder that only Unknown Contact is allowed to access, then you'll have to take ownership of it via Properties -> Security -> Advanced -> Owner. This shouldn't happen, but given the semi-random behaviour of Windows file sharing and permissions, I'd never say never.

Otherwise, you can safely delete the Unknown Contact from the access list right now, or ignore it.

 

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)