AWS fixing a volume login
lsblk
mount /dev/xvdf /mnt
cd /mnt/var/log
ls -ltr
tail -n 20 auth.log
cd /mnt/home/bitnami
ls -ld
cd
chroot /mnt
cd /home/bitnami
ls -ld
ls -ld .ssh
ls -la .ssh
ls -ld /home
chown bitnami:bitnami /home/bitnami
ls -ld .
exit
umount /mnt
/dev/sda1
find out top 10 largest file/directories
du -a /var | sort -n -r | head -n 10
du -hsx * | sort -rh | head -10
mount /dev/xvdf /mnt
cd /mnt/var/log
ls -ltr
tail -n 20 auth.log
cd /mnt/home/bitnami
ls -ld
cd
chroot /mnt
cd /home/bitnami
ls -ld
ls -ld .ssh
ls -la .ssh
ls -ld /home
chown bitnami:bitnami /home/bitnami
ls -ld .
exit
umount /mnt
/dev/sda1
find out top 10 largest file/directories
du -a /var | sort -n -r | head -n 10
du -hsx * | sort -rh | head -10
Comments
Post a Comment