The problem: Virtual disk service error clean is not allowed
I have a Windows 8.1 Lenovo Yoga 13 with 128GB hard drive, and I bought an identical 128GB SSD from eBay, which comes with a Windows 8.1 installed and all the partitions. But I want to use it as my secondary storage device and delete everything on the new SSD. But I can’t delete the partition on the new SSD via Disk Management. Then I used diskpart clean command to clean the new SSD drive, I get an error message: virtual disk service error: clean is not allowed on the disk containing the current boot, system, pagefile, crashdump or hibernation volume. I’m not using it as my system disk, why I can’t clean it at all? Can anyone help? Thanks.
You will get this error when you are using diskpart clean command on system disk. The system disk contains the Windows operating system files and other critical files, if you are allowed to clean the system disk, all the data and partitions will be gone. That will result in a lot of errors and chaos. Meanwhile, the delete volume is greyed out in Disk Management. In this case, the new SSD drive may be regarded as the system disk due to the system files, etc. Thus, how to clean the system disk with the right way and get rid of the virtual disk service error clean is not allowed issue?
How to fix diskpart virtual disk service error clean is not allowed?
Actually, there has a solution to solve this “clean is not allowed on the disk containing the current boot…” problem: delete partitions on system disk under WinPE environment. There are two ways to achieve that goal.
Way 1: Using Windows installation disc to clean
If you have the Windows installation disc, you can follow these steps to solve clean is not allowed issue in Windows 7/8/10:
1. Insert the Windows installation disc, then boot from it.
2. Click Repair your computer> Troubleshoot > Advanced Options > Command Prompt.
3. Then input the diskpart commands to clean hard disk:
select disk [disknumber]
Then you could create a new partition on the drive to solve this problem. If the solution is not working for you, you could try the way 2.
Way 2: Create bootable media with AOMEI Partition Assistant to clean
If you don’t have a Windows installation disc, the virtual disk service error clean is not allowed problem can be solved by AOMEI Partition Assistant Professional, which is a professional disk partition manager software, and highly recommended by Windows users due to its friendly interface and comprehensive functions. To solve the clean is not allowed problem, you could use it to create bootable media, then delete all partitions on the system disk.
Before cleaning the system disk, please:
Install AOMEI Partition Assistant Pro;
Prepare a USB flash drive at least 13GB.
Create Bootable Media
1. Insert the USB drive and make sure it can be detected. Launch the freeware, select Make Bootable Media at the left Wizards column.
2. Click Next.
3. Tick USB Boot Device to create bootable USB drive.
4. Press Proceed.
Delete all partitions on system disk
After creating bootable media, boot your computer via the bootable USB stick, then you will see AOMEI Partition Assistant on the desktop. Perform this program and delete all partitions on system disk with these steps:
1. Click the system disk and choose Delete all Partitions under Disk Operations column.
2. Choose a proper deletion method, hit OK.
3. Press Apply to confirm to fix the clean is not allowed on the system disk.
Afterwards, create a new partition on the hard drive as the secondary storage device, the virtual disk service error clean is not allowed problem should be solved. Besides, you could use it to solve the volume is too big for FAT32 issue, convert disk between MBR and GPT, etc. There are 2 similar errors you could solve use this freeware: format is not allowed on system partition; delete is not allowed on the current boot, system, pagefile, crashdump, or hibernation volume.