Remember to maintain security and privacy. Do not share sensitive information. Procedimento.com.br may make mistakes. Verify important information. Termo de Responsabilidade

Creating EFI Partition for Windows: Examples in PowerShell and Batch Scripts

Creating EFI Partition for Windows: Examples in PowerShell and Batch Scripts

Introduction

In this article, we will explore the process of creating an EFI (Extensible Firmware Interface) partition for Windows operating systems. The EFI partition plays a crucial role in the boot process, as it contains the necessary files for the system to start up. Understanding how to create and manage the EFI partition is essential for system administrators and engineers working with Windows.

Examples:

  1. Creating an EFI Partition using PowerShell:

    • Open PowerShell with administrative privileges.
    • Run the following command to list all the disks:
      Get-Disk
    • Identify the disk number on which you want to create the EFI partition.
    • Run the following command to select the disk:
      $disk = Get-Disk -Number <disk number>
    • Create a new partition using the selected disk:
      New-Partition -DiskNumber $disk.Number -UseMaximumSize -IsActive -AssignDriveLetter
    • Format the partition as FAT32:
      Format-Volume -Partition $disk.Partitions[0].PartitionNumber -FileSystem FAT32 -NewFileSystemLabel "EFI"
  2. Creating an EFI Partition using Batch Script:

    • Open Command Prompt with administrative privileges.
    • Run the following command to list all the disks:
      diskpart
      list disk
    • Identify the disk number on which you want to create the EFI partition.
    • Run the following commands to select the disk, create a new partition, and format it as FAT32:
      select disk <disk number>
      clean
      convert gpt
      create partition efi size=100
      format quick fs=fat32 label="EFI"
      assign letter=S

To share Download PDF

Gostou do artigo? Deixe sua avaliação!
Sua opinião é muito importante para nós. Clique em um dos botões abaixo para nos dizer o que achou deste conteúdo.