Adrian Posted November 24, 2017 Share Posted November 24, 2017 I'm trying to remove the HPA partition, but I can't figure out what value to use with hdparm. All the posts refer to looking in the syslogs, but my syslogs don't show anything regarding HPA. Too bad Fix Common Problems can't just show the value. Quote Link to comment
Squid Posted November 24, 2017 Share Posted November 24, 2017 (edited) Like the warning from FCP says, if its not on your parity disk, then don't worry about it as we're talking about a few meg of lost space. The values you're looking for will be given via something like root@Server_B:hdparm -N /dev/sdf /dev/sdf: max sectors = 156299375/156301488, HPA is enabled First # is the number of sectors the partition is currently set to, second is the maximum # of sectors (the example shows just over 1 Meg of lost space) Problem with HPA is that if your motherboard in use put it on there, then its going to tend to come back under certain circumstances - hence the why bother with it). It only matters if the drive in question is your parity drive in which case it will wind up having LESS capacity than your data drives which will impact your ability to rebuild a drive if / when the need arises Edit: The lines in the syslog you're looking for is rather early when its enumerating the drives, and will look like this: Nov 5 21:35:54 Server_B kernel: ata5.00: HPA detected: current 156299375, native 156301488 Edited November 24, 2017 by Squid 1 Quote Link to comment
Adrian Posted November 25, 2017 Author Share Posted November 25, 2017 (edited) Going to try again. Edited November 25, 2017 by Adrian Quote Link to comment
Adrian Posted November 25, 2017 Author Share Posted November 25, 2017 21 hours ago, Squid said: root@Server_B:hdparm -N /dev/sdf ok that did it! It seems all the posts I kept finding kept referring to seeing it in the logs, but my logs don't show any messages about HPA being detected. Quote Link to comment
Adrian Posted November 25, 2017 Author Share Posted November 25, 2017 So I ran hdparm -N /dev/sda and got the following: /dev/sda: max sectors = 3907027055/3907029168, HPA is enabled root@MEDIASERVER:~# hdparm -N -p3907029168 /dev/sda /dev/sda: attempting to set PIO mode to -387938128 HDIO_SET_PIO_MODE failed: Invalid argument max sectors = 3907027055/3907029168, HPA is enabled Quote Link to comment
Squid Posted November 25, 2017 Share Posted November 25, 2017 No idea. You can research hdparm via google or here's an alternative you can try this https://forums.lime-technology.com/topic/15765-how-to-remove-hpa-with-hdat2-from-usb-flash-drive/. The one and only time I ever removed an HPA years ago I did via hdparm Quote Link to comment
Adrian Posted November 25, 2017 Author Share Posted November 25, 2017 2 hours ago, Squid said: No idea. You can research hdparm via google or here's an alternative you can try this https://forums.lime-technology.com/topic/15765-how-to-remove-hpa-with-hdat2-from-usb-flash-drive/. The one and only time I ever removed an HPA years ago I did via hdparm oops, I put a - in front of p Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.