power it back on
hold the mode button in when you see xmodem is "available"
hold for about 3 seconds, and release, boot process should be interrupted. Its a bit different for each switch so google the model.
connect the console with minicom
set BAUD 115200
screen will freeze, close minicom
connect back like so
screen /dev/ttyUSB0 115200
copy xmodem: flash:/filename.bin
now press ctrl +a and then :
exec !! sx filename.bin
my file was located in /home/myuser
Some rommons can use TFTP which would be faster, you plug your
laptop lan -> mgmt port on sw set static IP on laptop (10.10.10.1) run tftpd server and drop ios in there set IP_ADDR 10.10.10.2/255.255.255.0 ping to verify emergency-install tftp://10.10.10.1/filename.bin
or
copy tftp:/filename.bin flash: