This invention provides a method for mutual
backup of
operating system partitions on a single
RAID solid-state drive (SSD) and the SSD itself, relating to the field of storage
backup technology. This invention enables SSD manufacturers to implement SSD
backup of the
operating system disk through specific functions developed in the
firmware. Before leaving the factory, the SSD is configured with two partitions of
equal size: a visible primary partition for
operating system installation and a secondary partition as a hidden operating
system backup partition. The user installs the operating
system on the primary partition, along with necessary drivers and applications. A command is triggered by continuously powering on and off n times. When the SSD detects that it has been powered on n times consecutively within a predetermined time period, the SSD
firmware is triggered to completely back up the visible partition to the hidden secondary partition. When the device enters idle mode, newly added data on the visible
system disk partition is automatically backed up to the hidden secondary partition. When the operating system on the primary visible partition is corrupted and cannot function properly, the system is powered on and off m times consecutively. If the SSD detects that it has been powered on and off m times within a specified time period, the SSD's
firmware is triggered to switch the device to the operating system on the backup hidden secondary partition. The secondary partition becomes the primary visible operating system partition, and the primary partition becomes the hidden backup secondary partition. After confirming that the new primary visible partition successfully boots the system, the system is powered off. An unbackup operating system operation is then performed, achieving mutual backup of the operating systems.