@YUBA
Why don't you start by telling us WHAT you are hoping to accomplish by doing this?
A new Elitedesk would come with Win10 preloaded, not "no OS" as you indicated.
So, are you trying to get into legacy mode to install a Linux distro?
IF so, since we aren't equipped here to provide detailed Linux support, your best bet then would be to contact the support forum for the Linux distro you are planning to install.
I am a volunteer and I do not work for, nor represent, HP