linux-hotplug.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* When should we use "hdparm" ?
@ 2018-07-13  6:29 Ran Shalit
  2018-07-13  7:25 ` Greg KH
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Ran Shalit @ 2018-07-13  6:29 UTC (permalink / raw)
  To: linux-hotplug

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.

Why was it used once and why is it not used in newer system ?
Is it that newer system do this somehow automatically ? Where ?is it
done, in SW or HW ?

Thank you,
ranran

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: When should we use "hdparm" ?
  2018-07-13  6:29 When should we use "hdparm" ? Ran Shalit
@ 2018-07-13  7:25 ` Greg KH
  2018-07-13  7:48 ` Ran Shalit
  2018-07-13  7:50 ` Ran Shalit
  2 siblings, 0 replies; 4+ messages in thread
From: Greg KH @ 2018-07-13  7:25 UTC (permalink / raw)
  To: linux-hotplug

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: When should we use "hdparm" ?
  2018-07-13  6:29 When should we use "hdparm" ? Ran Shalit
  2018-07-13  7:25 ` Greg KH
@ 2018-07-13  7:48 ` Ran Shalit
  2018-07-13  7:50 ` Ran Shalit
  2 siblings, 0 replies; 4+ messages in thread
From: Ran Shalit @ 2018-07-13  7:48 UTC (permalink / raw)
  To: linux-hotplug

On Fri, Jul 13, 2018 at 10:25 AM, Greg KH <greg@kroah.com> wrote:
> 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) , but 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?
>
I just mount and unmount partition.
In the old system, we manually power the the storage device after
instert and (poweroff on remove) , and then used the hdparm
register/unregister comands.
Without the hdparm commands the device doesn't exist in /dev , i.e. we
must do this register/unregister in the old HW &old kernel.


>> 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 swapping your ide drives today?
>

With newer HW&SW  don't do now any hot swapping, just mount/unmount.
Seems that insert/remove id done under power (?),
I just try to understand why the newer system (HW&SW) don't need to
use these commands any more (hdparm).

> And the 2.4 kernel was over a decade ago, hopefully you have upgraded
> your hardware since then :)
>
> thanks,
>
> greg k-h

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: When should we use "hdparm" ?
  2018-07-13  6:29 When should we use "hdparm" ? Ran Shalit
  2018-07-13  7:25 ` Greg KH
  2018-07-13  7:48 ` Ran Shalit
@ 2018-07-13  7:50 ` Ran Shalit
  2 siblings, 0 replies; 4+ messages in thread
From: Ran Shalit @ 2018-07-13  7:50 UTC (permalink / raw)
  To: linux-hotplug

Hi,

I also not sure why we don't use power off/on control any more with
the SATA/IDE newer devices.

Thanks,
ranran

On Fri, Jul 13, 2018 at 10:48 AM, Ran Shalit <ranshalit@gmail.com> wrote:
> On Fri, Jul 13, 2018 at 10:25 AM, Greg KH <greg@kroah.com> wrote:
>> 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) , but 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?
>>
> I just mount and unmount partition.
> In the old system, we manually power the the storage device after
> instert and (poweroff on remove) , and then used the hdparm
> register/unregister comands.
> Without the hdparm commands the device doesn't exist in /dev , i.e. we
> must do this register/unregister in the old HW &old kernel.
>
>
>>> 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 swapping your ide drives today?
>>
>
> With newer HW&SW  don't do now any hot swapping, just mount/unmount.
> Seems that insert/remove id done under power (?),
> I just try to understand why the newer system (HW&SW) don't need to
> use these commands any more (hdparm).
>
>> And the 2.4 kernel was over a decade ago, hopefully you have upgraded
>> your hardware since then :)
>>
>> thanks,
>>
>> greg k-h

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2018-07-13  7:50 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-07-13  6:29 When should we use "hdparm" ? Ran Shalit
2018-07-13  7:25 ` Greg KH
2018-07-13  7:48 ` Ran Shalit
2018-07-13  7:50 ` Ran Shalit

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).