Volume Type

Roger Roger 4,951 Reputation points
2023-05-20T13:55:49.85+00:00
  1. I have a Windows 2019 VM in Azure. How can i know from OS what type of caching is set on the Volume from the command prompt. i.e ReadOnly/None/ReadWrite.
  2. While creating volume i have given allocating unit size as 64K. in the below syntax Bytes per cluster:65536 does it mean 64k

C:\windows\system32>fsutil fsinfo ntfsInfo g:

Bytes Per Cluster : 65536

  1. While initilizing Disk i have selected partition style as GPT. How can i check this style type from command prompt.
Windows Server 2019
Windows Server 2019
A Microsoft server operating system that supports enterprise-level management updated to data storage.
3,454 questions
Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
7,119 questions
Azure Disk Storage
Azure Disk Storage
A high-performance, durable block storage designed to be used with Azure Virtual Machines and Azure VMware Solution.
572 questions
{count} votes

Accepted answer
  1. Prrudram-MSFT 21,966 Reputation points
    2023-05-20T19:12:01.2966667+00:00

    Hello @Roger Roger

    To check the type of caching that is set on a volume in Windows 2019 VM in Azure, you can use the following command in the command prompt:

    fsutil behavior query disabledeletenotify <drive letter>
    

    This command will display the current setting for the NTFS disable delete notification feature, which is used to enable or disable write caching on the volume. If the value is 0, write caching is enabled, and if the value is 1, write caching is disabled.

    Regarding the allocation unit size, the value of 65536 that you see in the output of the fsutil fsinfo ntfsInfo command means that the allocation unit size is 64 KB. This is because the allocation unit size is specified in bytes per cluster, and in this case, each cluster consists of 64 KB.

    To check the partition style of a disk from the command prompt, you can use the following command:

    diskpart
    list disk
    

    If the drive uses GPT, you’ll see an asterisk character (*) under the “Gpt” column. If you don’t see the asterisk character (*), the drive is using the MBR scheme.
    Example:User's image

    Please "Accept Answer" and upvote if the above information is helpful for the benefit of the community.

    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. Sedat SALMAN 13,080 Reputation points
    2023-05-20T15:01:20.49+00:00

    if you want to check Azure cache settings, you can verify these settings via the Azure portal or Azure CLI

    az disk show --name MyDisk --resource-group MyResourceGroup --query '[caching]'
    

    To checking the Partition Style (MBR/GPT) from Command Prompt:

    You can use the diskpart utility to check if your disk is initialized as MBR or GPT.

    Here are the steps:

    • Open Command Prompt as Administrator.
    • Type diskpart and hit Enter.
    • At the DISKPART> prompt, type list disk and hit Enter. This will give you a list of all the disks on your system.
    • Identify the disk you want to check (based on size, status, etc.) and note the disk number.
    • Type select disk X (replace X with your disk number) and hit Enter.
    • Now type detail disk and hit Enter.

    Under the "Partition Style" field, you will see either "Master Boot Record (MBR)" or "GUID Partition Table (GPT)" indicating the disk's initialization style.

    0 comments No comments