未分配的磁盘或驱动器(Unallocated disk or drive)是尚未分配任何驱动器号的磁盘或驱动器。要在全新的硬盘驱动器上安装操作系统,您首先需要对其进行分区,因为您无法在未分配的硬盘驱动器上写入数据。
有时,您现有的硬盘驱动器会指出其上有未分配的空间。这意味着硬盘驱动器上的空间不属于任何分区,因此无法写入数据。要解决此问题,您必须创建一个新分区或扩展当前分区。但在此之前,请右键单击Unallocated磁盘并查看是否可以更改 Drive Leter 和 Paths(Change Drive Leter and Paths)。
在零星的情况下,整个正常工作的硬盘驱动器变得未分配!发生这种情况时,您存储在其上的所有文件和文件夹都将无法访问。在本文中,您将看到一些原因以及如何解决它。
为什么驱动器变为未分配?
不同的原因可能会导致您的硬盘(Hard Drive)未分配。下面列出了一些-
- 文件系统错误,或文件系统损坏或损坏
- 内部错误。
- 硬盘驱动器中的硬件故障。
- 过时的硬盘驱动器。
- 硬盘驱动器中存在病毒或恶意软件。
- 硬盘驱动器上次不正确弹出。
- 由于创建或修改不当的分区
- 外部硬盘驱动器已物理损坏。
- 由于错误的操作。
许多其他原因可能导致此错误;上面列出的那些是未分配硬盘驱动器的最常见原因。
修复未分配的硬盘(Fix Unallocated Hard Drive)而不丢失数据
您可以通过三种方式修复此错误。尽管如此,如果您尝试使用良好的数据恢复工具从驱动器中恢复数据,那将是最好的。如果您无法从硬盘恢复数据,请使用以下方法修复驱动器。
- 使用CHKDSK(CHKDSK)命令修复它。
- 更新您的硬盘驱动程序。
- 使用命令提示符(Command Prompt)创建一个新卷。
1] 使用 CHKDSK 命令修复它
您可以通过命令提示符运行(Command Prompt)Chkdsk命令来使用它。以管理员(administrator)身份打开命令提示符(Command Prompt),然后输入以下命令并按Enter:
chkdsk x: /f/r/x
注意(Note):在您的命令提示符(Command Prompt)中,确保将x替换为未分配硬盘驱动器的正确驱动器号。
上面的命令代表:
- x = 未分配的硬盘驱动器(检查驱动器号)
- /f = 修复驱动器错误。
- /r = 恢复坏扇区中的数据
- /x = 卸载驱动器以启动进程
2]更新您的硬盘驱动器
您可以通过更新硬盘驱动器的驱动程序(updating your hard drive’s driver)来解决此错误。打开您的设备管理器(Device Manager),右键单击磁盘驱动器部分下的未(Disk drive )分配硬盘驱动(unallocated hard drive)器。
从右键单击菜单中,选择属性(Properties)>驱动程序(Driver)>更新(Update)。在这里,按照屏幕上的所有说明进行操作,并在更新后重新启动(Restart)您的 PC。
3]使用DISKPART工具创建(Create)一个新卷
您还可以从 PC 的命令提示符创建新卷。(New Volume)打开命令提示符(Command Prompt)并输入diskpart,然后按 Enter(Enter)。输入列表卷(list volume),然后按Enter键。
使用以下命令选择未分配的驱动程序字母:选择卷(unallocated driver’s letter)x(select volume x)(将x替换为未分配的驱动程序字母)。
接下来,输入以下内容;删除卷(delete volume)并列出卷(list volume)。此时,Diskpart应该创建一个新卷。
如果Diskpart无法创建新的卷密钥,您将不得不手动进行。请仔细遵循以下说明:
- (Input)在命令提示符中一个接一个地(Command Prompt one)输入以下命令,然后按回车键(Enter)。
选择卷 x
(将 x 替换为您未分配的驱动程序字母)
删除卷
删除卷覆盖
- 从Windows 开始菜单(Windows Start menu)中搜索磁盘管理(Disk Management),然后从给出的结果中选择创建和格式化硬盘分区(Create and format hard disk partitions)。
- 右键单击未分配的硬盘(unallocated hard drive)并选择New Simple Volume > Next。
- 以MB为单位设置新的Simple Volume 大小(Simple Volume size),然后设置Next。
- 选择使用以下设置格式化此卷(Format this volume with the following settings)
- 将文件系统(File System)设置为NTFS,分配单元大小(Allocation unit size)应设置为默认值(default),然后命名卷标(Volume label)。
- 标记Perform a quick format复选框,然后单击Next > Finish。
确保您仔细按照设置创建新卷。
相关阅读(Related read):修复 USB 驱动器或 SD 卡上的未分配空间错误(Fix Unallocated Space error on USB drive or SD card)。
Fix Unallocated Hard Drive without losing Data in Windows 10
An Unallocated disk or drive is one that hasn’t been assigned any drive letter. To install an operating system on brand new hard drives, you will be required first to partition it because you can’t write data on an unallocated hard drive.
Sometimes, your existing hard drive points out an unallocated space on it. This means the space on the hard drive does not belong to any partition, so data can’t be written to it. To solve this, you will have to create a new partition or expand the current partition. But before you do that, right-click on the Unallocated disk and see if you can Change Drive Leter and Paths.
In sporadic cases, an entire functioning hard drive becomes unallocated! When this happens, all your files and folders stored on it become inaccessible. In this article, you will see a few causes and how to fix it.
Why do drives become Unallocated?
Different reasons may cause your Hard Drive to be Unallocated. A few are listed below-
- An error in your file system, or a corrupted or damaged file system
- Internal error.
- Hardware failure in the hard drive.
- An outdated hard drive driver.
- The presence of a virus or malware in the hard drive.
- The hard drive was ejected improperly the last time.
- Due to poorly created or modified partition
- The external hard drive was physically damaged.
- Due to wrong operations.
So many other reasons could cause this error; those listed above are the most common causes of an unallocated hard drive.
Fix Unallocated Hard Drive without losing Data
You can fix this error in three ways. Nevertheless, it would be best if you tried recovering your data from the drive with a good data recovery tool. If you can’t recover your data from the hard drive, use the following methods to do repair the drive.
- Fix it with the CHKDSK command.
- Update your hard drive driver.
- Create a new volume using Command Prompt.
1] Fix it with the CHKDSK command
You can use the Chkdsk command by running it through the Command Prompt. Open your Command Prompt as an administrator then input the following command and hit Enter:
chkdsk x: /f/r/x
Note: In your Command Prompt, ensure you replace x with the correct drive letter of the unallocated hard drive.
The command above represents:
- x = the hard drive that is unallocated (check for the drive’s letter)
- /f = repairs drive errors.
- /r = recovers data in the bad sector
- /x = unmounts the drive to start the process
2] Update your hard drive driver
You can solve this error by updating your hard drive’s driver. Open your Device Manager, right-click on the unallocated hard drive found under the Disk drive section.
From the right-click menu, select Properties > Driver > Update. Here, follow all on-screen instructions and Restart your PC after the update.
3] Create a new volume using the DISKPART tool
You can also create a New Volume from your PC’s command prompt. Open the Command Prompt and input diskpart, then hit Enter. Type in list volume then strike the Enter key.
Chose the unallocated driver’s letter with the following command: select volume x (replace x with the unallocated driver’s letter).
Next, type the following; delete volume and list volume. At this juncture, Diskpart should create a new volume.
If Diskpart fails to create a new volume key, you’ll have to do it manually. Carefully follow the instructions below:
- Input the following commands in Command Prompt one after the other and hit Enter after each.
- Search for Disk Management from the Windows Start menu, then select Create and format hard disk partitions from the results given.
- Right-click on the unallocated hard drive and select New Simple Volume > Next.
- Set the new Simple Volume size in MB then Next.
- Select the Format this volume with the following settings
- Make the File System to NTFS, and the Allocation unit size should be set at default, then name the Volume label.
- Mark the Perform a quick format checkbox then click Next > Finish.
Ensure you follow the settings carefully to create the new volume.
Related read: Fix Unallocated Space error on USB drive or SD card.