Slashdot Mirror


Build Your Own SATA Hard Drive Switch

Mikey Win writes "ExtremeTech shows us a cool hardware hack that allows multiple operating system to boot without dealing with any tedious BIOS setup changes. How? By building your own SATA hard drive switch. The result? You can expect a longer hard drive life span, power supply load reduction, and partitions protected from becoming overwritten or corrupted."

131 comments

  1. Dubious claims by MrEricSir · · Score: 3, Funny

    "You can expect a longer hard drive life span"

    Well, assuming you build it right.

    --
    There's no -1 for "I don't get it."
  2. Mad scientist hard drive switch by Captain+Spam · · Score: 5, Funny

    Hrmph. Call me when the switch in question is tied to a massive, mad scientist-quality switch, clearly labeled in big letters with "LINUX" on one side, "WINDOWS" on the other. It should also make a satisfying mechanical switching noise whenever I pull it. And if you can make lightning crack outside my window every time, that'd be nice, too.

    --
    Demanding constant attention will only lead to attention.
    1. Re:Mad scientist hard drive switch by Midnight+Thunder · · Score: 4, Funny

      Hrmph. Call me when the switch in question is tied to a massive, mad scientist-quality switch, clearly labeled in big letters with "LINUX" on one side, "WINDOWS" on the other. It should also make a satisfying mechanical switching noise whenever I pull it. And if you can make lightning crack outside my window every time, that'd be nice, too.

      I'll get Igor to start work on that right away.

      --
      Jumpstart the tartan drive.
    2. Re:Mad scientist hard drive switch by pipingguy · · Score: 2, Funny

      That's "Eye-gore".

    3. Re:Mad scientist hard drive switch by The+Yuckinator · · Score: 3, Funny

      I think you mean iGor, the Mad Scientist's assistant for the 21st Century.

    4. Re:Mad scientist hard drive switch by dgatwood · · Score: 1

      I think you mean iGore, a member of Apple's board.

      --

      Check out my sci-fi/humor trilogy at PatriotsBooks.

    5. Re:Mad scientist hard drive switch by Anonymous Coward · · Score: 2, Funny

      No, I'm pretty sure that's aGore, the guy who created the internet.

    6. Re:Mad scientist hard drive switch by ByTor-2112 · · Score: 2, Funny

      You might be confusing him with iGor, inventor of the iNet.

    7. Re:Mad scientist hard drive switch by xarium · · Score: 1

      You misspelled iGouge.

    8. Re:Mad scientist hard drive switch by rubycodez · · Score: 1

      and I'd better hear "it's.......Aliiiiiiiiiiiiiiive!" with that crack of lightning.

    9. Re:Mad scientist hard drive switch by Grindar · · Score: 1

      so, a change of state triggers a relay that ignites the tesla coil outside your window.... This could be done.

    10. Re:Mad scientist hard drive switch by hawk · · Score: 1

      But he won't allow the lightning requested. Something about ozone . . . :)

      hawk

  3. I like it by John+Napkintosh · · Score: 3, Informative

    Low tech and simple. The only thing I might do differently is attach the rotary knob to an unused PCI backplane thingy instead of an unused drive bay - would make it harder for inquisitive people/pets to crash things.

    --

    Long signatures suck.
    1. Re:I like it by Anonymous Coward · · Score: 0

      How bad would such a situation be? Obviously your machine would crash. Would it, for all intents and purposes (or intensive purposes, your choice), be the same as a blackout?

      Or is there some reason that throwing the switch while running would be worse? Communications meant for drive 1 will now be going to drive 2 (which is just powering up)...?

    2. Re:I like it by 0racle · · Score: 2, Insightful

      I would have to say that removable disk caddies would be more low tech, less error prone, simpler, and safer to both the drive and the drives warranty.

      Show me how to make or point me in the right direction to making a big red ABORT button for my computers and that's a project I can get behind.

      --
      "I use a Mac because I'm just better than you are."
    3. Re:I like it by John+Napkintosh · · Score: 1

      Well that's pretty darn easy, depending on what you want that abort button to DO. :)

      --

      Long signatures suck.
    4. Re:I like it by jandrese · · Score: 2, Informative

      The problem with swapping disks constantly is that most drive connectors (don't know about SATA specifically) are really only designed to be swapped a few hundred times at most. The mechanical stress of constantly unplugging and replugging the drive could very well lead to stress fractures in the connector, especially since they're often held on with just solder.

      --

      I read the internet for the articles.
    5. Re:I like it by Hyppy · · Score: 1

      Drive corruption could easily result. Write caches that aren't backed up by battery don't play nicely with power outages.

    6. Re:I like it by LWATCDR · · Score: 1

      The connectors on drive caddies are rated for like 10k operations.

      --
      See my blog http://ilovecookes.blogspot.com/ for light hearted technical information.
    7. Re:I like it by turgid · · Score: 2, Informative

      After just a couple of dozen swaps, SATA connectors will start to fail. Both the cables and the boards/drives. I know this from bitter experience "enhancing" and testing the very poorly-designed software upgrade mechanism for a storage appliance.

    8. Re:I like it by harrkev · · Score: 3, Informative

      After giving the article a quick skim, it also looks like they switched the ground wires too, which is unnecessary. All you really need to do is to switch the red and yellow wires (+12V a,d +5V). They can all share ground no problem.

      --
      "-1 Troll" is the apparently the same as "-1 I disagree with you."
    9. Re:I like it by John+Napkintosh · · Score: 1

      When using a drive caddy, are you actually dis/connecting from the HDDs connectors each time?

      I assumed that most caddies these days have a separate connector between the caddy and carrier which is being dis/connected, but the HDDs connectors are never dis/connected from the caddy unless you are disassembling the caddy.

      --

      Long signatures suck.
    10. Re:I like it by gweihir · · Score: 5, Informative

      In fact switching the ground wires under power gives you a high risk of blowing up your drives: If you use a non-bridging switch (or it does not make perfect contact, as cheper ones may do after some time), you can have a situation where +5V and +12V have contact, but ground does not. This typically leads to immediate death of the whole drive electronics.

      These people have no clue what they are doing.

      --
      Most ACs are not even worth the keystrokes to insult them. Be generically insulted by this and ignored otherwise.
    11. Re:I like it by Culture20 · · Score: 3, Informative

      SATA drive "caddie" manufacturers went cheap when they found out that SATA data and power plug-n-chug easily. Most are just a simple tray to hold-in/lever-out a drive. Even a lot of reasonably old SCSI caddies are this way (but the connectors are much more solid). They're nothing like the IDE/ATA caddies of yore.

    12. Re:I like it by HeronBlademaster · · Score: 1

      My SATA hard drive once flew out of my laptop (literally across the room) when I dropped it. I just popped it back in and used it for several more hours, nothing died.

      Granted, I don't think anything was actually running at the time (just the OS), but nothing bad happened.

    13. Re:I like it by Wintermute__ · · Score: 1

      Most hot-swap drive caddies these days are just rails that you screw onto the sides of the drive. The drive connectors plug directly into the backplane.

    14. Re:I like it by harrkev · · Score: 2, Insightful

      In general, switching this thing while the computer is running would, at least, cause massive problems for any OS that happened to be running. So this is something to be avoided in any case.

      --
      "-1 Troll" is the apparently the same as "-1 I disagree with you."
    15. Re:I like it by Walpurgiss · · Score: 1

      Write caching aside though, I think most SATA drives 'support' hot swapping, so if one were to disable write caching, wouldn't there be no danger of corruption unless they were switched during an actual write?

      Wouldn't be very practical for a boot drive, but you could 'hide' a porn drive from the wife/kids...

    16. Re:I like it by gweihir · · Score: 3, Insightful

      In general, switching this thing while the computer is running would, at least, cause massive problems for any OS that happened to be running. So this is something to be avoided in any case.

      Not necessarily. If you unmount (safely remove for Windows) the running drive before swithcing it off, it is fine and just corresponds to a hot-unplug followed by a hot-plug. Doing it for a mounted drive (as, for example, the system drive) is indeed a very bad idea. For a data drive, it can make sense.

      --
      Most ACs are not even worth the keystrokes to insult them. Be generically insulted by this and ignored otherwise.
    17. Re:I like it by HTH+NE1 · · Score: 1

      I prefer screwless caddies. I don't want to have to buy a caddy for each drive nor do I want to have to unscrew a caddy from one drive just to screw it onto another one.

      That said, the caddies for the SATA drives of a Mac Pro are tolerable to me. Only two screws to the base of the drive and they're big enough to turn with your fingers. Better though if they had wingnut heads for greater leverage.

      That said, when it was time to move from 500 GB to 750 GB internal drives, I bought myself a stage rack. Drop a bare drive in it and it connects via USB, Firewire 400/800, or eSATA, my choice. Pulled the data off the 1.5 TB raid to two un-RAIDed 750 GB drives, then swapped them out three-for-three. 500 GBers now live in my drobo.

      I could probably boot off the stage-rack drive if I wanted to, except that Boot Camp disables the extra two SATA ports on the mobo.

      --
      Oh, say does that Star-Spangled Banner entwine / The myrtle of Venus with Bacchus's vine?
    18. Re:I like it by StikyPad · · Score: 1

      Not to mention that putting a switch to disconnect a primary hard drive on the front of a case is just plain stupid.

      I fail to see how this promotes longer hard drive life than changing the BIOS settings, let alone using a bootloader. And mounting a non-native filesystem as read/write is something you're very unlikely to do by mistake in ANY operating system in the first place. Any additional "protection" you'd get from this is almost purely imaginary, unless you're trying to protect yourself from random people screwing with your system, in which case I'd be more worried about the HARD DRIVE SWITCH ON THE FRONT OF YOUR CASE.

    19. Re:I like it by nizo · · Score: 1

      This item is nice:
      http://www.newegg.com/Product/Product.aspx?Item=N82E16811998021

      It is a tray, but it also has a little button on the front that lets me turn the disk on or off (before the machines boots obviously). Two of these would probably do exactly what you want to do, assuming you only had one on at a time.

    20. Re:I like it by gweihir · · Score: 1

      Indeed.

      --
      Most ACs are not even worth the keystrokes to insult them. Be generically insulted by this and ignored otherwise.
    21. Re:I like it by hannson · · Score: 1

      Isn't it possible to not switch off the ground, so both drives are grounded but only one gets electricity?

      Anyway, IMHO this idea is too simple and not really newsworthy... geeks don't need a tutorial for a glorified power switch.

    22. Re:I like it by Anonymous Coward · · Score: 0
      "My SATA hard drive once flew out of my laptop (literally across the room) when I dropped it..."

      Write caching aside though, I think most SATA drives support 'hot swapping', so if one were to disable write caching, wouldn't there be no danger of corruption unless they were switched during an actual write?"

      There, fixed that for you.

    23. Re:I like it by gweihir · · Score: 1

      Actually, permanently connected ground wires are the only sane design option here.

      I agree about this incompetent hack not being newsworthy.

      --
      Most ACs are not even worth the keystrokes to insult them. Be generically insulted by this and ignored otherwise.
    24. Re:I like it by Grishnakh · · Score: 1

      It's not being cheap, it's just eliminating unnecessary expense and complexity. The SATA/SAS data and power connectors were explicitly designed to be easily hot-swapped, so that extra connectors on the caddies wouldn't be needed. Notice that the SATA/SAS connectors have guide pins on them to ease mating when being slid into a drive bay, and that certain pins on the connectors are longer than others, so they'll make contact first. These drives were designed to be hot-swapped from the beginning. It would be stupid and pointless to engineer a caddy with its own connectors for these drives.

    25. Re:I like it by Grishnakh · · Score: 1

      The longer life comes from not powering up a drive that you're not going to be using. What you're talking about, with a bootloader, involved spinning up both(/all) drives and leaving them running, even if you're only going to be using one.

      Common sense dictates that a drive will last longer if it isn't run for as long.

    26. Re:I like it by atamido · · Score: 1

      Removing a running drive is (on the data storage side) essentially the same as cutting power the the PC while it is running. Maybe you'll get data corruption, but you'll probably be fine.

      The SATA specification calls for drives to be hot pluggable, so the drive shouldn't experience any hardware failures. But the controller may not be designed to handle hot plugging a drive, so you risk damaging the system with such a move.

    27. Re:I like it by Anonymous Coward · · Score: 0

      With a bit of luck the drive is still grounded through the computer case and the ground in the SATA data cable, so this could be relativly save, but still just as pointless. Just use boot manager (grub) to choose an OS, and let the OS spin down the drives that are not needed.

    28. Re:I like it by mattib · · Score: 1

      I believe the host os can order the drives to spin down if they're idle for a certain time.
      Why not just use the feature?

    29. Re:I like it by gweihir · · Score: 1

      Well, yes. With a bit of luck even the ground connectiosn in the data cables will be enough. But this is not the way to treat a valuable (from its contents) computer part.

      --
      Most ACs are not even worth the keystrokes to insult them. Be generically insulted by this and ignored otherwise.
  4. Signal But no Power == BAD? by Anonymous Coward · · Score: 2, Interesting

    Something tells me this is probably not a good idea.

    Having a signal connected to the hard drive, and no power applied, at least in a traditional TTL or CMOS circuit, is not a good idea.

    Since SATA is based on LVDS, this might not suffer from the typical CMOS or TTL problems, but I would investigate it a bit further.

    1. Re:Signal But no Power == BAD? by gweihir · · Score: 3, Informative

      Having a signal connected to the hard drive, and no power applied, at least in a traditional TTL or CMOS circuit, is not a good idea.

      Since SATA is based on LVDS, this might not suffer from the typical CMOS or TTL problems, but I would investigate it a bit further.

      SATA has coupling capacitors, so this is not a problem.

      --
      Most ACs are not even worth the keystrokes to insult them. Be generically insulted by this and ignored otherwise.
    2. Re:Signal But no Power == BAD? by Anonymous Coward · · Score: 0

      "SATA has coupling capacitors, so this is not a problem."

      Sure, but this does not fully solve the problem. The SATA lines are toggling, in AC, the capacitors are being charged, and the powered-down ANALOG circuitry is going to want to discharge that power, somewhere.

      The digital logic is also powered down, and you have two power domains at different potentials, neither of them in valid logic states.

    3. Re:Signal But no Power == BAD? by gweihir · · Score: 1

      Sorry, you do not undertand digital design. This is a differential, digital connection and of course the inputs have protection circuits. The risk without the coupling capacitors is not to the signal circuitry, but to the protection circuit.

      --
      Most ACs are not even worth the keystrokes to insult them. Be generically insulted by this and ignored otherwise.
  5. Hot swapable drive caddy. by LWATCDR · · Score: 1

    They are cheap.
    They don't invalidate your drives warranty.
    Will do accomplish the exact same task.

    --
    See my blog http://ilovecookes.blogspot.com/ for light hearted technical information.
    1. Re:Hot swapable drive caddy. by Hyppy · · Score: 1

      I'm not sure if I understand you correctly, but it seems like you're implying that this procedure is a) expensive, and b) invalidates the drive's warranty.

      I believe that it is neither of those.

    2. Re:Hot swapable drive caddy. by LWATCDR · · Score: 1

      Actually the article on extreme tech implies that it does.
      Also I am not sure of what might happen if you switched the drives with the power on. I do know what will happen if you do switch it while the drive is writing. A caddy often will have a nice safe lock so it is a lot less likely than bumping a switch.
      And since I have seen SATA drive caddys that cost under $14 so I am not sure that this switch is any cheaper.

      --
      See my blog http://ilovecookes.blogspot.com/ for light hearted technical information.
    3. Re:Hot swapable drive caddy. by Pharmboy · · Score: 1

      Ive been using drive caddies for years. I even have a couple of old drives (250mb IDE) with dos and WFW3.11 (and trumpet winsock) on them, for grins and giggles. I do need to update to SATA caddies, which I have been putting off until the majority of my systems are SATA2, which will happen next week.

      Caddies make testing new OS's and configurations so much easier and safer, it more than pays for the expense and the very minor hassle of installing the tray assembly in a CD ROM bay. Of course, with SATA, using an external box will be much easier.

      --
      Tequila: It's not just for breakfast anymore!
  6. How is this a SATA switch? by james_shoemaker · · Score: 5, Insightful

    It's just a drive power switch. I was expecting the actual SATA connection to be switched not just the power to the various drives.

    1. Re:How is this a SATA switch? by Chabo · · Score: 1

      Well, if you include a few more pins, then you should be able to merely extend the current design to include the data cables...

      --
      Convert FLACs to a portable format with FlacSquisher
    2. Re:How is this a SATA switch? by gabebear · · Score: 4, Interesting

      I was excited about building an active SATA multiplexer... but this is just dumb. I did something similar a long time ago with IDE drives; instead of powering one drive down I had the switch attached to jumper positions so that the switch controlled master/slave.

      Sata Hub (but not a switch)-> http://www.cooldrives.com/sahub5muussi.html

    3. Re:How is this a SATA switch? by Fourier · · Score: 3, Informative

      Well, if you include a few more pins, then you should be able to merely extend the current design to include the data cables...

      Only if you want to deal with a bunch of CRC failures. You can't really expect to be able to mess around with signal lines when you're switching at 1.5 or 3.0 Gbps.

    4. Re:How is this a SATA switch? by Chabo · · Score: 1

      Data cables that are much shorter than the standard allows usually can have many more defects in them without being out-of-spec on the electrical characteristics. Even with the switch, you'd likely still be running over significantly less than 1 meter. I'd be willing to believe that if you did a half-decent job of putting the switch together, you could make it work.

      --
      Convert FLACs to a portable format with FlacSquisher
    5. Re:How is this a SATA switch? by owlstead · · Score: 1

      Why? The drives would still spin up if they are still connected to power, and if SATA drives are not accessible without power anyway, why would you mess with the data lines? These are high speed serial connections, not something you want to mess with. And they are point to point, so there is little chance of them messing other components. Personally, I think it is a reasonably good idea. Switching off the drives in the BIOS is definitely more work, and you will still spin the drives if you do it like that.

    6. Re:How is this a SATA switch? by gweihir · · Score: 1

      I was expecting the actual SATA connection to be switched not just the power to the various drives.

      Very difficult. The lines have an allowed time skew of 1.5ps (pico-seconds). That is 0.45mm wire length (1/56" for the metrically challenged) assuming lightspeed. Not easy to do.

      --
      Most ACs are not even worth the keystrokes to insult them. Be generically insulted by this and ignored otherwise.
    7. Re:How is this a SATA switch? by cstdenis · · Score: 1

      Shouldn't be a problem.

      http://www.smcelectronics.com/switch.htm Search for SW20. Enough pins there for a pata cable.

      --
      1984 was not supposed to be an instruction manual.
    8. Re:How is this a SATA switch? by Fourier · · Score: 3, Interesting

      I've helped to guide a bunch of SATA boards from prototype to product. From personal experience, I can tell you that a switch put together "half-decently" is very likely to result in unreliable SATA communication.

    9. Re:How is this a SATA switch? by mako1138 · · Score: 1

      With signals over 1 GHz, it's a different story. Cable length is no problem, since the cable (in other words, the transmission line) is built to spec. What kills you are the discontinuities -- discontinuities create reflections and distortions. A "decent" switch is going to require some serious RF engineering, and will be expensive.

    10. Re:How is this a SATA switch? by WeblionX · · Score: 1

      You can get high-speed ICs made for switching signals like this. Of course, you'd need to make a pretty good circuit board for this to not have problems, but there are quite a few low-volume board creation services out there that can make boards for you if you have a good circuit design ready.

      --
      (\(\
      (=_=) Bani!
      (")")
    11. Re:How is this a SATA switch? by JiffyPop · · Score: 1

      So I'm not the only one! I did that almost a decade ago, and that computer is still kicking around the basement. I switched between Win98 and Win2k. Today I would just toss in GRUB and call it a day (which is exactly what I did to get my laptop running Ubuntu/WinXP/Vista).

    12. Re:How is this a SATA switch? by Grishnakh · · Score: 1

      Did you even read this article? People who would put together a toggle switch like this are not the kind of people who can design a PCB using high-speed ICs suitable for switching 3.0Gbps LVDS signals.

  7. Doesn't supply 3.3v by TheThiefMaster · · Score: 2, Insightful

    The pictures seem to be using a molex->sata power adapter, which doesn't support the 3.3v line. This means that some drives won't work with it.

    1. Re:Doesn't supply 3.3v by Chabo · · Score: 1

      http://en.wikipedia.org/wiki/Serial_ATA

      Adaptors exist which can convert a 4-pin Molex connector to a SATA power connector. However, because the 4-pin Molex connectors do not provide 3.3 V power, these adapters provide only 5 V and 12 V power and leave the 3.3 V lines unconnected. This precludes the use of such adapters with drives that require 3.3 V power. Understanding this, drive manufacturers have largely left the 3.3 V power lines unused. However, without 3.3 V power, the SATA device may not be able to implement hotplugging as mentioned in the previous paragraph.

      I haven't come across a single SATA device that won't work with a Molex->SATA power adapter. Do you have examples?

      --
      Convert FLACs to a portable format with FlacSquisher
    2. Re:Doesn't supply 3.3v by TheThiefMaster · · Score: 1

      I haven't come across a single SATA device that won't work with a Molex->SATA power adapter. Do you have examples?

      No. But leaving something out because you don't think it's used is stupid, and just asking for compatibility problems. Also note that the section of article you quote implies that such drives exist (italics mine):

      Understanding this, drive manufacturers have largely left the 3.3 V power lines unused.

    3. Re:Doesn't supply 3.3v by Chabo · · Score: 1

      I know that the article implies that devices exist which require 3.3v, but from my experience it doesn't really seem to be an issue. If you can find an example, I'd love to hear of it.

      On the other hand, if you wanted to do this hack on a fully-compliant SATA power cable, the best way would likely to get a modular power supply, and cut up the SATA power cable that comes with it.

      --
      Convert FLACs to a portable format with FlacSquisher
    4. Re:Doesn't supply 3.3v by owlstead · · Score: 1

      Yup, and you can get cheap USB to SATA, PATA and "laptop" PATA controllers that come with such a modular power supply. You will basically get the USB to SATA/PATA for free. Certainly an option, but I would make sure that everything is earthed and on the same power outlet. And this is of course the major drawback: more power bricks and more usage of already sparse power outlets.

      Mine has a molex connector by the way, so it only does 5V and 12V, not 3.3V.

    5. Re:Doesn't supply 3.3v by HeronBlademaster · · Score: 1

      The article implies that the drives which use the 3.3V line are the ones that support hotplugging:

      However, without 3.3 V power, the SATA device may not be able to implement hotplugging as mentioned in the previous paragraph.

      It doesn't say it directly, sure, but it does imply that drives that support hotplugging probably need the 3.3V line, so it is logical to conclude that existing drives using the 3.3V line are probably hotpluggable.

    6. Re:Doesn't supply 3.3v by Chabo · · Score: 1

      I preface this statement by repeating "in my experience..."

      But as far as I can tell, drives that use the 3.3V line for hotplugging just disable hotplugging support when they don't get the 3.3V. They're still usable, just without that feature. I've used some drives that supported hotplugging with a native SATA power connection, but still worked with a Molex->SATA adapter.

      I've never come across a SATA device that just flat-out refused to operate if it wasn't fed 3.3V.

      --
      Convert FLACs to a portable format with FlacSquisher
  8. Grub by jgtg32a · · Score: 5, Insightful

    Do people really think that Grub is that hard or this just another case of because we can.

    1. Re:Grub by Smidge207 · · Score: 0

      No, but Bootcamp is a lot harder than Grub, though. ;-)

      =Smidge=

      --
      Is it just my observation, or is eldavojohn an idiot?
    2. Re:Grub by Anonymous Coward · · Score: 0

      I heard you were lucky to get grub in bootcamp.

    3. Re:Grub by EvilIdler · · Score: 1

      I find F8/F12 at reboot even easier.

    4. Re:Grub by heson · · Score: 1

      Or that pressing F12 is a problem or that they buy too cheam mobos.

    5. Re:Grub by owlstead · · Score: 1

      Basically I want the other OS to not access my hard drive at all. I'm not sure I would go the way the author of the article did, but using Grub or F8/F12 certainly has drawbacks. And yes, Grub and Windows (or actually, Windows and Grub) won't always play nice to each other. I had big problems when I transferred a partition over to another hard drive (well, as I know how to get into Windows and fix the MBR, it was not that hard, but it will serve as an example).

    6. Re:Grub by Pentium100 · · Score: 2, Interesting

      I don't know if this works with grub, but it worked with lilo when I tried.

      1.Install the linux bootloader to the first sector of the linux partition.
      2.Export that sector to file (dd if=/dev/hda6 of=linux.bin bs=512 count=1) where /dev/hda6 is your linux partition.
      3.Copy the linux.bin file to your Windows C: drive.
      4.Open your C:\boot.ini file and add C:\linux.bin="Linux" after the last line.

      You can now use Windows bootloader to choose between Windows and Linux.

    7. Re:Grub by owlstead · · Score: 1

      It may work with Grub or it may not, but am I going to try it out? No chance in hell. Backups only get you so far. And this is why I think the solution in the article is valid. If perhaps for a small audience, but I presume the author new that when he started to solder things to his case :)

  9. BIOS can select the boot disk by Anonymous Coward · · Score: 0

    A nice and simple mod, but do they still ship BIOSes that don't have a select boot disk option?

    Like "Press Delete to enter BIOS setup, ESC to select boot disk."

    Last time I installed Linux I was too lazy to disconnect the other OS's disks. Using Grub again, for the first time in years. Wish me luck...

    1. Re:BIOS can select the boot disk by UncleRage · · Score: 1
      I was wondering the same thing, actually.

      My mobo is a couple of years old (MSI K9n), I currently choose first SATA for Debian, second for OS X and third for 2k8 Server.

      The others are all data (which OS X and 2k8 share) and finally an external USB which houses music and tunes.

      I keep thinking about swappable bays, switching ideas (like this one), etc... and always come back to the conclusion that it's already working just fine.

      Not to mention, it looks a bit confusing to anyone who would try and boot my system... you know, extra security through obfuscation. ;D

      --
      #SickNotWeak
  10. This is hardly extreme. by rmadmin · · Score: 3, Insightful

    This is a power switch. Nothing more. Certainly not a sata switch. As much as I love soldering.. I'll stick with grub for this one. Then I can at least share my media across OSes.

  11. Sounds like a recipe for disaster by mr_da3m0n · · Score: 4, Funny

    I would like to see what terrible, terrible things happen when some idiot let loose near your computer decides that the knob on it looks weird and takes it for a spin. In the middle of a kernel compile.

    And by terrible things, I mean manslaughter.

    1. Re:Sounds like a recipe for disaster by pathological+liar · · Score: 3, Funny

      Hans, is that you?

    2. Re:Sounds like a recipe for disaster by Anonymous Coward · · Score: 0

      Terrible things like "oh noes, reboot, fsck and recompile!"?

      I mean... as long as you're not trying to actually BOOT from this half-compiled kernel, then wheres the spilt milk?

    3. Re:Sounds like a recipe for disaster by Anonymous Coward · · Score: 0

      what's so terrible about the sound of a man laughing?

    4. Re:Sounds like a recipe for disaster by Anonymous Coward · · Score: 0

      Get in the Honda, you knob-switching bitch!

    5. Re:Sounds like a recipe for disaster by DikSeaCup · · Score: 1

      Take my wife, please!

      (She's starting to smell and the neighbors are getting suspicious.)

  12. Intelligent Switch Would be Better by wkk2 · · Score: 2, Interesting

    An active switch that could select a drive and optionally block write commands would even be better. Then you could make an image and turn on write protection.

    1. Re:Intelligent Switch Would be Better by Anonymous Coward · · Score: 0

      Can't be done. It's a serial protocol. Data and commands of all sorts use the same wire. BTW, this switch isn't much better: the data connection still exists and some chipsets are known to have problems with unpowered drives attached.

    2. Re:Intelligent Switch Would be Better by owlstead · · Score: 1

      "An active switch that could select a drive and optionally block write commands would even be better. Then you could make an image and turn on write protection."

      Personally I prefer the slider on the side of the hard drive. No need for an active switch.

    3. Re:Intelligent Switch Would be Better by mikael · · Score: 1

      The sysadmin of one place I worked in the 1980's had the idea of putting Maplin lock switches on the power lines of the floppy disk drives - the idea was that no-one could copy stuff off or onto the PC's without the permission of a technician. Fortunately the technician insisted that he didn't want to go around with a large bunch of keys on his belt, so they just fitted the same key/lock combination to every PC and everyone just bought a key from Maplin.

      --
      Vintage computer adverts: http://www.vintageadbrowser.com/computers-and-software-ads
  13. I want to read the Windows drive in Linux by Skapare · · Score: 1

    And with this I could read the Linux drive in Windows. So I need a way to have both drives active, but change their device order. But for just reading Windows in Linux and not the other way around, it would be as simple as switching the Linux drive on and off and making sure it is always first when it's on.

    --
    now we need to go OSS in diesel cars
  14. If I need to access both drives from either OS? by Jon.Laslow · · Score: 1

    It's a neat hack, yes, but not really ideal. For all of the effort involved in setting up a switch like this, my solution of setting the first boot device to be the drive with my most frequently booted OS, and then just press F11 (on my board) to access the boot device menu if I want to boot to another drive is a lot easier.

    Additionally, my method isn't restricted to just S-ATA drives. Not as cool, but a *tad* more functional...

    1. Re:If I need to access both drives from either OS? by ILikeRed · · Score: 2, Interesting

      It would be a nice feature on a motherboard to have four shunt pin switches that determines the first boot drive priority from the four SATA drives. They could ship the motherboard with just the drive 0 shunted, but then you could get a four position switch that would shunt the different pins. It would not have any effect if turned when the computer is on, but could signal the bios to the top boot priority during post (and just have the bios default to 0 if either multiple or no pins are shunted.)

      --
      I have come to a conclusion that one useless man is a shame, two is a law firm, and three or more is a congress -J Adams
    2. Re:If I need to access both drives from either OS? by atamido · · Score: 1

      An excellent idea. Even better if it changed the drive order in the BIOS.

  15. Not what I expected by Zakabog · · Score: 1

    I was expecting a switch that would let you switch the data cable between multiple drives. That way you could have all the drives on one port, and tell the BIOS to boot from that since it will always be the same slot. I don't see how this switch will stop errors like "Primary SATA Drive not detected" from showing up. Or how it would work in a system where you have to specify which SATA channel to boot from.

    With a data cable switch you would only need one small drive for each OS (you could even use a solid state device for more speed) and there could be a couple separate drives for data that are shared between all of the operating systems.

    1. Re:Not what I expected by Anonymous Coward · · Score: 0

      Really? When I read it I was thinking switch like SAN... I even actually clicked the article and read it for once... First couple of sentences in, I honestly couldn't believe the retarded topic of the article.

  16. This is nothing but a crude hack! by Anonymous Coward · · Score: 0, Troll

    Wow, this is a really amateur. They're even switching the ground leads (it would be better NOT to switch them). Here I though it would be an interesting article about how to properly switch SATA data signals and it's a C- grade power switch?

    Big deal. Any idiot who can install a light switch should be able to think this up. Once again, slashdotter's don't know crap about electrical engineering.
     

    1. Re:This is nothing but a crude hack! by Anonymous Coward · · Score: 0

      Furthermore, he's solving an unproblem. It's very easy to use a bootloader to choose which OS to boot, so you don't need his switch, and the reasons he gives for avoiding a bootloader are silly and weak.

      His solution to the unproblem is actively bad, too. It requires the use of multiple disks to boot multiple operating systems... can't do it with partitions of a single disk. Bad. Worse yet, he requires you to take OS A's storage completely offline in order to boot OS B, and vice versa. Terrible! When I dual boot, I expect to transfer files between the two operating systems from time to time.

      Finally, I would observe that the whole thing appears to be a thinly veiled advertisement for the article author's attempt to sell premade 'SATA Switches'. Good luck with that, sir.

    2. Re:This is nothing but a crude hack! by gweihir · · Score: 1

      Wow, this is a really amateur. They're even switching the ground leads (it would be better NOT to switch them).

      In fact, switching the ground lines may blow up your disks.

      --
      Most ACs are not even worth the keystrokes to insult them. Be generically insulted by this and ignored otherwise.
    3. Re:This is nothing but a crude hack! by owlstead · · Score: 1

      "Finally, I would observe that the whole thing appears to be a thinly veiled advertisement for the article author's attempt to sell premade 'SATA Switches'. Good luck with that, sir."

      Slashdot and drugs don't mix! Or are you in this paranoid state on a regular basis?

    4. Re:This is nothing but a crude hack! by Anonymous Coward · · Score: 0

      You really read that as paranoid? I got more of a feeling of condescending ass-hattery. One need not use drugs to achieve that state on Slashdot.

  17. Power through data kills! by redelm · · Score: 0, Redundant
    If this is just a power switch, when what assurance is there it won't fry some drive? The most elementary rule in digital electronics is to supply power before data, and remove it after data.

    Switching circuits should not try to draw power from data lines! And if power is not supplied, they will. Perhaps some systems are robuse (3.3V isn't much), but I would not count on all circuits not having some overheat path.

    1. Re:Power through data kills! by owlstead · · Score: 1

      Don't forget that SATA has been designed to be hot pluggable. I would not expect it to have too much influence. Otherwise we would see many people returning their SATA drives. Actually, I've had many IDE drives connected without power, and I've never seen one crash because of it. And in all these years I've never seen a computer break down because of it.

      So I presume it won't do much harm.

    2. Re:Power through data kills! by FreakWent · · Score: 1

      I've had many IDE drives connected without power, and I've never seen one crash because of it.

        - Because you couldn't boot, doofus.

    3. Re:Power through data kills! by owlstead · · Score: 1

      " - Because you couldn't boot, doofus."

      So? That's only a minor nuisance compared to a ruined drive or motherboard. This normally happens when assembling a new PC or adding hardware. Never had a bad motherboard, controller or hard disk because of it.

    4. Re:Power through data kills! by redelm · · Score: 1

      SATA may well be designed to be hot pluggable. But what does that really mean? Hot pluggability can be assured by connector design -- data contacts are "deeper" inside than the power/ground which connect first and disconnect last. Even if they added isolating gates, where do those gates get power?

    5. Re:Power through data kills! by owlstead · · Score: 1

      That's a fair enough comment. I'll contact WD tomorrow and report back. They'll probably know. If they don't they may play safe though.

  18. Higly dangerous design by gweihir · · Score: 4, Informative

    The design switches ground (Black) as well, instead of keeping it permanently connected. This means that if you use a non-bridging rotary switch (i.e. it does not short out neigbouring connectors when turning it, but has a short phase where all wires are insulated), you could kill disks when switching under power. This happens when +12V and +5V already (or still) have contact but ground does not. The effect is that -7V (a negative voltage) gets applied from Red to Yellow. Typical electronics have a tolerance of -0.5V on their supply lines and die very fast (miliseconds) if that is exceeded in negative direction.

    The same can happen if your (bridging) switch gets a bit corroded and does not make perfect contact anymore. This is not so uncommon.

    My bottom line is that these people have no clue what they are doing and you should under no circumstances copy this faulty design. If at all, then switch only Red and Yellow, but leave Black
    allways connected at all devices. Not only is that safe, there is in fact no sane reason at all to switch Black. I can only conclude that the idea of the designers was to simply switch all wires, without any understanding of the consequences.

    I think this solution is also overdone. I have XP and several Linuxes on a GRUB multi-boot on two computers. True, once or twice per year I need to use a KNOPPIX CD or memory stick to boot my system and reinstall the boot manager. Takes about 5 minutes each time. Not an issue at all.

    --
    Most ACs are not even worth the keystrokes to insult them. Be generically insulted by this and ignored otherwise.
    1. Re:Higly dangerous design by HeronBlademaster · · Score: 1

      Reinstall grub? Really? Why would that be necessary? Do you know what causes your need to reinstall grub?

      I was going to say "I've never had to do that" but I just realized that a year ago I reformatted for unrelated reasons (I wanted to resize various partitions) and reinstalled grub as a side effect, so I can't say whether I would have had to do it if I had waited longer.

    2. Re:Higly dangerous design by gweihir · · Score: 1

      Reinstall grub? Really? Why would that be necessary? Do you know what causes your need to reinstall grub?

      Yes. Reinstalling Windows does it (expected, although I still think overwriting an MBR without warning qualifies as computer sabotage, a criminal act). Ubuntu did it to me once too, but with warning and it was easier to just fix it afterwards. It really is only one command.

      --
      Most ACs are not even worth the keystrokes to insult them. Be generically insulted by this and ignored otherwise.
    3. Re:Higly dangerous design by Anonymous Coward · · Score: 0

      GRUB reinstall is only needed if something overwrites the MBR, such as Windows' System Recovery or fixmbr.

      If the MBR (containing GRUB) is intact, in most cases it suffices to edit the boot line with 'e' to switch partitions or change boot parameters.

      In short, don't reinstall Windows or run fixmbr if you don't know what you're doing and don't have a GRUB boot disk (such as Super Grub Disk) available.

  19. AoE anyone? by nitsnipe · · Score: 1

    As this is Slashdot, I expected the article to be about an ATA over Ethernet switch that would let you build an array of drives to rival fibre-channel.
    Now that would be interesting.

    Unfortunately it was just another article meant more for digg.com

    If I have many OSs and filesystems in my box, I would want to have access to everything from any OS. Linux supports NTFS, Windows supports ext3(after installing a driver).
    This mod is pointless. You need 2 drives that you can only use one at a time. The amount of power you save negligible. And you would extend the life of your drives way more if you put on them a fan you got from free from the garbage dump.

  20. these types of articles are good by RGRistroph · · Score: 3, Insightful

    Most of the comments here are negative. The criticisms about swappable drive bays being better and that ground should not be switched are all valid.

    However, I think articles like this are good. More people should actually do stuff, even if they burn out a few harddrives or power supplies in the process.

    1. Re:these types of articles are good by Kadagan+AU · · Score: 1

      I wash I had some mod points for you. Actually messing with electronics is a great way of learning. It's not like the world would end if you fry a hard drive or a psu. Just don't use this setup for a critical system unless you have tried it elsewhere and know that it's stable. But experimentation is fun and educational!

      --
      This space for rent, inquire within.
    2. Re:these types of articles are good by pz · · Score: 1

      Most of the comments here are negative. The criticisms about swappable drive bays being better and that ground should not be switched are all valid.

      However, I think articles like this are good. More people should actually do stuff, even if they burn out a few harddrives or power supplies in the process.

      More people should READ A LITTLE about what they're trying to do, rather than attempting to re-invent the wheel for the umpteenth time. The large number of comments about switching ground indicates that it really isn't that hard to learn about such things. Sure, it's easier to do something without first learning about it, but it leads, generally, to unintended and often negative consequences.

      While I applaud the initiative of the original subject's authors, they should not design anything that the public safety or welfare depends on, ever. Ever. Why? Devil-may-care attitudes are good for some things, but, by-and-large, engineering is not one of them.

      Note that I am not saying engineers should not be ambitious. Ambition and sound engineering principles are not mutually exclusive.

      --

      Put my fist through my alarm clock with its ding-dong death inside my ear. - The Blackjacks.
  21. awesome by garada · · Score: 1

    This will be awesome for my 2 year old who loves to push buttons and flip switches.

    Now if someone could come up with a way to turn off power to the motherboard with a simple button on the desk so the cat can get in on the fun too.

  22. A little knowledge is dangerous! Don't do it, kids by Ancient_Hacker · · Score: 1

    This article is a supe example of how having just a smidgen of knowledge can get you into deep doo-doo.

    First of all they should not switch the two ground wires. If the switch disconnects those first, you have several amps of DC flowing back through the SATA signal cable ground wires and connector pins, which are not designed for this kind of current.
    Gray smoke and major disk and motherboard damage is not out of the question.

    Next they apparently chose the prettiest and most expensive switch in the most expensive catalog, without care to check it for current or make before break specs. So they paid $28 for the wrong switch. A simple $1.99 DPDT 5-amp switch from the hardware store costs less than a tenth as much and will be able to handle the current.

    Lastly, this switch should have some sort of lock on it. Accidentally flipping it in the middle of a disk write would be disastrous.

  23. Re:A little knowledge is dangerous! Don't do it, k by gweihir · · Score: 1

    Come to think of it, the SATA data cable ground lines may actually save the disk electronics in practice. Because completely without ground, you get -7V from red to yellow, a sure killer.

    The question is of course how long they will last, as you rightly point out.

    --
    Most ACs are not even worth the keystrokes to insult them. Be generically insulted by this and ignored otherwise.
  24. wa by Anonymous Coward · · Score: 0

    stuff that matters?

    how the hell does this matter to anyone except someone suffering from brain damage?

    who the fuck would even do this? is the author fucked in the head?

  25. Daddy, what does this do? by confused+one · · Score: 1

    I can easily predict the following scenario at my house:

    Child: Daddy, What does this do? *CLICK*

    Me (nearly simultaneously): NOOOOOOOOOooo

    And the sound you now here is the computer crashing and me muttering curses under my breath...

    1. Re:Daddy, what does this do? by k-macjapan · · Score: 1

      NOOOOOOOOOOOOOOOOOOOOOooooooooo all of my porn!!!!

  26. More elegant? by zakkie · · Score: 1

    Why not have BIOS set up to boot from usb as primary boot device, IDE/SATA/SCSI as second, and have an external usb drive with an on/off switch? You could then access your usb drive contents even if booting off your IDE/SATA/SCSI OS simply by turning the usb drive on once the bootup sequence has started.

  27. Why even say SATA everywhere by Anonymous Coward · · Score: 0

    The switch is just switching power, could be IDE drive or anything. Also they swith the ground wires, which is completely pointless. All you have to do is switch the 5V and 12V...

    How does stuff like this make front page of slashdot?

  28. Less Ads Here. by sp1nz · · Score: 1

    http://www.thesataswitch.com/ The author's actual site. Easier to read, and no annoying mouse-over ads.

  29. Wow! by Tadrith · · Score: 1

    To think that all this time, I was simply hitting the key to get my BIOS boot device selection menu after installing the OSes I wanted individually!

  30. Cooperate by Anonymous Coward · · Score: 0

    I run Windows 2000 Professional (MSDNAA License) with CoLinux kernel 0.7.3 booting GNU Slackware 12.1

    When my older Pentium 1 class box, which acted as a (software) RAID storage server's fan started making noise, I shut it down and tossed the hard drives in my desktop system, altered the CoLinux configuration file to give direct partition access to Linux (ONLY!) then copied and modified the /etc/md.conf

    Runs like a champ.. Even have a second NIC in the machine which Linux uses exclusively (TCP/IP is not bound in Windows).

    It appears as a wholly seperate machine on the LAN, serving the Samba shares under the same NETBIOS name the Pentium 1 system had, so no other machines on the LAN even noticed the change. I stood beside myself when the RAID came online with both disks available. The disks sleep 99% of the time and I just leave the PC on, logged off in Windows when I'm not using it.

    Of course there are limits to what you can do with CoLinux, but not many.

    -- AC

  31. Caddy by GWBasic · · Score: 1

    At a prior job, we used to use IDE hard drives in caddies. When we wanted to change the operating system, we'd slip out the old drive and slip in the new one.