Hi guys,
I am looking to install Windows 7 on a separate HD. I have not had a dual boot setup in several years as I primarily use linux as my main OS with windows running in a VM when needed. I, unfortunately, have a need for Windows outside of a VM for photo processing.
I assume I will need to re-install grub from a live CD after the windows install, but I am unable to locate any decent documentation on doing this. Any help is appreciated.
Installing Windows 7 after LMDE <SOLVED>
Forum rules
LMDE 2 has reached end of support as of 1-1-2019
LMDE 2 has reached end of support as of 1-1-2019
Installing Windows 7 after LMDE <SOLVED>
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 2 times in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
Re: Installing Windows 7 after LMDE
just install windows to the hard drive then boot your live cd and chroot your root linux directory and run grub-install and update.
install windows, boot live cd then find out your linux root partitions name in linux, mine is sda5, but i dualboot, yours is probably sda1 or something like that, just replace /dev/sdaX with your appropriate partition designation. the next to last command needs to be run on your boot sector, so its the name of the harddrive with no number after it, this will write grub back to your boot sector.
assuming i was clear enough you should be able to reboot, and profit...
install windows, boot live cd then find out your linux root partitions name in linux, mine is sda5, but i dualboot, yours is probably sda1 or something like that, just replace /dev/sdaX with your appropriate partition designation. the next to last command needs to be run on your boot sector, so its the name of the harddrive with no number after it, this will write grub back to your boot sector.
Code: Select all
sudo mount /dev/sdaX /mnt
sudo mount -o bind /dev /mnt/dev
sudo mount -o bind /sys /mnt/sys
sudo mount -o bind /proc /mnt/proc
sudo chroot /mnt
sudo grub-install /dev/sda
sudo update-grub
Last edited by sohardivetried on Tue Dec 18, 2012 12:08 pm, edited 1 time in total.
Re: Installing Windows 7 after LMDE
its pretty straight forward glad to help, mark thread solved also