Page 1 of 1

[SOLVED] Windows installation / dual boot

Posted: Fri Nov 06, 2015 7:25 am
by Pretty Pixel
I have placed an SSD in my laptop and installed Linux Mint 17.2 all good. After giving it some thought I would like to end up with a dual boot system Linux and Windows 7. Could someone advise me please on the best way to do this? Do I simply create a partition for Windows using GParted, then install Windows as usual from the installation CD? Many thanks in advance :)

Re: Windows installation / dual boot

Posted: Fri Nov 06, 2015 7:37 am
by Pjotr
Sounds OK. You'll have to restore bootloader Grub afterwards, though:
https://sites.google.com/site/easylinux ... tten-Grub-
(item 2 and further, left column)

Re: Windows installation / dual boot

Posted: Fri Nov 06, 2015 7:45 am
by Pretty Pixel
Great. Thank you. I didn't want to start something and run into problems part way through :)

Re: Windows installation / dual boot

Posted: Fri Nov 06, 2015 7:48 am
by Pjotr
One sidenote: you'll have to be careful when installing Windows; don't let it take over the entire hard disk.... And before you proceed, as always: ensure that you have recent backups of all your important data, on an *external* medium.

Re: Windows installation / dual boot

Posted: Fri Nov 06, 2015 10:42 am
by Pretty Pixel
Many thanks for the advice :)

Re: Windows installation / dual boot

Posted: Sat Nov 07, 2015 8:17 am
by screenshot
so first i do this? (except the grub part)
http://apcmag.com/how_to_dual_boot_linu ... first.htm/

then this?
https://sites.google.com/site/easylinux ... tten-Grub-

and then this?:)
https://sites.google.com/site/easylinux ... autifygrub

and it would also work with LMDE2?
and could i also resize an extended partition? or it only works when you resize the main MBR partition and dual-install xp on that? (sda1).
i have previously used this to install lmde2(with ext4):
http://linuxbsdos.com/2010/12/28/manual ... n-edition/
(and maybe took some latest info from here:
http://linuxbsdos.com/2012/04/25/manual ... int-debian)

but when i now try to resize the sda6(home) folder(i think), i can see that the GParted app doesnt show any partition labels, although i'm pretty sure that i have entered them during the installation because otherwise it wouldnt have continued the installation anyway...

but basically now i have an unallocated space after sda6(home) partition... should i just install XP on that now? but where should i reinstall the grub then? (it should be on sda1 at the moment, but i think "i" selected the default /dev/sda during the grub installation when i had made all the partitions) - like there was a picture like this:
http://www.linuxbsdos.com/wp-content/up ... 00x470.png
so i just clicked next without changing anything... (and i cant remember what did it have on there - probably just /dev/sda ?)

*edit
or if it just needs the /root partition, not the /boot, then the choice might be a little easier...

Re: Windows installation / dual boot

Posted: Sat Nov 07, 2015 9:56 am
by srs5694
One more piece of advice: Pay attention to your boot mode (BIOS/CSM/legacy vs. EFI/UEFI). Install Windows in the same boot mode that Ubuntu uses. This may or may not be easy, depending on how you've configured your firmware and whether you're using the optimum partition table type for your boot mode. (Windows ties the two together -- MBR to BIOS and GPT to EFI. Mint is more flexible.) I recommend you check your partition table type with parted:

Code: Select all

$ sudo parted -l | grep Table
Partition Table: gpt
Partition Table: gpt
Partition Table: msdos
In this example, the first two disks use GPT but the third uses MBR (which parted reports as "msdos").

With this information, check your Linux boot mode by looking for a directory called /sys/firmware/efi. If it's present, you've booted in EFI mode; if it's absent, you've almost certainly booted in BIOS mode.

Combining the two, you'll know whether you should install Windows in BIOS mode or in EFI mode. (Or if you're using GPT with BIOS-mode booting, that you should deal with that problem at some point.) Then the question becomes how to boot the Windows installer in the right mode. It will either boot correctly automatically (or by chance) or you'll need to select the right boot mode by using the computer's built-in boot manager -- when you hit a function key to get a list of boot devices, you'll see two entries for the Windows installation medium, one with the string "UEFI" and one without it. Boot the "UEFI" entry to use EFI mode and the other one to use BIOS mode. If Windows complains that it can't install because of the GPT (or MBR) partition table, that means that the installer has booted in the wrong mode for the partition table. Assuming your partition table type matches the desired target boot mode, you've booted the installer incorrectly and must try again.

