Disable parking on Seagate HDD. WDIdle3 - disable head parking on Western Digital hard drives Disk parking when updating windows

Related to vulnerabilities CVE-2019-11477, CVE-2019-11478 and CVE-2019-11479. Netflix has reportedly identified a number of serious vulnerabilities in the Linux kernel that can lead to denial-of-service (DoS). Since RouterOS uses the Linux kernel, this network vulnerability also affects Mikrotik devices. A properly configured firewall can protect against exploitation of these vulnerabilities.

More detailed information on these vulnerabilities and protection against them can be found at. On June 27, Mikrotik presented the RouterOS 6.45.1 update, which fixed all of the above vulnerabilities.

Lately, the Latvian brand has been in no hurry to introduce new routers and access points to the market. The latest devices, by the way, are seriously lacking. Nowadays, competitors on the market offer an extremely large range of wireless solutions, including such interesting technologies as Beamforming, MESH, balancing and seamless roaming.

Unfortunately, Mikrotik does not offer any of the above, which is very noticeable in complex configurations and noisy air conditions. What Mikrotik really lacks now is new wireless access points, on new chips, with support for new features and, possibly, with external antennas. As my experience has shown, Mikrotik access points work stably until they are exposed to noisy radio conditions. But other vendors will also have problems, you object.

Yes and no - I can name a dozen examples where Keenetic solutions and even “3-antenna” routers from TP-Link work much more stable, while Mikrotik points have problems connecting clients, especially when working through CAPsMAN .

Despite the relatively large amount of material on Mikrotik in this blog, it does not cover even a tenth of the main possibilities for using RouterOS and Mikrotik for home and office purposes.

In addition to the materials presented, I strongly recommend that you familiarize yourself with the basics of network technologies (basic), in the future this will greatly simplify your life when working with equipment from Mikrotik or any other vendor. Those who are attentive will probably have noticed that at the top of the site there is a large horizontal banner, which offers an analogue of the MTCNA course. If you are a beginner, I would recommend taking a short course in Networking Fundamentals from the same author before you begin studying the MTCNA exam materials.


