Rescue EC2 Instance¶
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
- refer: ../CLI/linux/linux-cmd
umount¶
refer¶
automation runbook