step 2. find where is your hard disk for filesystem
sudo fdisk -l
step 3. mount harddisk
sudo mount /dev/sdxx /mnt ( sdaxx depend on where is your hard disk)
sudo mount --bind /dev /mnt/dev
sudo mount --bind /sys /mnt/sys
sudo mount --bind /proc /mnt/proc
step 4. change to target filesystem
sudo chroot /mnt
sudo chroot /mnt
step 5. reinstall grub
grub-install /dev/sdx
update-grub
step 6. leave chroot
exit
step 7. umount
sudo umount /mnt/proc
sudo umount /mnt/dev
sudo umount /mnt/sys
sudo umount /mnt
step 8. reboot system
沒有留言:
張貼留言