The application discloses a method for supporting hot plug of a
LINUX kernel operating system to a
system disk, comprising the following steps: a, checking consistency between a removable storage device and the
system disk; b, if the unloaded removable storage device is consistent with the
system disk, not releasing a super block, suspending all running threads of the kernel, and waiting for the device to be inserted; c, after the removable storage device is inserted, identifying a device id of a
mount device when mounting is completed and automatically starting, and comparing with the system disk id; d, if the id of the
mount device is consistent with the id of the system disk, mapping the device to the super block of the original system disk, activating all threads in the kernel after completing data write-back synchronization, and completing
system recovery; after the hot plug of the system disk is performed, the pulled-out system disk can be reinserted to ensure that the system can continue to be normally used without restarting, and data of the system disk and other mounted disks will not be damaged or lost.