Advertisement
kardeco

ProxGrubRescue

Mar 16th, 2020
369
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.54 KB | None | 0 0
  1. ###Fase 1 (live)
  2. sudo su -
  3. e2fsck -f /dev/sdX#
  4. tune2fs -U random /dev/sdX#
  5. mount /dev/sdX# /mnt
  6. mount --bind /dev /mnt/dev
  7. mount --bind /dev/pts /mnt/dev/pts
  8. mount --bind /proc /mnt/proc
  9. mount --bind /sys /mnt/sys
  10. chroot /mnt
  11.  
  12. ###Fase 2 (jail)
  13. blkid
  14. #Edite o /etc/fstab e atualize (UUID={NEW_UUID} / ext4    discard,noatime,errors=remount-ro 0 1)
  15. update-initramfs -u -k all
  16. grub-install --recheck --no-floppy /dev/sdX
  17. update-grub ; sync ; exit
  18.  
  19. ###Fase 3 (exit)
  20. umount /mnt/sys /mnt/proc /mnt/dev/pts /mnt/dev /mnt
  21. shutdown -r now
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement