Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

[SOLVED] difference between hdparm -y and hdparm -Y

Featured Replies

I would like to know the difference between hdparm's -y and -Y switches

 

one puts the drive in standby , the other in sleep

 

but what is the effect of these commands on the HD ?

 

which one of those is similar to mdcmd spindown command ?

 

and how can I awake a drive out of sleep or out of standby ?

 

thanks

I would like to know the difference between hdparm's -y and -Y switches

 

one puts the drive in standby , the other in sleep

 

but what is the effect of these commands on the HD ?

from the hdparm manual page:

-y

    Force an IDE drive to immediately enter the low power consumption standby mode, usually causing it to spin down. The current power mode status can be checked using the -C flag.

-Y

    Force an IDE drive to immediately enter the lowest power consumption sleep mode, causing it to shut down completely. A hard or soft reset is required before the drive can be accessed again (the Linux IDE driver will automatically handle issuing a reset if/when needed). The current power mode status can be checked using the -C flag.

which one of those is similar to mdcmd spindown command ?

don't know for sure, but i think it is "standby" and the IOCTL call seems to be ATA_OP_STANDBYNOW1 based on errors in the syslog when it is not supported by some hardware.

and how can I awake a drive out of sleep or out of standby ?

Access it. (read from it, or write to it)

It may b e drive / kernel / driver / controller dependent, but IIRC, I have never been able to wake a drive up from -Y without doing a power cycling of the drive.

  • Author

that explains it..

 

I did a hdparm -Y , and the drive vanished... had to reboot the server

 

thanks

Archived

This topic is now archived and is closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.