Out Of Space?

My mother recently complained to me about a memory stick. She was trying to copy some photos on to it, but after a while, it just stopped saying “out of space”. So she took a look at it and found about 1.5Gb of free space. Weird.

Eventually, when I ended up looking at it, the first thing I noticed was how many files were on it. 512 exactly. A suspiciously round number. And when I fired up Disk Utility, it confirmed my suspicions: the memory stick was formatted with FAT16, which only allows 512 entries in the root directory. Thank you very much, you fool of a manufacturer.

Anyway, reformatting it with Disk Utility managed to turn it into a FAT32 filesystem with suitably larger limitations.

Actually, before I spread too much blame, it may be down to some weird licensing arrangement.


Nostalgia (not by Veidt)

I was thinking about what I needed to do tomorrow. One of the tasks involved writing a DOS batch file for a colleague. That got me thinking. When did I learn to write batch files? Scarily, I realised it was 20 years ago. I must have been 14 at the time. I had an Amstrad PC 1512 and I wanted to learn everything about it (and play Ultima V a lot).

So, I spent ages reading help, playing with commands to see what they did. I even managed to get a book or two (if the books seem expensive now, they’re even more to a 14 year old with practically no income).

Learning batch files was pretty much mandatory — you had to configure AUTOEXEC.BAT somehow. But learning why you needed to prefix “echo off” with an @ was fascinating[1].

Somehow this information has stayed relevant a lot longer than I thought it would. Certainly longer than the DOS assembly coding I did (a PSP was a Program Segment Prefix long before it was a Play Station Portable — but who cares these days?).

I had little realisation quite how bad batch files really were until I came across sh on SunOS 4 at University. The whole Unix thing (including the culture) was pretty mind-blowing.

I guess I’ve just officially joined the “old farts” club. 🙂

1 “echo off” stops outputting commands to the console. But the “echo off” itself has already been output to the console by that point. The @ in front stops that. Looking back now, it seems remarkably similar to the syntax used by make(1).