News: 1701674889

  ARM Give a man a fire and he's warm for a day, but set fire to him and he's warm for the rest of his life (Terry Pratchett, Jingo)

Sysadmin's favorite collection of infallible utilities failed … foully

(2023/12/04)


who, me? Brace yourselves, gentle readers, for we have good news and bad news. The bad news is that the weekend is over, and you have to be back at work. The good news is that Monday brings an instalment of Who, Me? in which Reg readers entertain with tales of technical misfires.

This week, the hero of our tale is "Duke" (not his real name) who, despite dropping out of university, landed a job as a technician at a small PC shop. To give you an idea of the time period, "a Pentium 133 running Office 97 on Windows 95 was the height of business computing, but most of our business clients were still running DOS applications on '486 and earlier PCs" according to Duke.

One of the PC shop's regular clients was an architectural firm that would regularly send its PCs in for "servicing" – much as you would a car. But a PC isn't like a car – there's no published service schedule in the manual. So it was basically left to each tech to decide what to do. For most, this meant "manually running through a bunch of basic health checks, correcting any problems that might be found, and giving the case a wipe down with some industrial cleaning solvents to remove the nicotine stains and restore it to the original factory beige."

[1]

Duke would take it a bit further, "running scandisk (or chkdsk if it wasn't available) and accepting the inevitable repairs, making sure there was enough free disk space, emptying C:\TMP , defragging the disk and finally setting the antivirus to run a Full Disk Scan." Crucially, if any of those tools weren't installed on the machines, he'd grab a boot disk from the workshop and run it.

[2]

[3]

Defragging isn't a big deal anymore – partly because OSes have got much better at disk management and partly because disks are so fast these days that a bit of fragmentation doesn't create the performance hit it once did. But in those days, defragging a disk could make a huge difference, so customers felt like they were getting great value for their service dollar.

One day the architects brought in the server that ran their accounting app for service. As far as Duke could see it was just like any other PC – even the interface looked just like Windows 3.1. He tried to run defrag.exe on it, but it refused to run. So he booted up from his trusty floppy and ran it.

[4]

He saw the single most fragmented disk he'd ever seen in his life. Where PCs often came back saying they were ten percent fragmented, this machine was beyond 50 percent fragged. Duke told the utility to fix the disk and headed off to lunch.

[5]IT sent the intern to sort out the nasty VP who was too important to bother with backups

[6]Why have just one firewall when you can fire all the walls?

[7]Bright spark techie knew the drill and used it to install a power line, but couldn't outsmart an odd electrician

[8]Shock horror – and there goes the network neighborhood

Some of you will already have figured out Duke's error here. This was a server, after all, and just because it looked like Windows 3.1 that didn't mean it was Windows 3.1.

It was, in fact, Windows NT 3.5. And the reason his usual defragging tool didn't want to run was because defrag.exe was written for the FAT file system that underpinned DOS, which in turn underpinned Windows 3.1. This machine was using NTFS.

So when Duke returned from lunch to find that the defragger had finished its task, he tested the machine and found that – surprise, surprise – it would not boot. There was only the plaintive error: "Operating System Not Found."

Duke's decision to defragment the hard drive had employed a tool that knew nothing about how NTFS liked to store files. He had, therefore, tossed the contents of the server's drive as if it were a data-based salad from Hell. It was completely scrambled and unrecoverable.

[9]

Thankfully, the customer had kept a full set of very recent backups (as you might expect from a firm that sends its PCs off for regular service) and the boss (who knew less about NT than Duke did) forgave the error. Duke gained some valuable experience and a doozy of a "what was the worst mistake you ever made" anecdote to whip out at job interviews.

What's your go-to "worst mistake" anecdote for job interviews? Share the wealth of your experience in [10]an email to Who, Me? and enrich the lives of your fellow readers on some future Monday morn. ®

Get our [11]Tech Resources



[1] https://pubads.g.doubleclick.net/gampad/jump?co=1&iu=/6978/reg_onprem/storage&sz=300x50%7C300x100%7C300x250%7C300x251%7C300x252%7C300x600%7C300x601&tile=2&c=2ZW2xVGRUWITe0I6mJQGytQAAAMc&t=ct%3Dns%26unitnum%3D2%26raptor%3Dcondor%26pos%3Dtop%26test%3D0

[2] https://pubads.g.doubleclick.net/gampad/jump?co=1&iu=/6978/reg_onprem/storage&sz=300x50%7C300x100%7C300x250%7C300x251%7C300x252%7C300x600%7C300x601&tile=4&c=44ZW2xVGRUWITe0I6mJQGytQAAAMc&t=ct%3Dns%26unitnum%3D4%26raptor%3Dfalcon%26pos%3Dmid%26test%3D0

