In particular, n1 is the number of drives where Recovery partition or OEM partition is set, n2 is Recovery partition number or OEM partition.
You can then see and open the hidden drive in Windows Explorer.
First of all, see what a crash dump file, hibernation file and page file.
1. Crash Dump File : In case of a system failure (instead of any application errors), the state of the operating system information will be recorded and this type of information is called is the error file. Once these files are lost, it will be difficult to detect what error your computer is having. That may be the reason why Windows does not allow the drive to save these files. The settings for the error file are configured in Control Panel and saved in C drive by default. Here is an example in 32-bit Windows 7:
Go to Control Panel .
Select View by small icon , then select System.
Click Advanced System Settings .
In the Advanced menu , select Settings in the Startup and Recovery section .
Now we can see the details of the error files.
2. Page File : Page File is a type of virtual memory on the hard drive. It is always in drive C but can be transferred to another drive, like drive D or F.
You cannot view the page files, unless you turn off the " Hide protected operating system files " option in Folder Options . When RAM is full, Windows will transfer some data from the RAM back to the hard drive, placing it in the page file. Disabling the page file may lead to some errors. If all available memory is used up, the running programs will start to fail because they cannot be swapped out of RAM into the page file. Furthermore, applications require a large amount of storage space to refuse to run when RAM runs out of space. Therefore, Windows does not allow users to delete drives that save page files.
3. Hibernation File (file that stores information from memory used by Windows for Hibernate mode): There are two modes of power management: Sleep mode and Hibernate mode, in That hibernation mode uses the hiberfil.sys file to store the current state of the PC. This file is located in the root of the drive where the operating system is installed, and Windows Kernel Power Manager preserves the file when you install Windows. It is managed by Windows so users cannot delete the drive containing the hibernate file in the usual way.
As you know, USB flash drives, SD cards and optical drives are removable devices (the fact that a specific device is fixed or removable is determined by the driver). Such storage media do not require partitions, or should only contain one partition, because the use of more than one partition confuses mobile storage service. Removing a single partition on a mobile device will make the whole device unavailable. That may be the reason why Windows does not allow users to delete drives on mobile devices.
Note : The above is just a reason why it is not possible to delete EFI system drives, recovery drives, OEM drives, removable device drives, etc., by finding the file type saved, so They may not be 100% accurate.
In fact, although you are not allowed to delete these drives in Disk Management, there are other solutions.
To do this, you can use the 'clean' command in Diskpart. This example will delete the partition on the USB flash drive.
1. Run Diskpart as admin to get the following window:
2. Type the following commands in turn, each command ends by pressing the Enter key
list disk
select disk 1
clean successively
In particular, disk 1 is a USB flash drive.
After Diskpart shows that it has successfully deleted the drive, the entire device will not be allocated in Disk Management. At this point, you can create a drive containing all the space of the mobile device.
Warning : All data will be lost after deleting the device, so choose the correct drive to delete and back up the necessary files first.
This can also be done in Diskpart.
In Diskpart, type the following command and press Enter:
list disk
Then type:
select disk N
(N is the number of drives where the OEM partition or Recovery partition is located) and press Enter. Next, type:
list partition
and press Enter, then type:
select partition N
(now N is the OEM partition number or Recovery partition) and press Enter. Next, type:
xoá bỏ phân vùng phân vùng
and press Enter. Finally, type:
exit
and press Enter to exit Diskpart.
Unlike mobile devices, you cannot delete the hard drive with the "clean" command if it is the current boot drive, the system drive, etc.
But there are also some solutions.
1. Put the hard drive in another computer. Then, delete the drive in Disk Management of that computer.
2. If you have more than one operating system, start an operating system that is saved in the drive that will not be deleted, and then delete the target drive in Disk Management.
3. Delete the drive using third-party partitioning programs, working with any type of drive mentioned in this post.
Note : The EFI system partition may not be deleted with the previous two solutions, but the third way is possible.
Professional partition programs have the ability to delete a specified drive without causing any damage to the data stored in other partitions. Here, you may consider using the free MiniTool Partition Wizard.
Note: It is only free for non-Windows users as servers. To support the server, you need to buy a special version.
1. Run the MiniTool Partition Wizard and select "Launch Application" to get the following window:
2. Select the partition to delete and select the Delete Partition feature on the left. Here, for example, we want to delete drive C. Also, because C drive stores Windows system files, the MiniTool Partition Wizard will ask you to confirm whether to delete it and just press 'Yes'.
3. Now, you can see that C drive has become an unallocated space. At this point, please click the Apply button to make changes. However, when the C drive saves Windows is running, you will be asked to restart the computer. Please do so, and then all changes will be made in startup mode.
Now, you already know how to delete the drive that cannot be removed in Disk Management. If you are troubled by this type of problem, try one of the solutions introduced in this article. Of course, you can also use MiniTool Partition Wizard Bootable CD, a tool that can operate the hard drive without booting Windows.
See more: