Posted: Thu 02 May 2013, 08:40 Post subject:
How to repair ubuntu grub2 MBR of your hd
It can happen that your pc with ubuntu and grub2 (grub-pc) even in dual-boot with windows gets its mbr damaged. There are several tutorials on the internet how to repair mbr by a ubuntu live cd/dvd. I use puppy linux. You can use puppy in ram mode or you can boot a pupsave on your hd. Assuming that sdax contains the ubuntu install you have to type the following commands in puppy console:
Code:
mkdir /mnt/dir
mount /dev/sdax /mnt/dir
mount --bind /dev /mnt/dir/dev
mount --bind /proc /mnt/dir/proc
mount --bind /sys /mnt/dir/sys
chroot /mnt/dir
grub-install /dev/sda
exit
umount /mnt/dir/dev
umount /mnt/dir/proc
umount /mnt/dir/sys
umount /mnt/dir
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum