The invention provides a device, a computer and a method for protecting and restoring an
operating system; wherein, the device is applied to a computer which is provided with a memory equipment and independent redundant
disk array card, and at least comprises a configuration information memory unit, a calibrating unit and a restoring unit; the configuration information memory unit is used for storing the initial independent redundant
disk array configuration information and the initial
master boot record partitioning configuration information, the calibrating unit is used for comparing the initial independent redundant
disk array configuration information with the current independent redundant disk array configuration information, and the initial
master boot record partitioning configuration information with the current
master boot record partitioning configuration information, and for generating a restoring command if the comparison result is inconsistent, and the restoring unit is used for restoring the current independent redundant disk array configuration information and the current master boot
record partitioning configuration information. With the adoption of the technology provided by the above preferential embodiment of the invention, under the circumstance that HPA of the memory
system configuration is damaged,
RAID card configuration information and hard disk MBR partitioning configuration information can be still guaranteed simultaneously, thus ensuring the next normal starting of the
operating system.