It is recommended:
"*Activation of Host Protected Area (HPA)
Short first: What is HPA or over-provisioning?
This is an invisible data area (spare area) for the operating system. It is used to read and write operations to optimize (Read-Modify-Write), replacement of defective blocks (bad blocks Replacement), optimal utilization of the memory cells (wear leveling).
When Samsung SSD Pro Series HPA feature is disabled at the factory. They can be activated without any problems and is strongly recommended. Subsequent activation of HPA is connected to data loss. Therefore, one should deal with this issue soon enough. In a brand new SSD, it is a good time to activate the HPA feature and to think about the size of the spare area.
How big can for the spare area be?
There are, depending on use different values based solely on recommendations. We are talking about the range of 7% (recommendation from Samsung) to 27% (recommended by Intel) of the reserved data area. For my purposes, I modified the recommendation of Samsung (7%) and another 3% down on it. I believe that 10% Spare Area more than enough. 10% of 512 GB is equal to 51.2 GB. So I end up 460.8 GB usable data area.
Now we have to find out on which device path, the SSD is associated with:
hwinfo --disk | grep -E ‘Model | Device File’
The output from my system:
Model: “Samsung SSD 840”
Device file / dev / sda
Model: “SAMSUNG HD753LJ”
Device file / dev / sdb
Here we see that the device path is below the model name “Samsung SSD 840” / dev / sda. If your device path of the SSD is different, please contact the following commands to customize your circumstances.
Now we let the number of sectors of the SSD issue:
hdparm -N / dev / sda | sed -e ‘! / sectors / d’ -e ‘s @ * / \ * @ \ 1 @. (. * ).’
Issue:
1000215216
10% of the above-mentioned Number: 100,021,521.6. Then we rounded to an integer on: 100021522nd And now we take the sum of the calculated reserved data area from and as a result we have the sum of sectors for the useful data area:
1000215216 to 100021522 = 900193694
Now we ask for the SSD, whether HPA is initially disabled or has already been activated:
hdparm -N / dev / sda
The output is:
/ Dev / sda:
max sectors = 1000215216/1000215216, HPA is disabled
In the above-mentioned hdparm output, it means that the HPA feature is disabled. Indicated by “HPA is disabled”. Should there be already activated, then the decision is up to you whether you will take the value or the value modifies below.
Now we activate via hdparm the HPA feature set and the sum of the sectors for the useful data area:
hdparm -Np900193694 --yes-i-know-what-i-am-doing / dev / sda
On the next call of “hdparm -N / dev / sda” we now see the following output, which also includes the HPA feature is enabled:
/ Dev / sda:
max sectors = 900193694/1000215216, HPA is enabled
If HPA is still disabled in your issue, then it is recommended that at this point the computer to restart once and then run the query again.*
"
I don’t have a scheduler
You can do it so:
Modify /etc/default/grub
GRUB_CMDLINE_LINUX_DEFAULT=" resume=/dev/disk/by-id/(your SSD) splash=silent quiet showopts elevator=deadline"
(This is for Grub2)