HotPlugging IDE hard drives on internal removable bay
Linux - HardwareThis forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
HotPlugging IDE hard drives on internal removable bay
Hello, I am fairly new to linux.
I setup a debian box to be my server for sql, svn and a few other things, and I also setup a cron job to backup all this stuff into a tar archive daily. I have a removable ide tray & hdd and I would like to use it to store the backup archives to keep an off-site copy. Now, my problem is if I wanna use this hdd, I need to plug it in and reboot, because I found no way to make linux recognize it (even manually would be fine enough, I could just check in the backup script, if the device is present, then make the off site copy, otherwise just continue).
So, does anyone know if there is a way to do this without rebooting?
I assume that this drive is plugging directly into the IDE chain on the system. More than likely the IDE chipset on your motherboard is not hot-plug compatible, which is why you are having problems.
A better solution for you would probably be to get one of the IDE to USB conversion kits that are out there, as USB supports hot-pluggin a lot better than standard IDE chipsets.
The conversion kits for external drive carriers are pretty inexpensive, as well.
Yes, I believe the controller is not hot plug compatible, yet I know for a fact if I run windows on this machine I can plug a hard drive, refresh the drives with a click, and it works without giving any trouble to the system's stability. I was hoping this would be possible on linux as well, but I guess not. Thanks for your reply.
Hrm... if that is the case, then it MAY be possible, but I think you would have to be loading the IDE drivers as a module and then, in order to get them to work with the just inserted drive, you would have to unload and reload them in order to get a fresh scan of the drives on the controller.
This is obviously impractical for a machine where you already have some IDE drives on the same controller.
The other possibility is that there is some sort of command you can send to the IDE driver to rescan for new drives, but I have no idea where this would be.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.