C#计算原始图像的扇区大小

C#计算原始图像的扇区大小,c#,C#,我知道扇区大小大多是512字节。但在格式化外部磁盘时,我可以使用exFAT文件系统示例选择其他扇区大小。我看到了512、1024、2048和4096字节 在使用FKT Imager创建U盘的原始磁盘映像后,我想使用C#检查磁盘映像的扇区大小。现在我读取了文件的内容,但不确定如何计算磁盘扇区大小 using System; using System.Collections.Generic; using System.IO; using System.Text; namespace Extract

我知道扇区大小大多是512字节。但在格式化外部磁盘时,我可以使用exFAT文件系统示例选择其他扇区大小。我看到了512、1024、2048和4096字节

在使用FKT Imager创建U盘的原始磁盘映像后,我想使用C#检查磁盘映像的扇区大小。现在我读取了文件的内容,但不确定如何计算磁盘扇区大小

using System;
using System.Collections.Generic;
using System.IO;
using System.Text;

namespace ExtractMultimediaFromMirrorFile.ImageFileProcessing
{
    class Process01ImgStat
    {
        public void processStart()
        {
            FileStream stream = new FileStream("C:\\Users\\user\\image_files\\usb_guid_exfat.001", FileMode.Open, FileAccess.Read);
            byte[] block = new byte[16];
            while (stream.Read(block, 0, 16) > 0)
            {  //as long as this does not return 0, the data in the file hasn't been completely read          
               //Print/do anything you want with [block], your 16 bytes data are there
            }
        }
    }
}

您可能正在寻找的价值是