If you have ever used self-signed certificates on Mikrotik (point #5), then you have definitely encountered the fact that modern browsers will refuse to accept such a certificate, giving an error.

In an enterprise network, such a certificate is still better than its absence. Today we will talk about how to install a full certificate for WebFig and/or HotSpot. In order for browsers to “not complain” about the certificate, it must be valid; a number of conditions must be met.


In particular, about the possibility of using 2.5-inch compact disks in desktop systems, where “adult” 3.5-inch disks are almost always used.

For many years, my previous system had 2 Western Digital hard drives, to be more precise, WD Caviar Blue (WD5000AAKS) and WD Caviar Green (WD5000AADS) - both 500 GB. For the system I used OCZ Agility 3 with 60 GB, while HDDs were used for storing files.

The main problem with large 3.5-inch drives is the noise level. This is perhaps one of the few problems that is most difficult to deal with. The thing is that the disks create low-frequency vibration, which is transmitted to the case itself. And this despite the fact that AAM (Automatic Acoustic Management) was active on the older WD Blue model.

Just below you can see the performance level of Caviar Blue and Caviar Green respectively, measured using CrystalDiskMark 5.2.1.



As you can see, the maximum read and write speed does not exceed 100 MB/sec. By the standards of the years when both discs were released (7-8 years ago), the figure is quite good.

At first glance, it may even seem that Green is faster than Blue, but don’t let the test results fool you, let’s take a look at the results obtained in Victoria and HD Tune.








As you can see, Caviar Blue provides faster access and IOPS performance. Well, okay, not about that now.

When assembling the new system, it was decided to abandon two old 3.5-inch 500 GB drives in favor of one 1 TB 2.5-inch form factor.

After several days of searching for the best option, I settled on the Hitachi (HGST) Travelstar 7K1000 1TB 7200rpm 32MB drive. But that’s not a problem, the disk is offered in two versions: HTS721010A9E630_0J22423 and HTE721010A9E630_0J30573.

At the time of purchase, sellers were asking 1,599 UAH ($60.84) for HTS721010A9E630_0J22423, and 1,915 UAH ($72.87) for HTE721010A9E630_0J30573.

In fact, both disks are absolutely identical in terms of design; the differences lie in the settings of the disk itself, namely in the settings. The first model belongs to the “Standard Models”, the second – to the “Enhanced Availability Models”, i.e. with improved access.

Just take a look at the comparison table.




For the standard model, “Power on Hours (POH) Per Month” is not specified, while for the improved model 730 hours are indicated, which means the possibility of round-the-clock operation. For those who have questions: 365 days a year of 24 hours equals 8760 hours. When divided by 12 months, the average is 730 hours per month. Actually, just below for the improved model in the “Availability (hrs/day x days/wk)” parameter it is indicated – 24x7 (24 hours a day, 7 days a week).

The standard model can operate in Low Power mode, which consumes an average of only 0.8 W (Idle) when idle and 1 W (Active Idle) when active. For the older model, power consumption is constant at 1.8 W.

Only one parameter is responsible for all these differences - APM (Advanced Power Management). APM should not be confused with AAM (Automatic Acoustic Management), because the latter actually controls acoustic noise by changing the speed of movement of the head. The user can choose between silence and performance. Please note that AAM does not affect the disk rotation speed, therefore the linear read/write speed remains almost unchanged, only the random access time changes, although against the background of such optimizations as NCQ, the difference in speed is not as noticeable as the change in noise level.



In the case of APM (Advanced Power Management), the drive manages power consumption by stopping the engine and parking the heads (Standby mode). Firstly, stopping the engine means that there will be a delay when accessing the disk due to the need to spin up the disks. Secondly, the disk cannot park indefinitely, and the process itself leads to gradual wear of the disk. Some manufacturers claim 300 thousand parking spaces for their disks, some 600 thousand, some even more. Drives from most manufacturers are parked quite rarely (several times per hour), while others like the Travelstar 7K1000 can be parked more than 500 thousand times in a year and a half of operation (less than 1 thousand per day / approximately 500-800 depending on conditions and operating time ). As a result, according to S.M.A.R.T. such a disk will quickly change its status to “Bad”.

So, in the standard version of the disk, APM has a value of 128, in the improved version it is 254 (disabled). You should naturally have a question: how does parking heads save electricity and battery life? The fact is that the opposite end of the head is equipped with a coil. When the correct power is applied to the coil, it generates an electromagnetic field that allows it to move between two powerful permanent magnets (while moving the opposite end).

Interestingly, the APM value can be changed independently. When used on laptops, it is not recommended to completely disable parking, because a laptop is a portable computer, and one of the features of APM is head parking, which in turn protects the disk surface from damage when moving the laptop (shaking, strong vibrations, shocks, acceleration). In the case of a stationary PC, parking can be disabled during operation, or the value can be set to 250-253. You should not be afraid that the disk will stop parking at all; when disconnected, as before, the heads will be parked in a safe zone.

Disable head parking when idle

Personally, I, like thousands of other people, decided to extend the service life of the disk and not overpay $12. for the version with APM disabled.

From the factory, HTS721010A9E630_0J22423 comes with APM=128. The APM value ranges from 1 to 254. When set below 128, the drive will be allowed to stop the spindle (motor). For some drives, shutdown is performed at APM=0 (0x00), but in the case of the Travelstar 7K1000 there is no such option.

So what do we need?

    flash drive (USB);

  • Hitachi Feature Tools
  • HP USB Disk Storage Format Tool
  • MSDOS

Do not rush to download Hitachi Feature Tools from the official HGST website, it contains the old version of FT 2.15 without support for new disks.

Instead, you need to download Hitachi Feature Tools v2.17b2, which supports the new Travelstar 5K500.B, 7K500, 5K750, 7K750, 5K1000, Z5K320, Z7K320, Z5K500, Z7K500 and our 7K1000 drives.

(downloads: 1228)


First of all we install HP USB Disk Storage Format Tool from folder 1_HP_USB_Disk_Storage_Format_Tool. For Windows 7 and higher, you must run the HPUSBFW utility with administrator rights.

In the utility menu, select your flash drive (Device drop-down menu), you must specify FAT32 as the File system, the Volume label can be anything, it doesn’t matter.

Next, for quick formatting, check the option “ QuickFormat", just below we also activate " CreateaDOSstartupdisk"(create a boot disk with DOS) and switch the radio box to the item " usingDOSsystemfileslocatedat", for which we indicate the path to the 2_MSDOS folder from the archive. Click Start, after which you need to confirm formatting the disk (all data on the disk will be destroyed).




We wait for the procedure to complete, after which we copy all the files from the folder to the root of the drive 3_FT217b2. If you have hidden system files, the drive will appear as empty, but when you copy files you will be prompted to replace the files (replace files).


The process of creating a bootable USB flash drive is complete. Now you need to boot from it; this is done differently on each system. On some systems, to boot from disk you need to change parameters in the BIOS (often F2, Delete, F12), on others there is a special menu (often F12).

On startup Hitachi Feature Tools You will need to press any key several times. The system will warn you that this version of HFT is unofficial and is based on the official version of Hitachi Feature Tools 2.16 M2, released in 2011. You will also receive a warning that FT217b2 is intended solely for changing the APM parameter in new Travelstar drives (5K500.B, 7K500, 5K750, 7K750, 5K1000, Z5K320, Z7K320, Z5K500, Z7K500), and is not intended for changing other parameters or changing parameters in other models not listed.

As always, everything is provided “as is”, i.e. You use the program at your own risk, neither the developers nor I are responsible for possible consequences, including data loss and/or hard drive failure. Before changing parameters, be sure to copy the data (make a backup).


After selecting a disk from the list, you need to go to the top menu “Features” and select “Change Advanced Power Mode”, or press the combination Alt + P. In the menu that appears, configure the APM parameter according to your preferences.


Personally, I set the value to 254. Changes are made to the disk firmware, so reinstalling the OS or using it on a different hardware platform does not in any way affect the set parameter. This means that the parameter for the disk needs to be changed only once, for example, immediately after purchase. If the disk is not detected by the program, then your PC is based on incompatible Intel ICH9M system logic, or you need to switch SATA from AHCI to Native IDE mode. Discs installed in an external pocket will also not be detected.


And finally, the new small disk is absolutely not inferior in speed to the previous full-size disks. Good luck with your upgrades!

P.S. Additionally, in the Windows power plan settings, you can prohibit turning off the disk (“turn off the disk when idle” – 0/no).

The problem was the following: In the game (in the game Smite), there were periodic lags (about once every 15 seconds), freezing for literally half a second, a second of lag. According to reviews, the same lags are observed in many games, such as Call of Duty, Call of Duty ww2, Battlefield 1, Battlefield 3, Battlefield 4 and many others.

Usually they advise checking the Internet, lowering the graphics settings, disabling the antivirus, this of course can all help, but if this does not help and you have an ultra good computer, which obviously, according to the system requirements, should easily run the game, then here is the solution.

The problem is this: hard drives have a technology called head parking, which retracts the read head of the drive into a safe area to avoid creating turbulence over the drive when idle and to reduce wear on the drive.

But sometimes the disk is “idle” for only a few seconds, for example, while you are running in a game through an area that has already loaded and does not require requesting information from the hard drive, but as soon as you enter a new area that is not loaded into RAM, the computer requires information and it accesses the hard drive. And right at this moment, if your head has already gone to the safe zone, it should return from there, which takes about half a second, which is why the lag occurs.

Solution to the problem:

1. If you have another hard drive, try moving the game to it.

But if not, or if you have everything on a Western Digital (WD) disk, as I did, then move on to the second point.

2. And so, you have Western Digital (WD) (be sure to make sure of this)

— First of all, what you need to do is go into the BIOS and change the disk operating mode from AHCI to IDE.
- Watch S.M.A.R.T. your hard drive, any program that can do this, for example, AIDA64, Everest, Victoria, etc. We are interested in parameter 193 Load/Unload Cycle count, it shows the number of head parking times. We compare the number opposite this parameter with the number opposite parameter 12 Power Cycle Count (number of power-off cycles). If the values ​​differ by tens or hundreds of times, then this is our case!
— We will need a utility to make a bootable USB flash drive, such as HP USB Disk Storage Tool and MS-DOS
— Next, download the WDIdle3 program.
- Next: we make a bootable DOS flash drive, unpack the archive with our program there, reboot the computer, boot from the flash drive by pressing the F8 key, when the computer restarts, we will have a command line for working with hard drives.
- In this line we enter the following commands.
- First of all, the wdidle3 /r command will show the current timer value in seconds. Those. After how long of inactivity the head parks. That's where it usually costs 12.8 - 15 seconds. Those 15 seconds after which you observed lags!
— To completely disable head parking, enter the command wdidle3 /d.
— To set any value, we need the command wdidle3 / s50, where s50 is the number responsible for the number of seconds after which the head will park.
Remember here that values ​​from 8 to 12.7 seconds can be set with an accuracy of 0.1 s. Values ​​from 12.8 to 30 the timer is set only to 30. Values ​​from 30 to 300 - with an accuracy of 30 s. The maximum value is 300. Press enter.
— Check if the value of wdidle3 /r is set
— We exit, reboot, check the game, there should be no lags! Hooray!

PS: It happens that after these manipulations, frequent blue screen crashes and similar unstable operation appear on the computer. I recommend that you first completely remove the head parking, check in the game, if the lags are gone, then leave it like that and forget, nothing will happen to the disk, but if you really want to set some value, set it to 300, check, if there are no crashes, leave it and enjoy the game!

If you still experience crashes, experiment with the values ​​and select the one you need.

I also want to note that there are no criminal or fatal consequences in this, it has been proven from personal experience!

While working at a service center, I increasingly began to encounter failures of hard drives in laptops. And the strange coincidence in this situation was that 80% of these disks were 500GB in size. I even stopped advising my friends and clients to buy disks of this size. And this went on for a couple of months until I noticed my own hard drive (hard drive) in my home laptop. What strange thing did I notice? The answer is simple. Periodic extraneous sounds. Sounds that were only audible if you listened very carefully and only when the laptop was standing and I was not doing anything on it.

I'll say right away, I had a hard drive Western Digital 640GB BLUE SATA2 2.5" WD6400BEVT and there were no suspicions of its abnormal operation before, I regularly looked at the S.M.A.R.T. values, everything was fine with them, there were no bad or reassigned sectors on the hard drive. So what were those quiet sounds that the hard drive was making? I set myself a goal and started looking for similar complaints on the Internet and immediately found what the problem was.

It turns out that modern hard drives have a technology for parking the head unit when idle. For what? To save the resource of the heads themselves, disk platters and electricity. The heads hanging above the plates create additional aerodynamic drag, because The discs rotate at a fairly high speed, then the air in the can is drawn into rotation along with them, and the head block slows down these air flows. The resulting chaotic “gusts of wind” in turn create additional resistance for the rotation of the plates and energy consumption increases, which increases the temperature, which is harmful to the heads. As an example, I’ll say that for 3.5-inch disks with a rotation speed of 7200 rpm, the linear speed of the edges of the plates is approximately 120 km/h, and at such speeds the air is already quite tangible, as you can personally verify by sticking your hand out of the car. So, when the computer takes a break from work, and the hard drive along with it, then after a while the Advanced Power Management functions come into operation and they park the hard drive heads. Everything would be fine, but the idle time before activating the energy saving function in some disks is only a few seconds; as a result, it turns out that the disk parks its heads very often. Disk manufacturers claim that disks can easily withstand up to 1 million parking spaces (depending on the disk model), but in practice the number of parking lots increases very quickly and after half a year of disk operation this number can exceed 200 thousand!

But this educational program should not bother you. Frequent parking will cause your drive to die much earlier than all the phenomena described.

So let's go back, as they say, to our sheep. On my WD6400BEVT drive there were about two thousand parking lots every day, and in just two years it would definitely die from constant parking. I don’t know why my disk had this problem, it was “BLUE” BLUE, although this usually affects models of the “GREEN” GREEN series of disks, the main purpose of which is to save energy.

So. How to check your disk for the presence of such a “disease”? The answer is simple. You need a program that will show you the S.M.A.R.T. parameters. This could be, for example, the AIDA64 (Everest) program or similar. AIDA64 (Everest) is a hardware monitoring program, in this case we will be interested in the information as in the picture.

We are primarily interested in the parameter С1 Load/Unload Cycle count- the number of head parkings, if this parameter is several times greater (or tens of times) than the parameter 0С Power Cycle Count- the number of disk power-off cycles (can be considered the number of times the computer is turned on if the disk was installed in it initially). This is our case!

What will help us? And a little program called WDIdle3. It only works with Western Digital drives, although this problem is not limited to Western Digital drives. In the screenshot you saw above, the S.M.A.R.T. indicators. Hitachi HTS721010A9E630 1TB 2.5" 7200rpm hard drive - it also suffers from frequent head parking, but this program does NOT help it. With Hitachi drives the situation is a little more complicated and I will not describe it in this article.

So here it is. First we need to prepare our computer for “treatment”, or to be more precise:

  1. Switch the disk operating mode to IDE in the BIOS if you have AHCI installed. Some laptops cannot be set to IDE, so the drive must be removed and connected to a desktop computer.
  2. Create a boot floppy disk or USB flash drive with DOS. Read how to create a bootable USB flash drive with DOS if you don’t know how to do this.
  3. WDIdle3- actually herself utility version 1.05, the utility was created for a very limited set of disks on which this problem first appeared, but works with all WD disks.

If you have already done all three steps, then unpack it from the WDIdle3 archive and copy it onto a flash drive or floppy disk (depending on what you are using). It is recommended to physically disconnect all other drives except the one you plan to work with and, of course, do not forget to make a backup of the data (but who will do that :) So, boot from the flash drive and enter in the command line:

wdidle3 /r

The command displays information about the current settings of the head parking timer; if the value is read from your disk, then a new one will be written, which seems logical, write down the original value just in case to return the disk under warranty or the disk reacts inadequately. For example, on my disk there were 8 seconds.

So, the time of the head parking timer was found out and remembered or written down. Now we need to set a new, longer time or turn off the timer altogether. To do this, run the program with the commands:

wdidle3 /d

Command to stop the timer; this setting completely disables head parking during operation.

wdidle3/s210

The team sets the timer to 210 seconds. It must be remembered that when setting the timer from 8 to 12.7 seconds, you can set it with an accuracy of 0.1 seconds; when setting from 12.8 to 30 seconds, the timer is always set to 30 seconds. Values ​​from 31 to 300 seconds are set with an accuracy of 30 seconds.

Help on using the utility can be obtained with the command:

wdidle3 /?

This command provides help on using the utility.

After changing the parameters, you need to type again:

wdidle3 /r

Thus, we can make sure that the new value has been registered and is already After this, be sure to TURN OFF THE COMPUTER POWER holding down the power button for 3-5 seconds.

Now turn on the computer and load Windows. For those who have disconnected additional drives, you can connect them again before turning on the computer, and those Anyone who switched the disk operating mode to IDE in the BIOS needs to go into the BIOS and switch it back to AHCI mode, otherwise you will get a blue screen of death when loading Windows.

Just today I changed the head parking time on two “GREEN” disks Western Digital 2TB WD20EZRX and Western Digital 2TB WD20EARX - the problem disappeared, the time was 8 seconds on each, it became 240 :) The disks work and do not park as often as it was before! Hooray!

