Recover Windows 7 boot after installing Ubuntu

This seems to be self explanatory just insert the Win 7 CD and follow the below given instructions and then enter the commands one by one as mentioned below strictly without missing anyone of them.

Select your language preferences and click on Next.

Click on Repair your computer.

Select which operating system you want to restore and the click on Next. If Windows 7 is not listed here, or it is blank, then it is ok. Click on Next anyway.

Select the system recovery option you want to do:

Startup Repair

System Restore

System Image Recovery

Windows Memory Diagnostic

Command Prompt

If you managed to recover Windows 7, will have lost Grub should reinstall.

Insert the Ubuntu Desktop live-disc into the DVD drive and restart the computer.

Select Try it.

Open a terminal.

Run it:

sudo -i
fdisk -l
#Suppose fdisk informs your partition / is /dev/sda3, continue running
mount /dev/sda3 /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
grub-mkconfig -o /boot/grub/grub.cfg
grub-install --root-directory=/mnt /dev/sda
grub-install --recheck /dev/sda
umount /mnt
reboot

That’s it.

via – arch wiki & Microsoft forums.

Akash Angle

I am a Full time Linux user who has quit using Windows for unknown reasons, making my life truly open source.

Recent Posts

Get the most juice from your ISP/router — setting MTU size & other handy tweaks

This is not an ad-vocation by any means for TP-link branding, however a real life…

7 months ago

How to make any Android phone up-to 3x faster – Developer options unleashed

First of all we need to hit the kernel version on any Android device. You…

7 months ago

systemd-resolve command not found in Ubuntu Desktop

Use resolvectl status instead. It's like something deprecates and suddenly things get broken! In systemd…

12 months ago

How to exclude multiple directories with rsync?

Geeky question: This is what people and friends have tried: rsync -arv --exclude "/home/john/.ccache:/home/ben/build" /home/john…

12 months ago

How to resolve apt-get -f not working

You might encounter this error which appears to be very common on Debian based Distro's…

12 months ago

How to install Broadcom STA wireless drivers on Kali Linux

PS: This article is for only Kali Linux users, that too having a Broadcom Wireless…

1 year ago