[archlinux]grub2重建,在windows重裝後
[警告,請了解指令內容再操作,否則後果自負]
用live光碟開啟
mount /dev/sdaX /mnt
mount /dev/sdaY /mnt/home
mount /dev/sdaZ /mnt/boot
arch-chroot /mnt
grub-install --target=i386-pc --recheck --debug /dev/sda
grub-mkconfig -o /boot/grub/grub.cfg
用live光碟開啟
mount /dev/sdaX /mnt
mount /dev/sdaY /mnt/home
mount /dev/sdaZ /mnt/boot
arch-chroot /mnt
grub-install --target=i386-pc --recheck --debug /dev/sda
grub-mkconfig -o /boot/grub/grub.cfg
留言