From mboxrd@z Thu Jan 1 00:00:00 1970 From: Greg KH Date: Fri, 13 Jul 2018 07:25:26 +0000 Subject: Re: When should we use "hdparm" ? Message-Id: <20180713072526.GA30992@kroah.com> List-Id: References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-hotplug@vger.kernel.org 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