How to Install an Operating System on a Computer
When you buy a new computer, it usually comes with an operating system installed on a hard drive partition, but if you're building a computer or replacing a hard drive, you need to install an OS from scratch. If your computer came with a recovery partition containing an OS installation image, you can boot into this image to reinstall your OS. Otherwise, you need a USB drive or DVD containing the bootable disk image so that you can temporarily boot from this medium to format your hard drive and install the OS.