{"id":78659,"date":"2026-05-24T19:00:53","date_gmt":"2026-05-24T19:00:53","guid":{"rendered":"http:\/\/bangla.sitestree.com\/?p=78659"},"modified":"2026-05-24T19:00:53","modified_gmt":"2026-05-24T19:00:53","slug":"gpt-in-powershell","status":"publish","type":"post","link":"http:\/\/bangla.sitestree.com\/?p=78659","title":{"rendered":"GPT in PowerShell"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Ref: AI Tool\/ChatGPT<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">GPT in Disk Management<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>GPT<\/strong> means <strong>GUID Partition Table<\/strong>.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">It is a modern disk partitioning system used to organize partitions on a hard drive, SSD, or virtual disk.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">In PowerShell disk management, you may see it here:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Get-Disk\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Example output:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Number  FriendlyName      PartitionStyle\n------  ------------      --------------\n0       Virtual Disk      GPT\n1       Virtual Disk      RAW\n<\/code><\/pre>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h1 class=\"wp-block-heading\">What GPT does<\/h1>\n\n\n\n<p class=\"wp-block-paragraph\">GPT tells the operating system:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>where partitions start and end<\/li>\n\n\n\n<li>how many partitions exist<\/li>\n\n\n\n<li>what type each partition is<\/li>\n\n\n\n<li>how the disk should be organized<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">Before a new disk can be used, it usually must be:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Initialized \u2192 Partitioned \u2192 Formatted\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">GPT is chosen during the <strong>Initialize<\/strong> stage.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h1 class=\"wp-block-heading\">GPT vs MBR<\/h1>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>Feature<\/th><th>GPT<\/th><th>MBR<\/th><\/tr><\/thead><tbody><tr><td>Meaning<\/td><td>GUID Partition Table<\/td><td>Master Boot Record<\/td><\/tr><tr><td>Age<\/td><td>Modern<\/td><td>Older<\/td><\/tr><tr><td>Max disk size<\/td><td>Very large disks<\/td><td>About 2 TB limit<\/td><\/tr><tr><td>Partition limit<\/td><td>Many partitions<\/td><td>Usually 4 primary partitions<\/td><\/tr><tr><td>Reliability<\/td><td>More reliable<\/td><td>More prone to corruption<\/td><\/tr><tr><td>Firmware<\/td><td>UEFI<\/td><td>Legacy BIOS<\/td><\/tr><tr><td>Recommended today<\/td><td>Yes<\/td><td>Only for old compatibility<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Your lab notes explain that <strong>MBR is older<\/strong>, has a <strong>2 TB disk size limit<\/strong>, and supports only a limited number of primary partitions, while <strong>GPT is modern, more reliable, and supports much larger disks<\/strong>.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h1 class=\"wp-block-heading\">What does RAW mean?<\/h1>\n\n\n\n<p class=\"wp-block-paragraph\">Before GPT is applied, a new disk may show:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>PartitionStyle: RAW\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">RAW means:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>The disk is not initialized yet.\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">So this command:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Get-Disk | Where PartitionStyle -eq \"RAW\" | Initialize-Disk -PartitionStyle GPT\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">means:<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p class=\"wp-block-paragraph\">Find uninitialized disks and initialize them using GPT.<\/p>\n<\/blockquote>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h1 class=\"wp-block-heading\">Important warning<\/h1>\n\n\n\n<p class=\"wp-block-paragraph\">Initializing, partitioning, or formatting the wrong disk can cause data loss.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Before running disk commands, always check:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Get-Disk\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Then identify the correct disk number.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Safer version:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Get-Disk | Where-Object PartitionStyle -eq \"RAW\"\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Then initialize only the correct disk:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Initialize-Disk -Number 1 -PartitionStyle GPT\n<\/code><\/pre>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h1 class=\"wp-block-heading\">Full GPT disk setup example<\/h1>\n\n\n\n<h2 class=\"wp-block-heading\">Step 1: Find RAW disk<\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code>Get-Disk | Where-Object PartitionStyle -eq \"RAW\"\n<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">Step 2: Initialize disk as GPT<\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code>Initialize-Disk -Number 1 -PartitionStyle GPT\n<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">Step 3: Create a new partition<\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code>New-Partition -DiskNumber 1 -UseMaximumSize -AssignDriveLetter\n<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">Step 4: Format the volume<\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code>Format-Volume -DriveLetter E -FileSystem NTFS -NewFileSystemLabel \"DataDisk\"\n<\/code><\/pre>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h1 class=\"wp-block-heading\">Simple classroom explanation<\/h1>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p class=\"wp-block-paragraph\">GPT is the modern way Windows organizes partitions on a disk. It replaces the older MBR system and is better for modern systems, larger disks, and UEFI-based computers.<\/p>\n<\/blockquote>\n\n\n\n<p class=\"wp-block-paragraph\">Student comment:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># GPT stands for GUID Partition Table.\n# It is the modern partition style used for initializing new disks.\n# It is preferred over MBR because it supports larger disks and more partitions.\n<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Ref: AI Tool\/ChatGPT GPT in Disk Management GPT means GUID Partition Table. It is a modern disk partitioning system used to organize partitions on a hard drive, SSD, or virtual disk. In PowerShell disk management, you may see it here: Example output: What GPT does GPT tells the operating system: Before a new disk can &hellip; <\/p>\n<p><a class=\"more-link btn\" href=\"http:\/\/bangla.sitestree.com\/?p=78659\">Continue reading<\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[1968],"tags":[],"class_list":["post-78659","post","type-post","status-publish","format-standard","hentry","category-operating-systems","item-wrap"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack-related-posts":[{"id":78661,"url":"http:\/\/bangla.sitestree.com\/?p=78661","url_meta":{"origin":78659,"position":0},"title":"Power Shell: explain: Get-Disk | Where PartitionStyle -eq &#8220;RAW&#8221; | Initialize-Disk -PartitionStyle GPT","author":"Sayed","date":"May 24, 2026","format":false,"excerpt":"This command finds uninitialized disks and initializes them using the GPT partition style: Get-Disk | Where PartitionStyle -eq \"RAW\" | Initialize-Disk -PartitionStyle GPT Step-by-step explanation 1. Get-Disk Get-Disk Lists disks connected to the system. It shows information such as: Number FriendlyName OperationalStatus Size PartitionStyle 2. Where PartitionStyle -eq \"RAW\" Where\u2026","rel":"","context":"In &quot;Power Shell&quot;","block_context":{"text":"Power Shell","link":"http:\/\/bangla.sitestree.com\/?cat=1981"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":78669,"url":"http:\/\/bangla.sitestree.com\/?p=78669","url_meta":{"origin":78659,"position":1},"title":"Command performs the full setup of a new RAW disk in one PowerShell pipeline:","author":"Sayed","date":"May 24, 2026","format":false,"excerpt":"explain: Get-Disk | Where PartitionStyle -eq \"RAW\" | Initialize-Disk -PartitionStyle GPT -PassThru | New-Partition -UseMaximumSize -AssignDriveLetter | Format-Volume -FileSystem NTFS -NewFileSystemLabel \"MYDATA\" This command performs the full setup of a new RAW disk in one PowerShell pipeline: Get-Disk | Where PartitionStyle -eq \"RAW\" | Initialize-Disk -PartitionStyle GPT -PassThru | New-Partition\u2026","rel":"","context":"In &quot;Power Shell&quot;","block_context":{"text":"Power Shell","link":"http:\/\/bangla.sitestree.com\/?cat=1981"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":78671,"url":"http:\/\/bangla.sitestree.com\/?p=78671","url_meta":{"origin":78659,"position":2},"title":"compare contrast these commands: Get-Disk | Format-Table -Auto Get-PhysicalDisk Get-Partition -DiskNumber 0 Get-Partition -DriveLetter D","author":"Sayed","date":"May 24, 2026","format":false,"excerpt":"These four commands are all disk\/partition viewing commands, but they look at different levels of storage. The disk-management lab explains that Get-Disk shows logical disks, Get-PhysicalDisk shows physical disk devices, and Get-Partition is used to view partition information for a disk. CommandMain PurposeLevelGet-Disk | Format-Table -AutoShows disks in a clean\u2026","rel":"","context":"In &quot;Power Shell&quot;","block_context":{"text":"Power Shell","link":"http:\/\/bangla.sitestree.com\/?cat=1981"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":75954,"url":"http:\/\/bangla.sitestree.com\/?p=75954","url_meta":{"origin":78659,"position":3},"title":"introduction to mac operating systems (Disk Operations, Management, and Maintenance)","author":"Sayed","date":"March 24, 2024","format":false,"excerpt":"https:\/\/youtu.be\/HAvj9mukRRU","rel":"","context":"In &quot;From Youtube Channel&quot;","block_context":{"text":"From Youtube Channel","link":"http:\/\/bangla.sitestree.com\/?cat=1952"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/img.youtube.com\/vi\/HAvj9mukRRU\/0.jpg?resize=350%2C200","width":350,"height":200},"classes":[]},{"id":75337,"url":"http:\/\/bangla.sitestree.com\/?p=75337","url_meta":{"origin":78659,"position":4},"title":"How to add a new disk to AWS instance and format lightsail disk","author":"Sayed","date":"November 27, 2022","format":false,"excerpt":"https:\/\/youtu.be\/T8RqjC_iQqM","rel":"","context":"In &quot;From Youtube Channel&quot;","block_context":{"text":"From Youtube Channel","link":"http:\/\/bangla.sitestree.com\/?cat=1952"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/img.youtube.com\/vi\/T8RqjC_iQqM\/0.jpg?resize=350%2C200","width":350,"height":200},"classes":[]},{"id":78337,"url":"http:\/\/bangla.sitestree.com\/?p=78337","url_meta":{"origin":78659,"position":5},"title":"Check Your Linux Knowledge","author":"Sayed","date":"July 27, 2025","format":false,"excerpt":"Linux Installation: Pre Assessment What do you need handy before installing Ubuntu in a Virtual Box 0 points Check all that apply. \u00a0Oracle Virtualbox Installed \u00a0ISO Image of the Linux \u00a0ISO Image in USB Drive What is usually the best place to download\/take a software to install? * 1 point\u2026","rel":"","context":"In &quot;Anything Linux&quot;","block_context":{"text":"Anything Linux","link":"http:\/\/bangla.sitestree.com\/?cat=1976"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/bangla.sitestree.com\/wp-content\/uploads\/2025\/07\/image-8.png?resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/bangla.sitestree.com\/wp-content\/uploads\/2025\/07\/image-8.png?resize=350%2C200 1x, https:\/\/i0.wp.com\/bangla.sitestree.com\/wp-content\/uploads\/2025\/07\/image-8.png?resize=525%2C300 1.5x"},"classes":[]}],"_links":{"self":[{"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=\/wp\/v2\/posts\/78659","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=78659"}],"version-history":[{"count":1,"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=\/wp\/v2\/posts\/78659\/revisions"}],"predecessor-version":[{"id":78660,"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=\/wp\/v2\/posts\/78659\/revisions\/78660"}],"wp:attachment":[{"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=78659"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=78659"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=78659"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}