Slashdot Mirror


Disk Drives Explained

CowboyRobot writes "Magnetic disk drives are one of those things I usually take for granted without thinking about, but I recently realized how little I understood about how they really work. ACM Queue has an article from their 'Storage' issue titled, 'You Don't Know Jack About Disks', which does a very good job of explaining exactly how magnetic disks have evolved since the 70s and how they work today."

28 of 132 comments (clear)

  1. Re:This is a great paper. by Spoing · · Score: 2, Interesting
    I do really hope there will be more introductory papers for beginners like this one, to which I could point people before another time I answer their question: "What computer should I buy?"

    That's simple; "What computer were you planning on buying?"

    I don't know your experience, though this is mine;

    I've put computers together for people, I've given them advice, I've even given them a store plus model name plus a few suggestions. I've warned people off of buying a brand, and told them that there are problems with specific hardware that they have thier eye on. All good stuff...none of it aimed toward an agenda...all focusing on what they said they want to do with a specific budget...and they always end up buying what they wanted in the first place or (if I put it together) drooling over the machine they really wanted.

    There is no other answer. Unfortunately, the same thing often applies in business though if the managers have good computers they tend to ignore what you do with the rest of the systems.

    --
    A firewall can not protect you from yourself. Turn off what you do not need. Do not use the firewall to do your work.
  2. Re:This is a great paper. by Ella+the+Cat · · Score: 4, Insightful

    If someone asks me which computer to buy, I'd like to think I could assess their level of technical understanding and their needs in under two hours, provide encouragement, explanation, and make a useful recommendation. Your attitude alienates people.

  3. Nintendo Gamecube by rf0 · · Score: 3, Interesting

    It always intresting to see how things work. Nice little thing to add to this is the way Nintendo do copy protection on their disks (although not scritly on topic). Instead of relying on heavy software encryption they went for a nice simple solution. They spin the CD-Rom the wrong way. As such you need special burners if you want to copy it.

    Now thats a neat idea

    Rus

    1. Re:Nintendo Gamecube by hbackert · · Score: 5, Informative

      Wrong. Found in many places on the Internet: like here in this GC FQA: it's not true that GC disks spin backward. You can check it out youself. Instead the CD starts at the outer part of the disk and the laser then moves towards the inside. Normal CD-ROMs and DVDs start at the inside and go outside (and slow down while doing that).

    2. Re:Nintendo Gamecube by carpe_noctem · · Score: 2, Funny

      I love people that start their posts out with "Wrong!". I was instantly convinced!

      --
      "Quoting famous computer scientists out of context is the root of all evil (or at least most of it) in programming." - K
    3. Re:Nintendo Gamecube by Anonymous Coward · · Score: 2, Informative

      It spins the disk(it's not a CD, so it's not a disc) clockwise like normal.

      It reads the disk from edge to center, which is the opposite of most other devices. There were a few very early CD players that did this too, and they weren't able to play CD singles.

    4. Re:Nintendo Gamecube by Anonymous Coward · · Score: 2, Informative

      There is no reason why the angular velocity should increase when the laser is pointed further away from the center of roation. The rate at which information is read is R * V where V is the angular velocity, and R is the distance from the center where the laser points to. The CD/DVD drive must slow down (less V) its spin as it starts to read furhter away from the center (more R) because the hardware can process information (R * V) only so fast.

  4. Funniest /.'ed message by Bob+Wehadababyitsabo · · Score: 3, Funny

    "Fatal error: Call to undefined function: message_die() in db/db.php on line 88"

    So... anybody got a mirror?

    --
    fsck -u
    1. Re:Funniest /.'ed message by AsnFkr · · Score: 4, Funny

      "Fatal error: Call to undefined function: message_die() in db/db.php on line 88"

      Yea, that is exactly how hard disks *don't* work.

    2. Re:Funniest /.'ed message by AyeRoxor! · · Score: 2, Funny

      I, too, find that message rather suspect. If message_die is an undefined function, then clearly it was placed in the code by a sabateur. A cracker? Or was it the webmaster himself, falling on his slashdot-induced sword?

      Or is it a message from the future?

      Man, I can't wait for T4.

  5. A bit more history by Mostly+a+lurker · · Score: 4, Interesting
    Although I found the article interesting in terms of the modern developments in PC hard drives, it is a little misleading concerning the overall situation in the 1970s and 1980s.

    To take the IBM mainframe example he quotes: yes, IBM originally used a CKD (count-key-data) architecture and this was still preferred in the late 1970s for highest performance applications. However, in the last 1970s, IBM already provided FBA (fixed block architecture) disk drives such as the 3370. These moved intelligence of disk geometry into the disk controller and were quite easy to program.

    Other mainframe and minicomputer manufacturers had innovative schemes during the early 1980s.

    1. Re:A bit more history by Rick.C · · Score: 4, Insightful
      When you consider that the average mainframes of the early '70s had around 512K (yes, "K") of memory (the big ones had a meg or two), you can understand the need to conserve memory. Most programs ran in 60K regions. You just didn't have room for a lot of large data buffers. CKD format allowed you to write whatever size records made sense for your application.

      The real beauty of CKD was the "K" or "key" field. If you wrote data blocks with keys, you could then ask the disk controller to search for a given key while your program was executing other code. The controller would find the matching record, read it into storage and interrupt when it was done!

      Nowadays most mainframe DASD is really RAID-1 or RAID-5 SCSI arrays that emulate CKD under the covers. With gobs of RAM and the introduction of "dataspaces", the usefulness of CKD is debatable, but like other legacy interfaces, CKD will be a long time dying.
      --
      You were 80% angel, 10% demon. The rest was hard to explain. - Over The Rhine
      "Math in a song is good."-Linford
    2. Re:A bit more history by grigori · · Score: 2, Informative

      Another thing about CKD is that early disks were unreliable and you needed to make sure you read the location you thought you were reading (like for instance if seek calibration was off), so by putting a countfield containing cyl/head/record in front of each data field you got self-identifying data. If the read CCW said gimme a particular record and the count field you actually read didnt match you could recover by reissuing the read or otherwise hiccuping

    3. Re:A bit more history by cmacb · · Score: 2

      The other thing he failed to mention (or I failed to notice) is that mainframes had ordered seek queuing since at least the 80s. Furthermore, the operating system could balance the advantage of ordering the queue to minimize seeks with other factors such as task priority, which is something the disk drive can't do.

      I'm not saying that it is a bad idea to do this in hardware, but it is just one more thing that was invented long ago on mainframes and is now "new" for PCs.

      I'm still convinced that in the long run most people will be working on something that combines the user interface of a PC with all the back-end data management activities of a mainframe (whether it is called that or not). Even now, the idea of a 4 member household having a central server and each family member carrying around a $100 laptop style i/o device makes more sense than the current model where mom and dad get a new PC and hand the old ones down to the kids.

  6. Re:This is a great paper. by Anonymous Coward · · Score: 2, Interesting

    I don't know about you, but 99.9% of the the time the people that ask me about a computer:

    a) have no clue about the difference between hard drive space and RAM memory.

    b) "just want to get online", but have no clue what that really means.

    I've set a few people up with old PII/350's, just to get them a computer in the first place... it gets them online and they can browse the web, email, etc. I tell them, rather than spend $1000 today to buy a machine, spend it next year and use the 350 to get a clue about what it is you want.

    It works. Generally they buy some game that won't run well on less than an 833 or something, and while they still don't know what the difference between a "megahertz" and a "gigahertz" (and no, trying to explain the metric system to them doesn't work), they at least have a better idea of what a computer *is* and what they want to do with it.

    *Then* I make a recommendation on what they need based on what they want to do with it.

  7. Magentic disk drives are bad for environment by Krapangor · · Score: 5, Insightful
    The magenic layers contain very large amounts of chrome-oxides and other heavy metals and rare elements. This makes disk drives a huge problem in the disposal of old computers.
    Furthermore the rare element production takes often place in very anarchic countries like Kongo or Liberia. Usually warlords and local terrorists use the money from the disk drives rare elements to finance their blood raids and terrorship.
    That's btw the reason why the US were setting up Kabila in Kongo. This guy was killed, but only because the French were more clever.

    So, instead of this old technology which is going to be phased out in 5 years anyway, you should use more modern flash/ram disks and DVDs for data storage, just for moralic reasons.
    Think about it: If you refuse to buy bananas or big name brands because of the cruel, inhumane exploitation of the third-world workers, then you should do the same in IT and avoid disk drives.

    --
    Owner of a Mensa membership card.
    1. Re:Magentic disk drives are bad for environment by Reziac · · Score: 2, Insightful

      A LOT of mining, of every sort, takes place in underdeveloped countries. Check out, frex, the issues involved with bauxite mining in the 3rd world (bauxite is the ore from which aluminum is extracted, using vast amounts of electricity in the process. Don't DVDs use an aluminum layer? Doesn't that DVD drive have an aluminum frame?)

      Take away the mining industry, and what do you have? A lot of now-unemployed miners with NO other work available, and reduced cash flow in a country that's already strapped, thus making it even harder on their average citizens. This effectively duplicates the situation with Cuba, which hasn't done a thing to improve conditions there. Quite the reverse.

      I've seen firsthand what happens when a one-note economy (as most mining-dependent economies are) is shut down: 90% unemployment and long-term economic disaster. Anyone from Butte, Montana, who remembers when the copper mine was shut down, can verify this. Imagine what happens in a country with no support infrastructure for the unemployed.

      --
      ~REZ~ #43301. Who'd fake being me anyway?
  8. Relevant Link... by henele · · Score: 4, Informative

    There are probably lots of articles on the subject that can be bought up with a quick search, but my favourite broad explanation site has their definition here.

  9. All you want to know about by Cee · · Score: 5, Informative

    Well, there's an interesting article about hard drives here. Watch out, though, it's quite long and it's an easy way to waste some hours... But sure you wanted to know why we don't need to park the hard disk's heads anymore? =) Or, that in fact, there are holes in the hard drive, so it can "breathe".

  10. Referenced PDF by Helmholtz · · Score: 4, Informative

    On page 6 (ATA versus SCSI) Mr. Anderson (insert matrix joke here) references "ATA versus SCSI: More Than an Interface," by Dave Anderson, Erik Riedel, and Jim Dykes.

    The pdf can he had here: ATA_vs_SCSI

    I thought it was quite an interesting read, and an excellent companion piece to the "You Don't Know Jack about Disks" article.

    --
    RFC2119
  11. Still some ways from HD replacements. by MtViewGuy · · Score: 2, Informative

    Unfortunately, we're still quite a ways from developing solid-state drives cheaply that can finally compete against today's hard drives.

    I think within the next 15 years we will finally see the breakthrough that will essentially turn our primary storage into physically-removeable cartridges of solid-state non-volatile memory storing over 250 GB of data on a cartridge somewhat smaller than the physical dimensions of a 3.5" floppy drive. And unlike today's non-volatile memory, the new solid-state memory can be erased many trillions of times without affecting the life of the memory.

    The big advantage of solid-state storage is that since the delay in reading and writing data is a tiny fraction of that of hard drives, they could access data at extraordinarily fast speeds. Imagine loading something like Windows 2000 Professional in under two seconds from start to finish! :-)

    1. Re:Still some ways from HD replacements. by gTsiros · · Score: 2, Informative

      The delay in booting an OS is not caused from the data transfer of HDs. Look at linux booting and you will understand. There are lots of devices that need configuration and that takes time, for reasons unknown to me tho.

      Really, why does configuring non-mechanical devices so long? Why does the bios check take so awfuly long? Shouldn't a mobo that has a bus running at 133MHz actualy be up in milliseconds?

      --
      Looking for people to chat about multicopters, coding, music. skype: gtsiros
  12. Re:This is a great paper. by chamenos · · Score: 2, Interesting

    second that. not only do they blame you for everything, they'll treat you as a repairman, calling you up anytime they have a "problem" and expecting you to give them the same service as a paid technician. its nice when people appreciate my efforts, but for the most part its quite pointless. i now restrict my services to close friends only who have manners and don't behave like i owe it to them.

  13. Re:This is a great paper. by archen · · Score: 2, Insightful

    I've set a few people up with old PII/350's, just to get them a computer in the first place..

    I get similar requests about "what computer should I buy" at work, and usually a 350 is about all they need. But I still get "Is this the fastest you can get? Because I don't want to upgrade in 2 years". Well they'll probably upgrade in 2 years anyway or they wont reguardless of speed. So I just recommend they get some computer with an Athlon (not Duron) and that they don't spend more than $650 on it. Most other questions about RAM and disk space are moot because they're enough for most users now days even at the low end, and I don't want to get into explanations they probably won't understand.

    If people want really advanced advice I usually only explain that they want a really good power supply, and a good main board (MSI makes pretty decent ones in my experience). Two critical components that no one ever looks at because they're focused on the processor.

  14. Well... by mraymer · · Score: 4, Funny
    I think acmqueue.org just learned something new about hard disks. Namely, that they turn into a pile of warm liquid goo after a severe slashdotting...

    --

    "To confine our attention to terrestrial matters would be to limit the human spirit." -Stephen Hawking

  15. Aha! by bythescruff · · Score: 3, Funny

    Fatal error: Call to undefined function: message_die() in db/db.php on line 88

    Yup, my hard drive did that a few weeks ago...

    --
    Chuck Norris: Socialism == a thousand years of darkness.
  16. Re:he forgot to mention..... by vadim_t · · Score: 3, Interesting

    You probably mean you used one of those compression programs like Stacker or Double/DriveSpace.

    The problem is that they don't know how much disk space you have, since it depends on the compressability of the data. Sometimes you would need to write something large to the drive, and the installer would tell you that there's not enough space, although it would have fit. That happens because some data compresses really well. A MP3 won't compress at all, but something like a 16 color image might compress really well.

    So, for these cases you can adjust the estimated compression ratio. You tell the program you expect files will compress to 1/8 of their size, and it adjusts the free space estimation. That's all. Data won't compress any better because of it. I saw lots of people setting a huge compression ratio thinking that seeing 10 times more "free space" would somehow let them put 10 times more stuff on it.

    For a demonstration, I made a "32 MB" 1.44MB floppy, and showed how it got full with 2 MB of files.

  17. Text of article by onomatomania · · Score: 3, Informative

    Here are direct links to the figure images:

    Figure 1
    Figure 2
    Figure 3
    Figure 4
    Figure 5
    Figure 6
    Figure 7
    Figure 8
    Figure 9

    Magnetic disk drives have been at the heart of computer systems since the early 1960s. They brought not only a significant advantage in processing performance, but also a new level of complexity for programmers. The three-dimensional geometry of a disk drive replaced the simple, linear, address spacetape-based programming model.

    Whatever happened to cylinders and tracks?

    Traditionally, the programmer's working model of disk storage has consisted of a set of uniform cylinders, each with a set of uniform tracks, which in turn hold a fixed number of 512-byte sectors, each with a unique address. The cylinder is made up of concentric circles (or tracks) on each disk platter in a multiplatter drive. Each track is divided up like pie slices into sectors. Because any location in this three-dimensional storage space could be uniquely identified by the cylinder number, head (surface) number, and sector number, this formed the basis for the original programming model for disk drives: cylinder-head-sector access.

    This raises the question: If that is how data is stored on a drive, why don't we still use that as the programming model? The answer is not an easy one but has its roots in the fact that this geometric model endured until the advent of the intelligent inter-faces, SCSI and ATA. [The IBM mainframe world used a slightly different model, allowing tracks to be written with records (blocks) of user-defined length. An individual track could have sectors of different sizes. As one who programmed count key data (CKD) storage, I can attest that it offers the application wonderful flexibility, but the drive design challenges have relegated it to history. Also, a purist might point out that standards etiquette calls for SCSI to use blocks and ATA to use sectors, but I will use these terms interchangeably.]

    Disk-interface protocols implement the programming model for disk drives. The earlier drive interfaces did little more than expose signals to let the host directly manipulate the drive mechanism and initiate a transfer of data at a target location. This put the task of dealing with all the low-level idiosyncrasies peculiar to drives on the programmer charged with developing the firmware or software support.

    The introduction of ATA and SCSI fundamentally changed this. Table 1 describes the migration of intelligence from host to drive in the evolution of the more important interfaces. With these intelligent interface protocols, the task of programming the use of disk drives became much easier. Disk-drive designers also gained a freedom of action needed to design higher-capacity and higher-performance drives. I will look at just how drive designers used this freedom of action in their designs, but it is important first to understand the fundamental goal behind drive design: increasing areal density.

    DAVE ANDERSON, director of strategic planning for Seagate Technology, has more than 20 years of experience in the computer field. His responsibilities include overall strategy for all disk interfaces. He has been involved in the architecture and planning of Fibre Channel since it was first proposed as a disk interface. He was also one of the principal architects of the disk XOR commands that are now a part of the standard