Hot-Swapping IDE Drives?
Patman asks: "I've recently taken a new job where I'll need to be making drive images and such for quite a few IDE drives - say a few a day. I need the ability to 'hot-swap' IDE drives into a running Linux or Windows system. The systems that I'm using are fairly standard IBM desktop PCs, I've found references on Google to IDE->USB converter cables and IDE->USB converter boxes.
Does anyone have experience with those? Some come with drivers for Windows - has anyone used them under Linux? Does the mass storage USB code deal with them accurately? Barring that, does anyone have any other ideas? External hot-swapping would be ideal, although an internal solution would be doable, too."
I can't seem to find any fix, the driver software doesn't permit caching to be disabled in the advanced properties box, so it's rendered an otherwise fine 120 GB Western Digital drive as an expensive paper weight, at least as far as Windows is concerned.
From what I've been able to read, it appears that Linux knows better, and respects the 128k per packet limit, and doesn't have this issue, but I've not confirmed that yet.
It's a bitch to be doing a backup (using copy) of 45 Gb of photos, and lose a few along the way.
--Mike--
Wouldn't FireWire be better, considering FireWire-IDE bridge enclosures are readily available and actual throughput is much faster usig the Oxford 911/922 chipsets?
Blue skies, Barthy Burgers, girls...
I've hot-swapped (both add and remove) IDE interface drives in WinXP with no problem.
My guess is you removed the data cable before removing the power.
Procedure to Remove Fixed Hard Disks:
1. Remove Power Cable from Drive
2. Remove Data Cable from Drive
3. Scan for Hardware Changes in Device Manager.
No data loss will occur as long as no open file handles are present on the disk at the time of removal. Windows XP will detect and gracefully dismount/remove references to it. If there are open file handles, data in the write cache will be lost, and WinXP will freeze up for a few minutes while waiting for the IDE timeout.
Procedure to Add a Fixed Disk:
1. Connect Data Cable
2. Connect Power Cable
3. Scan for Hardware Changes in Device Manager
Windows will read the drive signature and make it available under My Computer.
Okay, I use a USB drive enclosure on Linux to do my backups, and it works pretty well.
However, it took me a very long time to learn to set the 'sync' option in the mount options. USB writes much more slowly than a normal harddrive, and if sync isn't set, it is possible for the system to buffer all writes to the drive up to the point where it consumes most system memory, and the machine becomes unresponsive.
Perhaps this is fixed in 2.6; but it doesn't really matter. You are doing backups, the backup isn't done until it's all on the disk, so setting the sync option just means that your writes "seem" to take longer, and your unmount at the end seems faster. Without sync, you pay for the buffering in the unmount, which will hang while it finishes syncing the disk.
-- Crutcher --
#include <disclaimer.h>
Yeah, been using two of these 3ware cages (plus their Raid5 IDE controller) to RAID5 8 drives for months, quite a joy. You can pull out one of the drives mid-anything and watch the hot spare kick into gear.
Their online tech support is quite good too, replies within 1 working day.
I'm here to second the FireWire proposal. Be sure you get a controller with an Oxford 9xx chipset and go to it. OtherWorld Computing has some great enclosures, decent prices and good customer service.
Can't you stop being a cheapskate and just buy a proper hotswap enclosure?
If you can't afford that then a Firewire enclosure will be good enough for what you're trying to do. Make SURE to stop the device before unplugging it! You can buy Firewire dongle devices like the DriveDock from WiebeTECH as you'll be wanting to unplug and plug lots of drives.
If there are open file handles, data in the write cache will be lost, and WinXP will freeze up for a few minutes while waiting for the IDE timeout.
IMHO, removing or disabling the drive from device manager should ensure you have no open files and flush the cache.
Go to 3Ware
It is really well supported in Linux (and been since a while) as well as in M$. It supports Hot-Swap and Hot-Spare...
Francis Provencher
"What if the bird will
Windows XP has an option for not caching Firewire writes. You can then just remove and reconnect the drive without any other adjustment and without data loss. If you have audio on, there is a tone when the drive is connected or disconnected.
2000 Professional and Server are the exact same thing
Forget drivers... the only difference is the productID when installing. The install CD contains the exact same files, and the service packs are exactly the same. Hell, they even use the same kernel binary.
It just artificially limits the number of CPUs and RAM.
So whatever is true for Professional will automatically be true for Server, and vice versa.
You should really be looking at something centralized like Retrospect (which isn't too expensive, unlimited clients). Or DVD-Rs.
And tapes can work great. You just have to figure out how to justify spending over $6000 to get an AIT-3 drive or something.
THIS THING CAN TURN ON A DIME, MACROSSZERO STYLE ALSO FUCK BETA, ~NYORON
But since this method doesn't force a bios scan, it hangs if the drives have different disc/cyl/head geometries, or different partition sizes.
The Web is like Usenet, but
the elephants are untrained.
theres a reason not to do this... If you look at SATA, one of the reasons its safe to hot-swap is that on the power connector, the pins are different lengths. This way, when u connect/disconnect, you wont have shorts happening. I think its the ground connector on the power cable that connects first, disconnects last... Old school PATA devices dont have this, so every time you connect/disconnect while running... you have the risk of shorting and blowing your drive/MB
Wouldnt you like to be a pepper too?
Comment removed based on user account deletion