Some models of Seagate hard drives are distinguished by the fact that they have an inadequately low waiting time before switching to power saving mode, in which the read heads go into a parked state. This transition is accompanied by a characteristic crackling-whistle-creaking sound, and in the case where the hard drive is not a system drive, this can happen every few minutes. Needless to say that, in addition to the risk of failure from excessively frequent parking, it is also simply annoying with its chirping sound?

It is not particularly surprising that Seagate specialists do not want to provide users of their products with any way to permanently disable auto parking on many models of their hard drives. We have to reinvent the wheel again.

You can verify that there is a problem by the rapidly increasing value of the parameter Load/Unload Cycle Count in the S.M.A.R.T of such a drive. If the value of this parameter is hundreds or thousands of times different from the parameter Start/Stop Count, then obviously your hard drive is susceptible to this problem.

To forcibly disable parking in a system running Windows OS, we will use a ported version of the Linux utility hdparm and the standard Windows scheduler.

You can download the hdparm assembly for Windows in our archive.

First, you need to find out what the dissected disk is called in Linux terminology. Launch the command line ( cmd.exe) with administrator rights and call through it hdparm.exe -i /dev/sdX:

C:\>"c:\Program Files (x86)\Tools\hdparm\hdparm.exe" -i /dev/sda /dev/sda: Model= ST1000DM003-1CH162, FwRev=CC49, SerialNo= S1D85MBP Config=( HardSect NotMFM HdSw>15uSec Fixed DTR>10Mbs RotSpdTol>.5% ) RawCHS=16383/16/63, TrkSize=0, SectSize=0, ECCbytes=4 BuffType=unknown, BuffSize =0kB, MaxMultSect=16, MultSect=off CurCHS=16383/16/63, CurSects=16514064, LBA=yes, LBAsects=268435455