Re: Windows installation / dual boot

Posted: Sat Nov 07, 2015 12:03 pm
by screenshot
ok i tried to install xp on the unallocated space now(and first had to incorporate the sata drivers...), but it gives this error:
To install Windows on the partition you selected setup must write some startup files to the following disk:
xxxxx MB Disk 0 at Id 0 on bus 0 on iastor4 [MBR]
(not atapi?)
http://ubuntuforums.org/showthread.php?p=6230599

so what do i do now? :roll:

my logic tells me that i should now format the 500MB boot partition to ntfs, so windows could write on it, but dunno what does it contain and would it be possible to restore it later(to reinstall grub and stuff on it...)

Re: Windows installation / dual boot

Posted: Sun Nov 08, 2015 8:39 am
by gold_finger
@screenshot,

Please don't post questions under someone else's thread.
  1. It takes attention away from the original poster's question.
  2. People are less likely to see and/or respond to your question when added to another person's thread.
  3. It generally turns a thread into a confusing, jumbled mess with various people trying to respond to two separate issues in one place.
I'll give you a quick, generalized answer right now; but if you need further help please start a new thread of your own instead of posting further here.

If I understand correctly, you just installed LMDE and now want to add Windows XP. I believe that Win XP needs to be the first partition on the drive, so trying to install elsewhere will fail. (Someone can correct me if I'm wrong about that.) Since all is brand new, your best bet would be to wipe out the drive and start over. Boot from LMDE DVD/USB and use GParted to delete all partitions on drive. Then make:
  • Partition 1 -- NTFS for Windows and make it whatever size you want that to be.
  • Partition 2 -- Ext4; size=20-25GB (to be used as Root partition during Mint install)
  • Partition 3 -- Ext4; size = rest of space, less amount for Swap (to be Home partition during install)
  • Partition 4 -- linux-swap; size => amount of RAM in computer (to be Swap partition during install)
  • NOTE: you don't need a separate partition for /boot, so don't bother making one.
When done, install Windows to the NTFS partition. Then install Mint to the others and point boot loader installation to /dev/sda. When done you should end up with boot menu giving choice to boot both OS's.

Re: Windows installation / dual boot

Posted: Sun Nov 08, 2015 8:14 pm
by screenshot
ok thanks, but there was already 2500 different threads about dual booting, so i thought that i could get some information from the latest and similar one. (and it's actually much easier with win7 than with xp?)

and this is also related to win7 perhaps, but could i make a similar installation with XP like this here? -> https://www.youtube.com/watch?v=xlTgaWs9BD0
i could probably point the grub installation to sdaX(not sda), but the boot recovery software only works in windows7+... so how could i add the reference pointer into the bootloader later...

and after all... when something emerges from a "confusing" thread, then it would actually be alot easier to make a fresh and new tutorial thread about something when all the different information in the thread(s) has already been processed

Re: Windows installation / dual boot

Posted: Thu Nov 12, 2015 7:39 am
by Pretty Pixel
Many thanks for everyone's support and guidance :)

Re: [SOLVED] Windows installation / dual boot

Posted: Tue Jun 30, 2020 9:41 pm
by screenshot
does this dual boot even need a separate /boot partition during the manual partitioning in linux at all if you have to install grub on windows (7) partition anyway?

https://linuxbsdos.com/2012/04/25/manua ... nt-debian/

plus how did it even end up @sda1... and was the swap partition supposed to be before all of the other partitions or after them?
and where should i point the grub stuff? on /sda, /sda1 or the linux /root partition itself, so that it would actually be safe there, even when windows (7) partition dissapears somewhere?