sandervanvugt

partial linux troubleshooting march 22

Mar 22nd, 2022
257
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.68 KB | None | 0 0
  1. [root@localhost ~]# history
  2. 1 reboot
  3. 2 cd /
  4. 3 touch .autorelabel
  5. 4 vim /etc/default/grub
  6. 5 grub2-mkconfig -o /boot/grub2/grub.cfg
  7. 6 reboot
  8. 7 arp -a
  9. 8 arp --help
  10. 9 arp -d 192.168.29.149
  11. 10 arp -a
  12. 11 ping 192.168.29.149
  13. 12 which mount
  14. 13 mv /bin/mount /bin/tnuom
  15. 14 cp /bin/false /bin/mount
  16. 15 strace mount
  17. 16 ls -l /usr/bin/mount /usr/bin/false
  18. 17 mount --help
  19. 18 false --help
  20. 19 ls
  21. 20 exit
  22. 21 xxd -l 512 /dev/sda
  23. 22 dd if=/dev/sda of=/boot/mbr_backup bs=512 count=1
  24. 23 dd if=/dev/zero of=/dev/sda bs=512 count=1
  25. 24 xxd -l 512 /dev/sda
  26. 25 reboot
  27. 26 history
  28.  
Advertisement
Add Comment
Please, Sign In to add comment