Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Hardware
User Name
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?


  Search this Thread
Old 08-09-2005, 11:46 PM   #1
Registered: Jan 2003
Location: Dallas, TX
Distribution: Fedora Core 4
Posts: 420

Rep: Reputation: 30
Hot swapping?

I have a hard drive swapping bay (i.e. just a bay where you can slide drives in and out) that I use for backup purposes. Basically, I keep the backup drive out of the server 99% of the time so it's not vulnerable to power surges and lightning strikes. However, every time I put it back in, I have to reboot the server, mount it, run the backup, umount it, and then pull the drive again. If I put the drive back in and try to mount it, the server locks up every time.

Now, I've heard from someone that there is some sort of command you can run to have Linux rescan the hardware such that I might not have to do this. Can anyone shead some light on the subject?
Old 08-10-2005, 12:00 AM   #2
LQ Guru
Registered: Nov 2004
Location: San Jose, CA
Distribution: Ubuntu
Posts: 8,507

Rep: Reputation: 128Reputation: 128
You might be able to do this with hdparm and idectl. A lot of this depends if your kernel is 2.6 or 2.4. I refer you to this LKML discussion.
Old 08-10-2005, 12:28 PM   #3
LQ Guru
Registered: Sep 2001
Location: Montreal, Canada
Distribution: Slackware; Debian; Gentoo...
Posts: 2,163

Rep: Reputation: 46
Is this IDE or SCSI? Very very few IDE support hotswapping, but it's quite usual in SCSI world.
I wouldn't recommend trying this with an IDE drive, especially if you don't trust your drive slide.

If you wish to try anyways, you are crazy, you will kill your drive.


If you _still_ wish to try, well... make sure your slide _really_ cut the power to the drive when you turn off the key (some does not), as hotswapping a powered drive will most likely result in a disaster. Also, never never never does it on a mounted drive (of course). I did it sometime, it's quite possible, but you have to accept that you may kill your drive at any time
Old 08-10-2005, 12:52 PM   #4
LQ Guru
Registered: Nov 2004
Location: San Jose, CA
Distribution: Ubuntu
Posts: 8,507

Rep: Reputation: 128Reputation: 128
There are some IDE controllers that support hotswap with the right hardware... notably 3ware, I believe. Promise may also have something. Many IDE RAID controllers do have this functionality (the better hardware-based ones, that is -- software "raid" controllers are basically just normal IDE controllers).


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Hot swapping cd-roms w/ hdparm -R/-U infinity42 Linux - General 2 10-06-2005 05:00 PM
Hot swapping a scsi hard drive with Redhat ES 3 ttang99 Linux - Enterprise 0 09-01-2005 08:38 AM
HOW TO -Swapping HD-0 to HD-1 ? penguinlnx Linux - Hardware 9 05-01-2005 05:36 AM
swapping HD ZaphyR Linux - Hardware 2 01-16-2005 10:11 AM
Hot swapping cdrom and floppy rootyard Linux - Laptop and Netbook 0 01-08-2004 10:19 AM > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 11:40 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration