Slashdot Mirror


Swapping IDE Drives in Linux without Rebooting?

Hasufin writes "I've got quite a few of those removable IDE drive bays in my computers. I'd like to be able to swap these drives without the need of rebooting linux. I've searched quite a bit via google and other resources but haven't found a good how-to. Any pointers? I've seen few mentions to hdparm -U & -R and a script or two, but haven't had any luck using it w/ my promise udma/66 & udma/100 offboard pci controllers... :\ Any help appreciated!"

3 of 77 comments (clear)

  1. Try this... by PoiBoy · · Score: 5, Informative
    I've never swapped an IDE hard drive, but I have hot-swapped IDE CD-ROM's out of shear laziness.

    Just be sure to unmount the drive first and disconnect the power cable. Then disconnect the IDE ribbon. Reverse the process with the new drive, then mount it.

    If you've already got a couple of drives without mission critical data on them, you could try this. I doubt if it would damage the drives as long as you're careful. I'm not sure how Linux gets the drive's parameters, but I would guess that it can get them during the mounting, perhaps with a few command-line options if needed.

    --
    Sig (appended to the end of comments you post, 120 chars)
  2. hot-swapping by mosch · · Score: 5, Funny

    I've had great luck with hot-swappable drives! The trick is to take your IDE devices and run over them with a large vehicle. Now make an emergency requisition of SCSI or FibreChannel devices, and all will work exactly as you were hoping.

  3. The correct procedure... by Wakko+Warner · · Score: 5, Informative

    ...is to buy a SCSI RAID card and a hot swap SCSI enclosure.

    If you try this kind of shit with IDE, prepare for Deep Hurting.

    Sometimes (and I know this is going to really upset a lot of slashdroids) you need to spend money to get certain features.

    - A.P.

    --
    "Remember when the U.S. had a drug problem, and then we declared a War On Drugs, and now you can't buy drugs anymore?"