[3] https://pubads.g.doubleclick.net/gampad/jump?co=1&iu=/6978/reg_onprem/storage&sz=300x50%7C300x100%7C300x250%7C300x251%7C300x252%7C300x600%7C300x601&tile=3&c=33ZW2xVGRUWITe0I6mJQGytQAAAMc&t=ct%3Dns%26unitnum%3D3%26raptor%3Deagle%26pos%3Dmid%26test%3D0

[4] https://pubads.g.doubleclick.net/gampad/jump?co=1&iu=/6978/reg_onprem/storage&sz=300x50%7C300x100%7C300x250%7C300x251%7C300x252%7C300x600%7C300x601&tile=4&c=44ZW2xVGRUWITe0I6mJQGytQAAAMc&t=ct%3Dns%26unitnum%3D4%26raptor%3Dfalcon%26pos%3Dmid%26test%3D0

[5] https://www.theregister.com/2023/11/27/who_me/

[6] https://www.theregister.com/2023/11/20/who_me/

[7] https://www.theregister.com/2023/11/13/who_me/

[8] https://www.theregister.com/2023/11/06/who_me/

[9] https://pubads.g.doubleclick.net/gampad/jump?co=1&iu=/6978/reg_onprem/storage&sz=300x50%7C300x100%7C300x250%7C300x251%7C300x252%7C300x600%7C300x601&tile=3&c=33ZW2xVGRUWITe0I6mJQGytQAAAMc&t=ct%3Dns%26unitnum%3D3%26raptor%3Deagle%26pos%3Dmid%26test%3D0

[10] mailto:whome@theregister.com

[11] https://whitepapers.theregister.com/



Even Further Back...

GlenP

defragging a disk could make a huge difference

A customer had two ACT Sirius machines, with whopping great 10MB HDs, to run Autodesk CAD. They weren't really our responsibility to support but they were complaining that saving files was becoming a huge issue, up to 20+ minutes for some designs, so I had a quick look.

Inevitably, with a small disk, low memory and an application that spewed out temporary files, the disks were so heavily fragmented it was a miracle anything ran at all. I ran defrag on both machines, ran a few more basic checks, advised the customer that removing a few older files and repeating the defrag monthly, or so, would help, and left a happy customer who could now save files in under a minute.

Cleanliness can have its downsides

Michael H.F. Wilkinson

Reminds me of the reason I installed Windows NT 4.0 on our home machine. My wife tended to clean up things on disk, which is commendable in itself, but removing autoexec.bat, command.com, or config.sys can be unhelpful. After I installed NT 4.0 and didn't give her admin rights, things somehow ran much more smoothly. She was a bit ticked off at having to log in, but at least the thing would boot up properly.

Re: Cleanliness can have its downsides

simonlb

Similar one for me: When doing 2nd line support 20-odd years ago I had to work with someone who had somehow blagged their position presumably by outright lying and never having been asked any actual technical questions in her interview. One day she's trying to remotely sort out a client's PC running XP when she puts them on hold and asks everyone across our bank of desks, "Is it ok if I delete pagefile.sys on their machine? It's taking up a lot of space." Cue everyone stopping what they are doing and looking up at her, then looking at each other, speechless.

Reminds me of looking after my parents' machine

Mishak

Dial-up internet access would fail a few times a year, necessitating a 360 mile round trip to fix it. Usual cause was dad changing settings "because".

Machine was already running NT4, and removing admin rights from his account meant it ran much better.

defrag.exe no /FORCE:Y switch?

Bebu

MS-Dos was normally such a pita with its switch syntax that I would have thought if defrag didn't detect at least something resembling a FAT file system it would have chickened out.

I have seen a system V/386 file system trashed when the PC was booted off a DOS floppy and said file system "fixed." Sorry fsck isn't now going return your data... all gone to the great archive in the sky.

Fortunately in those days almost all Unix machine ran on proprietary hardware (non intel x86) even if the CPUs (eg M680x0) weren't so this was a one off cockup and very sobering lesson for the (ir)responsible party.

Defragging isn't a big deal anymore

Tim 11

yes partly because disks are faster but mostly because 99% of PCs don't use disks nowadays

Re: Defragging isn't a big deal anymore

tiggity

@Tim 11

"yes partly because disks are faster but mostly because 99% of PCs don't use disks nowadays"

Plenty of us still running old machines (multiple in my case) with spinning rust disks rather than SSD.

It will be a while before SSD really do have 99% of the market of PCs that are still in use.

I'm sure someone can hunt some stats but I'm guessing even with current PCs that less than 99% ship with SSDs as OEMS do like to keep cheap / budget PC lines (keeping old designs and older technology chugging along) for the likes of PC World etc to flog to unsuspecting punters (most who will be blissfully aware that the "cost saving" they make buying such machines is only one metric and not factoring in the far better performance available for a slightly higher price)

Re: Defragging isn't a big deal anymore

Peter Gathercole

I don't know about you, but pretty much all of my systems, even the older ones, now have SSDs for at least their boot disk. And I'm even talking about some systems with IDE disks.

