DISKPART - How to Partition GPT disk  

Page 6 of 6 FirstFirst ... 456
  1. Matthew Wai's Avatar
    Posts : 6,430
    Windows 10 Home 20H2
       #50

    @Kari, do you know how to use DiskPart to create a swap partition? I know how to create it via GParted, but I wonder whether it is possible to do so via DiskPart on Windows.
      My Computer

  2. cereberus's Avatar
    Posts : 12,618
    Windows10
       #51

    What do you mean - swap partition?

    There is no such thing. The swapfile.sys file normally resides on C drive and is quite small. It can get moved to any primary partition but I would not bother. Also a lot of crap web advice says to move this (and pagefile.sys) to a mechanical HDD rather than an SSD to save wear and tear on SSD. Modern SSDs are very write resiliant, and moving such files to HDDs just reduce performance (and shorten life of HDD).

    However, if you have say an older "sacrificial" SSD, I suppose there is some merit inmoving them, but frankly I would not bother as I always have the C drive SSD as the fastest SSD, and hence best performance.

    PS - as an aside, it is not really necessary to specifically target Kari for anwers to general questions like this, or else he will get bombarded with notifications on questions others can also answer.

    If you really need a personal interaction, pm him instead. By the same token, Kari (or any regular) does not want to be bombarded with PMs for questions that could be answered by others in open forum.
      My Computer

  3. Matthew Wai's Avatar
    Posts : 6,430
    Windows 10 Home 20H2
       #52

    cereberus said:
    What do you mean - swap partition?

    There is no such thing.
    There is such a thing on GParted. DiskPart does not seem to support such a thing.
    Swap Space in Operating System - GeeksforGeeks

    I will go to a Linux forum.
      My Computer

  4. SoFine409's Avatar
    Posts : 1,435
    Win10 Pro
       #53

    Matthew Wai said:
    There is such a thing on GParted. DiskPart does not seem to support such a thing.
    Swap Space in Operating System - GeeksforGeeks

    I will go to a Linux forum.
    As you probably know Linux installer will create a swap partition. If it doesnít you can always create one using GParted. You will then need make Linux aware of it so it can use it. There are an number of how to tutorials around for doing this. I remember I somehow installed Linux without a swap partition and had to create one. Itís not a big deal to do it.
    Last edited by SoFine409; 23 Aug 2021 at 10:32.
      My Computers

  5. Matthew Wai's Avatar
    Posts : 6,430
    Windows 10 Home 20H2
       #54

    A swap space can even be shared between Windows and Linux.

    dual boot - Sharing swap space between Windows and Ubuntu - Ask Ubuntu
      My Computer

  6. ICIT2LOL's Avatar
    Posts : 8,393
    Windows 10 Pro on all on various machines version 21H1
       #55

    I have a drive I have just reinstalled with the latest Windows 10 updates and version on it and it is an MBR drive now from what I can see have to wipe the drive to convert it to GPT .

    So if I start with a brand new drive how do I make it a GPT disk without having to install windows all over again to get to diskpart?? Can it be done through the BIOS for example??
      My Computer

  7. Matthew Wai's Avatar
    Posts : 6,430
    Windows 10 Home 20H2
       #56

    ICIT2LOL said:
    it is an MBR drive now from what I can see have to wipe the drive to convert it to GPT .
    Convert Windows 10 from Legacy BIOS to UEFI without Data Loss

    This tutorial will show you how to convert a Legacy BIOS Windows 10 installation using a MBR disk to a UEFI Windows 10 installation using a GPT disk without data loss.
      My Computer



  8. Posts : 5
    Win10 Pro x64
       #57

    Unclear on Script 2 + thoughts on EFI System partition size


    Thank you Kari for your excellent tutorial.

    But, I'm unclear on Script Two, first line

    Code:
    rem DISKPART script for single disk dual boot
    - is this still for a dual boot disk prep? If it is, I don't understand how, sorry
    ----------------------------------------------------------------------
    EFI System partition size :

    runwithascript said : (28 Dec 2018)

    I had read recently that the recommended size for an EFI partition is actually 577MB

    I too have seen the 577Mb figure, on a Linux forum somewhere, to allow for Linux functions that I cannot correctly name here. For me, Linux remains a 'maybe one day' adventure.

    Additionally, https://docs.microsoft.com/en-us/win...ocker-overview, 10/01/2021 includes
    The hard disk must be partitioned with at least two drives:

    The operating system drive (or boot drive) contains the operating system and its support files. It must be formatted with the NTFS file system.
    The system drive contains the files that are needed to load Windows after the firmware has prepared the system hardware. BitLocker is not enabled on this drive. For BitLocker to work, the system drive must not be encrypted, must differ from the operating system drive, and must be formatted with the FAT32 file system on computers that use UEFI-based firmware or with the NTFS file system on computers that use BIOS firmware. We recommend that system drive be approximately 350 MB in size. After BitLocker is turned on it should have approximately 250 MB of free space.
    If I am reading MS-speak correctly with 'system drive' meaning EFI System partition, perhaps the 100Mb size in your tutorial should be changed (or at least users should be made aware)?
      My Computer

  9. Paul Black's Avatar
    Posts : 15,100
    Win 10 Pro 64-bit v1909 - Build 18363 Custom ISO Install
       #58

    Hello @thehod,

    thehod said:
    But, I'm unclear on Script Two, first line . . .

    Code:
    rem DISKPART script for single disk dual boot.
    - is this still for a dual boot disk prep? If it is, I don't understand how, sorry.

    I think this means that it is a Dual-Boot from a Single Disk [ Separate Partition on the SAME Disk ], as opposed to having either ANOTHER HDD internally or externally.

    I hope this helps.
      My Computer


  10. Posts : 5
    Win10 Pro x64
       #59

    Thanks Paul Black
    Script Two: An alternative DISKPART script to partition a HDD / SSD for single OS assigning all available space to system (Windows) partition:
    Script Two creates one OS partition, using all space other than EFI/MSR/WinRE. I think your reply would be created using
    Script One: DISKPART script to partition a HDD / SSD for dual boot, or for separate Windows and Data partitions:
    so, it seems to me that 'dual boot' be removed from Script Two, first line. Not being pedantic, just trying to avoid confusion. Or am I missing something?

    Also, any advice on EFI size please?

    (I realise that my post appearance does not yet match the clarity of other posts regarding the pasting of Quotes, Member name green arrows etc. I've checked How to Change Post Editor to Source or WYSIWYG Mode at TenForums.com but haven't yet found a guide to the interface buttons, pasting quote within a quote, etc). Thanks
      My Computer


 
Page 6 of 6 FirstFirst ... 456

Tutorial Categories

DISKPART - How to Partition GPT disk Tutorial Index Network & Sharing Instalation and Upgrade Browsers and Email General Tips Gaming Customization Apps and Features Virtualization BSOD System Security User Accounts Hardware and Drivers Updates and Activation Backup and Restore Performance and Maintenance Mixed Reality Phone


  Related Discussions
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 11:31.
Find Us




Windows 10 Forums