LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 05-22-2020, 12:35 AM   #1
algray
LQ Newbie
 
Registered: Apr 2018
Posts: 19

Rep: Reputation: Disabled
Building a linux first partition table from scratch that windows 10 will play nicely inside of.


This thread is a follow-on to one which recently resolved.

https://www.linuxquestions.org/quest...es-4175675561/

Now that I have resolved the competing partition tables. I need to set-up a new partition table on a computer which came with windows installed (see that thread for more details).

I am under the impression that Windows will auto-recognize my motherboard and auto-load the install key. So i should be able to put it into any partition (not like the install Windows first guidance I'd been hearing in the past).

My research to date tells me that I will need the following.
- a system EFI partition (FAT32) - 1Gb is plenty but in my non space constrained environment, adding extra doesn't hurt
- a boot partition ext4 works - 10Gb is more than any forums say I would need but systems are getting bigger over time and drive space is not a constraint on this device.
- I plan to have 4 partitions and 1 swap drive, placed between 2 & 3, for accessibility (though that consideration seems to be no longer relevant with SSDs).
- windows will be installed in one of those partitions. Hopefully it will recognize my hardware and approve the key automatically.

Does this make sense?
Are there any other general guidelines to follow in this case?

I will try the windows install on a partition before making a new partition table.
 
Old 05-22-2020, 04:51 AM   #2
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 18,904

Rep: Reputation: 3243Reputation: 3243Reputation: 3243Reputation: 3243Reputation: 3243Reputation: 3243Reputation: 3243Reputation: 3243Reputation: 3243Reputation: 3243Reputation: 3243
STOP.

If you can boot Win10, create a system image on a USB. Then you can be assured that you can wipe the disk and re-install, because it is *your* Win10 recovery image.
After that, as I think I said, clean the disk, create a gpt partition and do the recovery - no need to create partitions. You seem determined to make thinks more complex than needed - that leads to more confusion and later problems.
 
Old 05-22-2020, 10:20 AM   #3
sxy
Member
 
Registered: Aug 2019
Posts: 41

Rep: Reputation: Disabled
Hi,

I think 200M for the EFI partition and 1G for /boot should be more than sufficient in most cases. Of course, as you said, it won't hurt to have large EFI and /boot partitions since you have enough space on your disk.

If you're planning to reinstall Windows, I'd strongly suggest you download the iso image with the media creation tool in Windows environment, since current Windows iso images downloaded in Linux may have files larger than 4G that FAT formatted drives cannot handle, and that you'll need tools like wimlib to split them.

It's better to install Windows first, or chances are you'll need to reconfigure the bootloader with a live cd/usb.
 
Old 05-22-2020, 12:04 PM   #4
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (current), FreeBSD, Win10, It varies
Posts: 9,951

Rep: Reputation: 2146Reputation: 2146Reputation: 2146Reputation: 2146Reputation: 2146Reputation: 2146Reputation: 2146Reputation: 2146Reputation: 2146Reputation: 2146Reputation: 2146
If you have EFI and some other systems installed before windows 10 it will NOT install due to the EFI already being in use by another. You’re definitely going to have to delete anything in Boot and EFI first if you’re going to even try to install it on another partition then the first one.

Of course following all of the other advice too. Having the boot install usb stick and nothing else on the drive. Then just let windows partition it on installation.

Last edited by BW-userx; 05-22-2020 at 12:22 PM.
 
Old 05-22-2020, 07:07 PM   #5
jefro
Moderator
 
Registered: Mar 2008
Posts: 19,963

Rep: Reputation: 3131Reputation: 3131Reputation: 3131Reputation: 3131Reputation: 3131Reputation: 3131Reputation: 3131Reputation: 3131Reputation: 3131Reputation: 3131Reputation: 3131
"Windows will auto-recognize my motherboard and auto-load the install key" This generally is only if your key is in Bios. Some Lenovos do that. I'd think magic jellybean would still be useful.

There is usually one or more hidden partitions that might be useful to not only copy but to know the exact point on the drive.


"NOT install due to the EFI already being in use" I don't get that just yet. Do you mean keys?

I still don't get the testdisk deal after you created partitions.

Not sure why one doesn't let the OS's create and format partitions.

Last edited by jefro; 05-22-2020 at 07:10 PM.
 
Old 05-22-2020, 07:50 PM   #6
algray
LQ Newbie
 
Registered: Apr 2018
Posts: 19

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by syg00 View Post
STOP.
If you can boot Win10, create a system image on a USB. Then you can be assured that you can wipe the disk and re-install, because it is *your* Win10 recovery image.
I was not able to boot Win10. As I looked deeper i realized that the Windows10 partition was had been partially overwritten by my earlier dd command.

Quote:
I think 200M for the EFI partition and 1G for /boot should be more than sufficient in most cases. Of course, as you said, it won't hurt to have large EFI and /boot partitions since you have enough space on your disk.
I have had /boot fill up on me in the past. Maybe that was an easily correctable issue and I just didn't have the knowledge at the time. In any case, I've given myself extra room this time.

-----------------
So here's what happened
-----------------

Windows wouldn't install onto what testdisk had written (an MBR). But I was able to arrive at a EFI system partition that satisfied Windows using these instructions

I put:
- BIOS BOOT in sectors 34-2048 (512B)
- boot/efi in sectors 4096-1004096 (488MiB), *I know there is a gap, but Im paranoid now*

*For anyone following this later, make sure to back-up and BE CAREFUL, as the fellow says, it's easy to screw up!

In my case, I had an existing EFI partition and linux distro located in the middle of the drive (which I was using). So while gdisk allowed me to write the partitions, it would not allow the partprobe command and I had to skip steps 4 & 5.
By the time I got to step 8, the system was very unhappy and insisting I reboot. On reboot, Windows was willing to install into my selected partition.

I installed windows using the tool they provide on their website. It did not prompt me for a key or give me any other requirements to verify. So that worked.

I placed windows in the last free space of the drive. With that now working I cleared out the last of the cruft from my old filesystem (the original EFI and last linux distro) and was successfully able to install and boot Mint in the first free space after /boot. I then installed a swap drive after mint so I have space for 2 to 3 more partitions.

And I have a working system again

Assuming it holds up well, I will do something similar next time I get a new computer so I'm not having to work around the base windows installation all the time.

Thanks everyone for the feedback!
 
  


Reply

Tags
gpt, mbr, partioning, windows 10


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Does the Canopus ADVC110 play nicely with Linux? nobuntu Linux - Hardware 2 08-31-2012 10:45 PM
How to get RHEL and Windows Server 2008 to play nicely. Diagenesis Linux - Newbie 2 12-13-2009 11:25 AM
Slack 10: S-ATA = "No partition table or unknown signature on partition table"? dissolved soul Slackware - Installation 11 08-05-2004 02:12 PM
ali aladdin v agp stinks :scratch: :scratch: :scratch: Mr Marmmalade Linux - Hardware 1 07-08-2003 05:11 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 06:03 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration