Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ###Fase 1 (live)
- sudo su -
- e2fsck -f /dev/sdX#
- tune2fs -U random /dev/sdX#
- mount /dev/sdX# /mnt
- mount --bind /dev /mnt/dev
- mount --bind /dev/pts /mnt/dev/pts
- mount --bind /proc /mnt/proc
- mount --bind /sys /mnt/sys
- chroot /mnt
- ###Fase 2 (jail)
- blkid
- #Edite o /etc/fstab e atualize (UUID={NEW_UUID} / ext4 discard,noatime,errors=remount-ro 0 1)
- update-initramfs -u -k all
- grub-install --recheck --no-floppy /dev/sdX
- update-grub ; sync ; exit
- ###Fase 3 (exit)
- umount /mnt/sys /mnt/proc /mnt/dev/pts /mnt/dev /mnt
- shutdown -r now
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement