Hard drive data is separated into disks, sectors, and clusters:
Your operating system contains a special file that is requested by the motherboard, and basically this file tells the operating what disk, sector, and cluster. Hard drives store data physically, which is why data is not lost when electricity is not flowing through. There is a special property of quantum mechanics used to decode the physical data off a hard drive and turn it into electronic data.
Note: I am not an expert on hard drives but am happy to share that info with you!