跳转至

Rescue EC2 Instance

../git-attachment/rescue-ec2-instance-png-1.png

../git-attachment/rescue-ec2-instance-png-2.png

ssh to rescue

sudo su -

lsblk
rescuedev=/dev/xvdf1

rescuemnt=/mnt
mkdir -p $rescuemnt
mount $rescuedev $rescuemnt
for i in proc sys dev run; do mount --bind /$i $rescuemnt/$i ; done
chroot $rescuemnt

umount

exit

umount $rescuemnt/{proc,sys,dev,run,}

../git-attachment/rescue-ec2-instance-png-3.png

refer

automation runbook