Re: When should we use "hdparm" ?

Greg KH <[email protected]> Fri, 13 Jul 2018 07:25:26 +0000
Newsgroups org.kernel.vger.linux-hotplug
Message-ID <[email protected]>
On Fri, Jul 13, 2018 at 09:29:50AM +0300, Ran Shalit wrote:
> Hello,
> 
> We have some old system (2.4 kernel) which use hot swap with sata
> (IDE) , bu using commands such as:
> hdparm -U 0
> hdparm -R 0 0x1f0 ...
> 
> But in newer system HW&SW we never use these commands when removing
> and inserting sata.

What do you do instead?

> Why was it used once and why is it not used in newer system ?

In the 2.4 kernel there was not kernel support for hot-swap devices like
this, so you had to "manually" do it with these types of commands.

> Is it that newer system do this somehow automatically ? Where ?is it
> done, in SW or HW ?

How exactly are you swaping your ide drives today?

And the 2.4 kernel was over a decade ago, hopefully you have upgraded
your hardware since then :)

thanks,

greg k-h