check in BIOS.. by pressing F12 or F2 or Del whatever your laptop model..
check there if it get detected..
Also check in device manager.. disk management.. So that what error you got what allocation you mean partition?
Can you please share the status of the drive in Disk Management? Maybe even a screenshot would be very helpful.
Since it alerts you of an error, I strongly recommend testing the drive for issues using your HDD brand-specific diagnostics tool to check up on the health and SMART status. Can you tell us what does the error state when you try to allocate the storage?
Please share more details about your HDD issue, so we are able to actually help you!
SuperSoph_WD