The operating system is installed and kept on a hard drive in computers. The OS does not lose data when the hard disc is turned off because it is a non-volatile memory. However, because data access from the hard disc is slow, the operating system is copied into RAM from the hard disc as soon as the machine is turned on.