The present application relates to the technical field of automatic production deployment, and particularly relates to a method and device for automatic deployment,
computer equipment and a storage medium. The method comprises the following steps: listening to a physical mounting event of a
USB device; if the
USB device is found to be connected, verifying the legality of the
USB device; if the USB device is verified, entering an environment locking mode; constructing a
parallel pipeline system comprising a reading thread, a checking thread and a writing thread, and performing
stream processing on data of the USB device; listening to a physical removal event of the USB device; and if the USB device is found to be removed, automatically triggering a
system restart. An operator only needs to perform two actions of 'inserting' and'removing', and the time consumption of a single
machine is about 4 seconds, zero touch and zero false touch. After testing the same batch of aged USB disks, the
stream checking mechanism successfully intercepts all read errors caused by bad blocks, and the
firmware integrity of the deployed device reaches 100%, solving the problem of low production efficiency caused by reliance on manual interaction.