windows磁盘(disk)分区(partition)卷(volume)

卷与分区的区别:类型、大小、创建与可靠性
卷和分区是数据存储的不同单位,卷如SimpleVolume、MirroredVolume等提供不同级别的容错,而分区包括主分区、逻辑分区和扩展分区。最大体积可以跨越多个磁盘,而分区受限于单个硬盘空间。动态磁盘上的卷比基本磁盘上的分区更灵活,支持更多数量和类型。在可靠性方面,卷由于其故障容错能力通常更安全。
部署运行你感兴趣的模型镜像

一、diskpart产看相关信息,初步感性认知

(1)使用管理员权限打开 cmd,输入 diskpart命令

 

 

 

 

二、卷(volume)和分区(partition)的不同

1、A volume is a single accessible storage area with a single file system. A partition is a logical division of a hard disk. Both are the units of data storage。

2、Types

There are five volume types: simple volume, mirrored volume, striped volume spanned volume, and RAID-5 volume, while there are three partition types: primary partition, logical partition, and extended partition.

Volume Types

Simple Volume: it is a physical disk that functions like a physically independent unit.

Mirrored Volume: it uses two copies on separate physical disks to duplicate data. When new data is written to the mirrored volume, it will be written to the two copies. If one of the physical disks fails, the data on the disk becomes unavailable, but mirrored volume is a fault-tolerant volume, which means the data on the other physical disk is still usable.

Striped Volume: it is created by combing areas of free space on two or more disks into one logical volume. This volume type does not provide fault tolerance, which means the entire volume will fail when one of the disks containing a striped volume fails.

Spanned Volume: it combines areas of unallocated space from multiple disks into one logical volume. When new data is written into a spanned volume, data will first fill up the free space on the first disk, the fill up that on the next disk, and so on.

RAID-5 Volume: it is a volume with data and parity striped intermittently across three or more physical disks. As a fault-tolerant volume, it allows you to recreate the data that was on the failed portion from the remaining data and parity when a portion of a physical disk doesn’t work.

Partition Types

Primary Partition: it is a hard disk partition that is identified by a drive letter and is used for storing Windows operating systems and other data. The C drive is often a primary partition.

Logical Partition: it is a contiguous area on the hard disk and it consists of one or more logical partitions.

Extended Partition: it is a partition that consists of additional logical partitions. Differing from a primary partition, you don’t need to assign a drive letter to it.

Max Size

What is the max size of a partition and a volume?

As we know, contiguous space on the same disk can be divided into one area, and therefore the max size of a partition is the hard drive space.

In contrast, the max size of a volume can be larger – when it is not a simple volume. The other four types of volume can be created on two or more disks and this combines these disks into a large volume, so that’s why the max size of a volume is larger than that of a partition.

Creation

The biggest difference between a volume and partition is the type of disk used. A volume is created on a dynamic disk, while a partition is created on a basic disk.

Note: When you create a partition via Disk Management, you will find that the New Simple Volume option is offered.

Basic disks are the most common type of partition used in Windows OS. They use a partition table to keep track of all partitions on them and support two styles of partitions – master boot record (MBR) and GUID partition table (GPT).

Dynamic disks also support MBR and GPT. However, they use a hidden logical disk manager (LDM) or virtual disk service (VDS) to track information about the volumes on them and this decides that dynamic disks are more flexible than basic disks.

To learn more about the differences between basic disks and dynamic disks, please read the comparison.

Max Number on Disk

Another difference is the max number of volume and partition on the hard disk.

Regardless of whether dynamic disks on a system use the MBR or GPT partition style, you can create up to 2,000 dynamic volumes on them.

However, the max number of partitions on a basic disk is determined by the style of partitions that the disk uses. When the basic disk uses the MBR partition style, you can create four primary partitions or three primary partitions and one extended partition that can consist of many logical partitions. When the basic disk uses the GPT partition style, you can create up to 128 primary partitions.

MBR vs. GPT Guide: What's The Difference and Which One Is Better

