Darik’s Boot And Nuke , After dban unable to boot linux or any os
June 30, 2013 Leave a comment
i have used Darik’s Boot And Nuke , to delete my 2 laptop’s hd , so … after that i have installed without problems linux and everything was ok.
but they did not boot…. but i have fixed thank to irc guys again
so why ? i dunno anyway i have followed these tutorial to fix mbr : 1 i have done this but i don’t believe that it’s necessary : (note i had only linux so i have installed in the first partition that is called sda in my system you need to change the code if yours it’s different , sudo fdisk -l will help you to understand where is windows if you have , or the first partition anyway.) sudo fdisk -l ; sudo ms-sys -w /dev/sdxxx then
i have just restored grub2
note that fdisk should tell you where is installed kubuntu , if you don’t know just try to see where is installed with a live cd .
so i will use sda1 cuz my system was installed on sda… change the code if you need it
sudo fdisk -l ; sudo mount /dev/sda1 /mnt ; sudo mount --bind /dev /mnt/dev; sudo mount --bind /proc /mnt/proc; sudo mount --bind /sys /mnt/sys ; sudo chroot /mnt ; grub-install /dev/sda ; update-grub2