How do I install windows again on a dual boot with Linux Mint?
Linux MintThis forum is for the discussion of Linux Mint.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Distribution: Mint 20, Kali, Peppermint, Ubuntu, MakuluFlash, Fedora 32, Windows 12 Lite, MakuluLinux
Posts: 821
Rep:
How do I install windows again on a dual boot with Linux Mint?
I want to reinstall Windows on a dual boot with Linux Mint 19.1
I will first move all the data and installed programs of Windows to Linux Mint across the desktop then
delete the larger partition and reformat it to NTFS with Gparted.
Since I am keeping the smaller NTFS partition which I assume has the grub in it, will I be able to a fresh Windows 10 to the NTFS larger partition and be able to still dual boot without losing the Linux boot option?
If it does not work this way I assume another Mint installation will put two Mints and Windows as the triple boot. Then I would have to go to the installed Mint with the saved files and programs returning them to the new Windows.
Then I would delete both Mint partitions with Gparted and reinstall Linux Mint 19.1.
if UEFI then you'll have a small partition /boot/efi on it, otherwise it is delete-able because MBR grub for one resides on the mbr, and will be over written by Windows when you install it again. if UEFI then it should not be a big deal to install Windows after Linux because the /boot/efi directory holds the files to boot your operating systems.
if you have your Linux split into root and home separately then you can install linux again over top of it, actually format the same area and install it again. you might be able to use supergrub2 to find it then boot into it then install grub again regaining your Linux without issue.
Whilst UEFI is certainly easier, there is no need to re-install Mint. Nor does it matter if there is a separate /boot partition.
Simply re-install Win10 - it will detect what it needs. You will lose access to the Mint system. Presuming UEFI, go into the firmware screens and make Ubuntu the default boot entry.
If BIOS, boot a liveUSB (the Mint install USB is fine) and chroot into the Mint system then run "grub-install" followed by "update-grub". The supergrubdisk used to be handy for doing all this for your - I presume it still does although I haven't checked it out for a while.
Lots of how-to's out there for both Mint and Ubuntu - they should all be applicable.
Last edited by syg00; 02-07-2019 at 05:33 PM.
Reason: sp
Copy/Paste the command below in a terminal on Mint to determine if your Mint is EFI or Legacy. Or use sudo parted -l and see if there is an EFI partition. Also, no Grub files will or at least should not be on an ntfs partition. If EFI, some files will be on the vfat partition.
Quote:
[ -d /sys/firmware/efi ] && echo "EFI boot on HDD" || echo "Legacy boot on HDD"
Distribution: Mint 20, Kali, Peppermint, Ubuntu, MakuluFlash, Fedora 32, Windows 12 Lite, MakuluLinux
Posts: 821
Original Poster
Rep:
Quote:
Originally Posted by yancek
Copy/Paste the command below in a terminal on Mint to determine if your Mint is EFI or Legacy. Or use sudo parted -l and see if there is an EFI partition. Also, no Grub files will or at least should not be on an ntfs partition. If EFI, some files will be on the vfat partition.
First says no command -d
second says
Model: ATA WDC WDS500G1B0A- (scsi)
Disk /dev/sda: 500GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Disk Flags:
Number Start End Size Type File system Flags
1 1049kB 247GB 247GB primary ext4
2 247GB 248GB 524MB primary ntfs boot
3 248GB 378GB 130GB primary ntfs
4 497GB 500GB 3430MB extended
5 497GB 500GB 3430MB logical linux-swap(v1)
Distribution: Mint 20, Kali, Peppermint, Ubuntu, MakuluFlash, Fedora 32, Windows 12 Lite, MakuluLinux
Posts: 821
Original Poster
Rep:
Quote:
Originally Posted by syg00
Take more care when copy-paste. You have BIOS.
Do not understand you I have done it again
barry@barry-To-be-filled-by-O-E-M ~ $ [ -d /sys/firmware/efi ] && echo "EFI boot on HDD"
barry@barry-To-be-filled-by-O-E-M ~ $
MBR boot not UEFI, so that means you'll lose your gurb momentary until you do one of the suggestions, chroot, or try and see if supergrub2 will get you back in to Linux to re-establish your gurb after a windows installation.
Partition Table: msdos <--- is the tell tell sign you got MBR, Legacy, BIOS, Old School, boot setup.
Distribution: Mint 20, Kali, Peppermint, Ubuntu, MakuluFlash, Fedora 32, Windows 12 Lite, MakuluLinux
Posts: 821
Original Poster
Rep:
Quote:
Originally Posted by BW-userx
MBR boot not UEFI, so that means you'll lose your gurb momentary until you do one of the suggestions, chroot, or try and see if supergrub2 will get you back in to Linux to re-establish your gurb after a windows installation.
That is a result of leaving the " [ " character off when running the command.
Since you have a Legacy/msdos partitioned drive, your windows installer should detect that and install to whichever partition you select formatted ntfs. Windows on a Legacy/MBR install will overwrite the Grub boot code in the MBR. You will not be asked if you want to do this nor will you be informed that it is happening. Once the install is finished, reboot to windows to test. If it boots, use Your Linux install media or SuperGrubDisk to re-install Grub to the MBR.
Distribution: Mint 20, Kali, Peppermint, Ubuntu, MakuluFlash, Fedora 32, Windows 12 Lite, MakuluLinux
Posts: 821
Original Poster
Rep:
Quote:
Originally Posted by yancek
That is a result of leaving the " [ " character off when running the command.
Since you have a Legacy/msdos partitioned drive, your windows installer should detect that and install to whichever partition you select formatted ntfs. Windows on a Legacy/MBR install will overwrite the Grub boot code in the MBR. You will not be asked if you want to do this nor will you be informed that it is happening. Once the install is finished, reboot to windows to test. If it boots, use Your Linux install media or SuperGrubDisk to re-install Grub to the MBR.
I did that and got no command -d and then keep ing the [ info] It did nothing at all
Try it and see if it works on your terminal certainly does not on mine.
Just downloaded the supergrub2.iso and want to now how I can use it to restore a grub that has both windoze and linux on?
Or should I use it first before partitioning to delte and reinstall windows and save the grub?
after you've installed grub. With supergrub2 you boot it select it in BIOS what do you want to boot list that comes up, you should know how to boot your system and use BIOS boot list selection, pick the usb stick , then when it boots into it, have it search for all oses, then travel down the list until you find your linux distro then select it, it too will show you the old style of booting using the I do not know what it is called, but the partitions nomenclature style as well if you run into problems with it try using that one msdos(0,3) something like that.
you'll understand what I am talking about when you see it. you just need to know where your kernel is located on what partition and hdd to select it. if you use that one on the list. Oh yes, it is zero based.
Distribution: Mint 20, Kali, Peppermint, Ubuntu, MakuluFlash, Fedora 32, Windows 12 Lite, MakuluLinux
Posts: 821
Original Poster
Rep:
Quote:
Originally Posted by BW-userx
oops you forgot
Code:
sudo update-grub
after you've installed grub. With supergrub2 you boot it select it in BIOS what do you want to boot list that comes up, you should know how to boot your system and use BIOS boot
I cannot see the grub there all it seems to do is allow me to select Windows or Linux.
Do you know where I can find my existing grub for me to save it?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.