So, in our case, the Seagate drive is designated by /dev/sda. If he were second in the system, then his designation would be /dev/sdb, if third – /dev/sdc, etc.

Now open the Task Scheduler ( taskschd.msc) and create a new task. On the first page, indicate an arbitrary name for the task, select a user SYSTEM and indicate that the task must be executed with maximum access rights:

On the triggers tab, create a trigger to perform a task when the system boots:

In addition, we will need to create another trigger to perform a task when the computer wakes up from sleep, because Disabling parking will also fail when the computer goes into sleep or hibernation:

Then go to the actions tab and add a launch hdparm.exe with key -B 255 /dev/sda which will disable parking on the sda ​​drive:

This completes the setup - save the created task and manually launch it from the scheduler task library to check it. Then click on F5 to update the library - if everything went well, then in the column with the result of the last launch of our task the code “0x0” will be indicated.

Now we can open any disk health monitoring utility - for example, CrystalDisk Info - and make sure that APM is disabled on the selected hard drive. This task will run every time the computer is turned on or wakes up from sleep mode, and thereby keeps auto parking disabled.

PS: We take this opportunity to say hello to the Seagate firmware writers. May you all have hiccups there.

Continuing the topic:
Android

Overclocking a processor is an increase in the speed of the chip compared to the performance declared by the manufacturer. The most popular method is magnification. In that...