Author Topic: How to reinstall boot loader without modifying any partition?  (Read 304 times)

For a few years I have windows 7 installed. Someone messed up the boot loader, and rather than quickly fixing it, I did a complete wipe of my harddrive. I still seriously regret that. Then I installed ubuntu, and I used it for a few months. After a while the programs that I needed windows to run started to pile up, so I finally decided to switch to windows. I tried using an old Windows 7 cd, but it didn't work for whatever reason, so I installed XP (had a cd for it) then vista (another old cd) then finally windows 7, all on one partition. Unfortunetly I don't seem to have the option to boot up into ubuntu anymore, although I'm almost positive my ubuntu partition was unaffected.

tl;dr: How do I access an old ubuntu install on a more or less hidden partition?

boot into your installation medium that you used to install ubuntu, as root run (if you can't become root just use sudo before everything)

lsblk (find your ubuntu partition)
mount /dev/sdx# /mnt (where sdx# is your ubuntu partition)
grub-install --boot-directory=/mnt/boot /dev/sdx (where sdx is your storage medium without a partition number)
umount /dev/sdx#
shutdown -r now
« Last Edit: July 20, 2013, 04:41:35 PM by KoopaScooper »

nevermind didn't read properly
« Last Edit: July 20, 2013, 04:45:43 PM by Nal »

Actually there is a program you can use on ubuntu that runs window programs.