HDD fail to boot sometimes

Oct 15, 2018
1
0
10
sometimes (mostly the first startup) the system boot but after going into desktop a few secs later, the HDD makes a weird sound and the whole system crashes (even getting a BSOD)

so i have to reboot until it finally boot normally and if i manage to boot without that issue the PC works perfectly fine

what is causing this? how can i fix it? is my HDD dying?

here are my system specs from dxdiag:

Machine name: DELL-PC
Operating System: Windows 7 Ultimate 64-bit (6.1, Build 7601) Service Pack 1 (7601.win7sp1_rtm.101119-1850)
Language: Spanish (Regional Setting: Spanish)
System Manufacturer: Dell Inc.
System Model: OptiPlex 390
BIOS: Default System BIOS
Processor: Intel(R) Core(TM) i3-2120 CPU @ 3.30GHz (4 CPUs), ~3.3GHz
Memory: 8192MB RAM
Available OS Memory: 8166MB RAM
Page File: 2170MB used, 14157MB available
Windows Dir: C:\Windows
DirectX Version: DirectX 11
DX Setup Parameters: Not found
User DPI Setting: Using System DPI
System DPI Setting: 96 DPI (100 percent)
DWM DPI Scaling: Disabled
DxDiag Version: 6.01.7601.17514 32bit Unicode