MBR or GPT, which one is better, and what's their exact differences? In this post, we will explain these 2 aspects in detail.

READ MORE

Reliability and Security

Compared with partitions, volumes feature higher reliability and security because data on volumes can be shared with two or more dynamic disks.

Now, what’s your opinion of partition vs volume? Regardless of whether you prefer volume or partition, go on reading. The next part shows you how to create a volume or partition on a disk. 

 

您可能感兴趣的与本文相关的镜像

Dify

Dify

AI应用
Agent编排

Dify 是一款开源的大语言模型(LLM)应用开发平台,它结合了 后端即服务(Backend as a Service) 和LLMOps 的理念,让开发者能快速、高效地构建和部署生产级的生成式AI应用。 它提供了包含模型兼容支持、Prompt 编排界面、RAG 引擎、Agent 框架、工作流编排等核心技术栈,并且提供了易用的界面和API,让技术和非技术人员都能参与到AI应用的开发过程中

Windows操作系统中进行磁盘分区是一项常见的任务,尤其对于希望优化存储管理和数据组织的用户来说尤为重要。Windows系统提供了内置的磁盘管理工具,使用户能够轻松地进行磁盘分区操作,而无需依赖第三方软件。以下是详细的步骤指南: ### 使用Windows磁盘管理工具进行磁盘分区 1. **打开磁盘管理工具** - 点击“开始”菜单,选择“运行”(或者直接按 `Win + R` 快捷键)。 - 输入 `diskmgmt.msc`,然后按回车键,即可打开磁盘管理工具。 2. **检查磁盘状态** - 在磁盘管理界面中,可以查看所有已连接的磁盘及其分区情况。注意观察未分配的空间,或者是否有可以压缩的以腾出空间用于新分区。 3. **压缩现有以腾出空间** - 如果硬盘只有一个分区(例如C盘),可以通过压缩该来腾出未分配的空间。 - 右键点击需要压缩的,选择“压缩”。 - 输入要压缩的空间大小(以MB为单位),然后点击“压缩”。 4. **创建新分区** - 在磁盘管理界面中找到未分配的空间。 - 右键点击未分配的空间,选择“新建简单”。 - 按照“新建简单向导”的提示进行操作: - 输入简单的大小(以MB为单位)。 - 选择驱动器号或挂载点。 - 选择文件系统(通常选择NTFS)、分配标以及是否执行快速格式化。 - 完成设置后,点击“完成”以创建新分区。 5. **格式化分区(如需要)** - 如果在创建分区时未选择格式化,或者需要更改文件系统,可以右键点击新创建的分区,选择“格式化”。 - 选择适当的文件系统(如NTFS、FAT32等),并确保勾选“快速格式化”以加快操作速度。 6. **验证分区结果** - 完成分区和格式化操作后,可以在“我的电脑”中查看新分区是否显示,并尝试访问以确认其可用性。 ### 注意事项 - 在进行磁盘分区操作之前,建议备份重要数据,以防止意外数据丢失[^2]。 - 确保操作过程中电源稳定,避免因断电导致磁盘损坏或数据丢失。 - 对于系统分区(如C盘),不建议随意调整大小或删除,以免影响操作系统正常运行。 ### 示例代码:使用PowerShell创建分区 除了图形化界面,还可以使用PowerShell进行磁盘分区操作。以下是一个简单的示例脚本: ```powershell # 查看所有磁盘 Get-Disk # 选择磁盘(假设磁盘编号为1) $disk = Get-Disk -Number 1 # 初始化磁盘(如果未初始化) Initialize-Disk -Disk $disk -PartitionStyle GPT # 创建新分区并格式化 New-Partition -DiskNumber 1 -UseMaximumSize -DriveLetter "D" | Format-Volume -FileSystem NTFS -NewFileSystemLabel "Data" ``` 通过上述步骤,用户可以在Windows系统下轻松完成磁盘分区操作,从而更好地管理存储空间。
评论 1
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值