The only thing that is running spinning rust is my IBM pSeries (because SAS SSDs are still expensive), and my NAS box.

Re: Defragging isn't a big deal anymore

Korev

> The only thing that is running spinning rust is my IBM pSeries (because SAS SSDs are still expensive), and my NAS box.

The same here for the NAS, although it's getting to the point that I could afford to run SSDs now. If Synology made a NAS I wanted to buy (ie one that can do both 10Gb/s and video transcoding) then I'd probably take the plunge.

Re: Defragging isn't a big deal anymore

Killfalcon

My last spinning rust drive - either in home or office - is my aging PS4. But even so, 99% is a very large number and plenty of folk still use older machines, so I doubt it's quite that high.

It doesn't seem to be a thing that the Steam hardware survey covers, not sure if anyone else is tracking these numbers, though.

Re: Defragging isn't a big deal anymore

Peter Gathercole

..and the SSD manufacturers tell you not to defrag. SSDs, because it can shorten their lives significantly.

boot mbr etc

Prst. V.Jeltz

I've always hated getting disks to boot, specially in win2k / xp /98 days

Some times they'll stop with some message like mbr not found , and then you're screwed , in spite of a perfectly good copy of windows on the disk its a reinstall , just to make the disk bootable again .

yes there were some incantations like "fixmbr" or other stuff , but making a disc bootable seems massivley over complicated and has only got worse .

It wasnt too bad pre windows when format /s would do it , but again - that involved a format .

This days with this UIEFI thing , the OS and firmware are horribly tied together in ways i'm not gonna try to start understanding . Too old and not in that role now.

I''ve a linux machine that nearly had to be binned becuase of some "secure boot" shit that I never asked for.

I uefi/bios upgrade on my home machine resulted in non booting c drive just last week for some goddam reason Bitlocker was mentioned in various warnings/errors .

Again , never asked for that to be installed , and it seems like it wasnt - or it was but hadnt actually encrypted anything as the data was clearly visible

JUST NOT BOOTABLE ! AGAIN!

cue windows reinstall and loss of license key. (I knew the key , but seesm microsoft didnt fancy honouring it anymore)

Also this whole process seemed to finish off a 2tb backup drive , which tbf had shown errors previously but after this debacle was not retrievable with or without data .

/rant

Re: boot mbr etc

Anonymous Coward

"Some times they'll stop with some message like mbr not found , and then you're screwed , in spite of a perfectly good copy of windows on the disk its a reinstall , just to make the disk bootable again ."

Or FDISK /mbr to rebuild it, from a bootable disk.

Prst. V.Jeltz

You'd think defrag.exe would say "Hang on , this aint FAT , dont know what to do with it" rather than happily start munching away at a file system its not written for . What did it think it was doing ?

If you hired a German translator and it turns out you needed a French translator he's not gonna just start guessing and writing random English words - you'd get an error message.

Killfalcon

It's probably built to be fast, so it's going to do something like grabbing 4 bytes, treat the first three as an identifier and the fourth as a length, tag that length in bytes as that first identifier then jumping [length] bytes ahead, grabbing four bytes to get ID and lengths, jumping [length], etc, etc.

(I actually got myself into a similar mess a few years back, trying to write a world editor for Minecraft)

It's not until someone calls you up and says "your defragger ate my drive" you realise you've fucked up. Or maybe you always knew it only worked on FAT, asked the boss if there was time to add a test and they said to just put "only for FAT" in sharpie on the floppy disk and ship it.

Doctor Syntax

You'd think defrag.exe would say "Hang on , this aint FAT , dont know what to do with it"

Take a deep breath, stand back and realise this is Microsoft we're talking about. Microsoft with the Microsoft world view: "Everything is assumed to be ours.". Yes, NT was NTFS was also Microsoft's but defrag.exe was written before that existed. In the view of its authors, therefore, all disks were FAT and there was no point in even thinking they might not be, let alone testing for it.

Stuart Castle

I remember when I first left school. Doing Tech support.. I always had my box of utility floppies, including dodgy copies of both Norton Utilities (when it for was good), Norton Commander, Xtree, Sidekick and Central Point software's PC tools, and whatever other tools I could cobble up. Using that little lot, I could usually have a good go at fixing whatever problems I encountered, and even though they were illegal, Viruses weren't really a thing at the time. When they did become a thing, I just added a copy of Dr Solomon's Antivirus.

That box has long since gone, to be replaced by an external SSD containing legit copies of the software I use to fix problems.. Usually freeware or open source, but in a few cases, I have purchased licences, or been given them by my employer. My SSD is in an external case (an iodd st400) that offers the cool facility to emulate CD/DVD/Blu Rays. I know that Windows, and pretty much every other modern OS, can mount ISOs directly, but because the emulation is done by the drive itself, and appears to the host system as a USB CD drive, it's useful for booting OS ISOs, as it works in the machine's firmware.

I am a bookaholic. If you are a decent person, you will not sell me
another book.