Hello question! How to delete any hard disk partition on the command line, for example - (D:)? For some reason I can't format it or delete it in« Disk Management", an error occurs.
I also wanted to know how to delete hidden hard disk partitions (including system and service ones)!
Hello friends! If you are unable to format or delete any partition on your hard drive, this may be due to several reasons:
If Chkdsk finds no errors, and Victoria shows that the hard drive is working, then try deleting the hard disk partition that cannot be removed on the command line, it's very simple.
Let's go to Disk Management on my laptop.
For example, let's first delete a non-system partition (M:) with a size of 293 GB and create it again.
We open command line on behalf of the administrator
and enter commands:
diskpart
sel par 5 (with this command we select the fifth volume (M:) size 293 GB
del par (remove this section)
creat par prim (create a new partition)
format fs=NTFS quick (use quick format in file system NTFS)
assign letter M (assign the drive letter M :) to the created partition
exit
In a running operating system, in this way you can delete almost all partitions on a hard disk except for system or service partitions (recovery environment, hidden section 100 MB encrypted (EFI) system partition, and hidden section with factory settings), but these partitions can also be deleted in Windows PE or by changing the hard disk partition attributes.
How to delete a system or service partition of a hard disk in the command line
For example, let's delete a hidden partition 100 MB encrypted (EFI) system partition.
I want to say that "for the sake of fun" you should not delete these sections, as this promises various problems in subsequent work operating system, because .
In the initial installation window of the operating system, press Shift + F10 and the command line opens.
We enter the commands:
diskpart
lis dis (with this command, we list all disks and drives connected to a computer or laptop)
sel dis 0 (select a single hard drive)
lis par (list all hard disk partitions)
I bring to your attention another article from the Windows 7 section. Today we will consider how to clean up the local drive of the hard drive using the operating system itself. In addition, I will show you how to configure the operating system to automatically clean up logical partitions periodically.
Why is it necessary to clean the disk? The answer is very simple. The operating system is something like a living being. Just get it right. This means that it is constantly in motion (dynamics): processes, services, programs are started / disabled, files are moved. Because of which a lot of unnecessary information often accumulates on the local disk (s) of the computer. Unnecessary means that it will no longer be needed by the user or the operating system for any purpose.
A information, as we all know occupies free space, which can be used for your needs and purposes. In addition, the accumulation of unnecessary information on the computer may eventually lead to precarious work.
I note that the system will not necessarily slow down or freeze if you do not clean up the disk, it just increases the risk. Moreover, the cleaning process, which allows you to delete temporary files, empty the trash, browser cache and other unnecessary information, takes very little time and patience.
So why not perform this operation? And any previously unfamiliar work eventually becomes an experience that is so needed in our time of information technology.
But let's proceed directly to the process of cleaning the disk..
We start the command line. To do this, open "Start" - "Run"
Rice 1 . Run
At the command line, enter the command cleanmgr and press Enter.
A selection window will open cleaning disk. We select the necessary disk (for example, the system disk C, i.e. the local disk on which the operating system is installed).
Fig 2. Disk selection.
The cleaning program will first search for files that can be deleted.
The Disk Cleanup window will open
Fig 3. Removal junk files.
Each type of file that can be deleted is described below. If you are not sure about your choice, I recommend that you first read the description.
Go to the "Advanced" tab.
Fig 4. Additional Disk Cleanup.
As you can see from the figure, there are several more ways to free up additional disk space:
If you click on the "Cleanup" button opposite the "Programs and Features" section, a Windows 7 operating system control panel window will open called Programs and components. By using this application Can manually remove unused programs.
If you click on the "Cleanup" button opposite the "System Restore and Shadow Copy" section, a window will open in which you can delete restore points (if they were previously created), as well as shadow copies of files.
On the "Disk Cleanup" tab, we note which files need to be deleted. And click Ok. We confirm our choice. Will begin the process of deleting unnecessary files.
The time interval of this process depends on the amount of unnecessary information, computer settings and system load in this moment but it doesn't last long.
To perform this operation, we use task Scheduler, which is a component of the Windows 7 operating system. Using the scheduler, you can assign automatic execution assignments (in certain time or when certain events occur)
To open the task scheduler, go to "Start" and click on "Run". In the window that opens, enter the command taskschd.msc. Click OK
Figure 5 Task Scheduler
Select "Create a simple task" menu item "Action".
Fig 6. Create a simple task.
11.06.2010 01:49
Disk Cleanup in Windows 7 is designed to automatic removal junk files from hard drive. Cleaning is done by the application cleanmgr.exe located in the folder %SystemRoot%\System32. In this article, I will tell you about the rich features of this utility and how to customize it.
With the built-in Advanced Disk Cleanup in Windows 7, you can remove everything that standard cleanup removes, plus:
First you need to create cleaning configuration– Specify the folders whose contents are to be deleted.
1. Open the menu Start > All Programs > Accessories, click right click command line icon and select .
2. Enter the command: cleanmgr /sageset:7 /d C: and press Enter .
Explanations:
3. Check the boxes for the files you want to delete.
4. After pressing the button OK the configuration will be created and the cleaning options you assigned will be written to the Windows 7 registry.
Please note that no files are deleted at this stage. The configuration is simply created and saved. In the future, you will be able to run the cleanup with the selected options without having to mark the files to be deleted again.
To remove all files marked in this configuration, open the command prompt again as an administrator and run the command cleanmgr /sagerun:7
Explanations:
Note that you can create and use up to 65536 different cleaning configurations.
To avoid running the command line every time you need to clean up a drive, you can create a shortcut that launches a specific cleanup configuration.
1. Right click on the desktop and select Create > Shortcut.
2. Specify %SystemRoot%\System32\Cmd.exe /c Cleanmgr /sagerun:7 as the location of the object (instead of "7" specify the number of the configuration you created).
3. Right-click on the created shortcut and select Properties.
4. Tab Label press the button Additionally and check the box.
Disk Cleanup only removes temporary files that were last accessed at least seven days ago. Therefore the folder Temp and other similar folders may contain temporary files even after cleaning is complete. You can remove or change this restriction using the editor Windows Registry.
1. Launch the Windows 7 Registry Editor (press Windows + R, type regedit and press OK).
2. Open HKEY_LOCAL_MACHINE > SOFTWARE > Microsoft > Windows > CurrentVersion > Explorer > VolumeCaches > Temporary Files
3. On the right side of the editor window, double-click Last Access(DWORD parameter).
4. Change the value of this parameter to any desired number. This number determines the "age" of temporary files in days after which Disk Cleanup can delete them.
5. Restart your computer.
Disk Management
The article provides seven ways to solve the problem of insufficient free space on the Windows system drive, both using the built-in system tools and third-party utilities.
Thirteen years ago, when the operating room appeared and instantly gained popularity Windows system XP, no one was particularly worried about the size system disk. 20-30 GB on the "C" drive was enough to install both the system itself and to software. With the advent of Windows 7, PC owners for the first time massively faced the problem of lack of space on the system disk - this operating system itself occupied about 10 GB, and programs consumed about the same amount, prescribing and constantly updating. The system disk of 20-25 GB filled up very quickly. And many even had to resort to repartitioning computer disks in order to increase the system disk at the expense of another disk.
To on system partition there was always enough free space, it must be kept clean and tidy and periodically monitored for clutter. If Windows reports that there is not enough free space on the system drive - usually on drive C - it's time to clean it up. Consider below 7 ways to clean up the system disk with installed Windows 8.
Before you start cleaning the disk, you need to remember how much free space it has at the moment. In the future, this will allow us to evaluate the effectiveness of the work done by comparing the initial and final figures.
First you need to check if files are stored on the system disk that, in principle, can not be stored there - these are media files, folders with documents, disk images, program installation files, etc. All this can be transferred to a non-system disk, moreover, it is even recommended to store all important files on a non-system disk (D, E, etc.) so that in case an unexpected system failure occurs and it has to be reinstalled, this data were not destroyed during the formatting of the system disk.
As a rule, all files downloaded from the Internet are stored in the download folders assigned by browsers by default on the system drive. So that in the future the system disk is not littered with downloaded files, it is necessary to assign a different folder for downloads in the browser settings, but already on a non-system disk.
Under no circumstances should it be transferred to another drive. system files, which means that you better bypass the Windows folder by the tenth road.
To search for media files and documents, you can use Windows search and set the search criteria for the desired file types within the system disk.
Check the found files additionally, cut the necessary ones and paste them on a non-system drive using context menu, and simply delete unnecessary ones.
Remove all those programs and games that you do not use. As a rule, after the removal of large resource-intensive games, quite a lot of space is freed up. To correctly remove the software and clean the system from the remaining traces, use special software - uninstallers.
Here are some popular uninstallers:
The Windows operating system is equipped with a regular service that analyzes the space on the system disk and determines the files that can be deleted to free up space without harming the system.
In Windows 8 Explorer, open "My Computer" and call the context menu on the system drive. At the end of the list, click "Properties", and in the window that appears - the command "Disk Cleanup". In the Disk Cleanup window, check the boxes next to the files you want to delete - trash files, temporary files of the Temp folders, temporary Internet files, etc.
Then click "Clean up system files".
If the system disk is not cleaned periodically, up to 5-6 GB can accumulate in the Temp folders for a long time. And the Windows service "Disk Cleanup", as a rule, deletes only a part of the files from these folders. Folders of temporary files "Temp" can be cleaned manually by deleting their contents completely.
What is the "Temp" folder for anyway? It stores temporary files that Windows and various programs that are installed on the computer create for their work. Most of these files eventually become unnecessary, because they are not involved in the work.
The "Temp" folders are hidden and the easiest way to get to one of them is with the standard Windows Explorer, or popular file manager Total Commander, since most assemblies of this program have a preset "Hidden Items" button on the toolbar. It displays all hidden files and folders of the system. Click this button and open the root folder of the system in Total Commander and find the “Temp” folder there:
You can also open the “Temp” folder along the same path in the regular Windows Explorer, but before that, you must also configure the display of hidden folders.
In Windows 7, click the Start button, then Control Panel, then Appearance and Personalization, then Folder Options. In Windows 8, the "Folder Options" section can be accessed immediately from the "Control Panel".
In the "Folder Options" window that opens, immediately go to the "View" tab and check the "Show hidden folders, files and disks.
Then click "Apply" and "OK".
In the "Temp" folder, select all available files and press "Shift + Delete" to delete the files from the computer completely, bypassing the "Recycle Bin".
But the “Temp” folder on the computer is not alone: except for the one located in the root Windows package, another folder "Temp" can still be found in user files on the system drive:
C:\Users\Name account Windows\AppData\Local\Temp.
You can follow this path in the file manager or Windows Explorer, but it will be much easier in address bar explorer, enter the command% TEMP% and press the "Enter" key.
Select all the files that are there and delete them.
Not all files from this “Temp” folder will be deleted, some of them may be currently involved in the operation of the system and programs, so just skip them.
To increase the loading time of Internet pages, browsers, when accessing a server on the Internet, first check the cache - a place on the system disk specially allotted to store once visited web pages, pictures and other elements of Internet resources. And if there is a copy of this data in the cache, then the browser loads it from the cache, and not re-loads it from the server.
In order to periodically receive updated data from servers, ideally the browser cache should automatically clear itself from time to time, but this is not always the case. Sometimes, after active Internet surfing, a rather impressive amount of unnecessary data remains in the cache, and it must be manually cleared periodically. To do this, browser developers provide special function clearing the cache manually.
For most browsers, this feature can be accessed by entering the key combination "Ctrl + Shift + Delete". However, you can separately specify how to clear the cache of your particular browser, or use special programs to clean the system, about which we will talk below.
Clearing the browser cache will free up a certain amount of space on your system drive.
The software market today provides a huge number of programs designed for comprehensive cleaning of the Windows OS. This includes cleaning the "Recycle Bin", and temporary files of the system and installed programs, and browser cache.
The most popular program of this kind is CCleaner. It's free, minimalistic, yet it offers the necessary features to clean your operating system of junk files and optimize its registry.
Among the analogues of CCleaner, there are more functional solutions - for example, System Cleaner, Neo Utilities, System Optimize Expert, TuneUp Utilities and other programs.
You should not put too much hope on such a program plan. Like the Windows Disk Cleanup service, they can also only remove a subset of junk files. Therefore, if the question of the need to increase space on the system disk is acute, it is better to additionally clean the Temp folders manually.
Hibernation mode is a low power consumption mode in which the system enters a sleep-like mode, but at the same time all open files and running programs are stored on the system hard disk in separate file. Hibernation mode is designed for laptops to extend the life battery life without recharging the battery. But Windows automatically creates a file for storing data in hibernation mode, no matter what computer device you use, and this file is several gigabytes in size.
To see the hibernation file when display is on hidden file s and folders, open the system drive in a file manager or Windows Explorer window. Look for the "hiberfil" file with the ".sys" extension among the hidden ones.
If you are using a desktop PC and not a laptop, you generally do not need hibernation mode. And you can delete it to free up space on your system drive. Yes, and working with a laptop and using the hibernation mode periodically, you can transfer the hiberfil file to another non-system drive.
You won’t get rid of the hiberfil file with the usual “Delete” context menu command because it is protected by the system. But it can be removed using the command line.
If programs take longer to load, and the computer slows down during each subsequent operation, you need to clean up the system drive C from "garbage". Unused software products, remnants of incorrectly deleted software and files, saving errors due to disk fragmentation are the main reasons for uncomfortable working with a PC. Let's figure out how to clean up the system drive C from unnecessary files and programs?
The "Temp" folder is located on the system C, it can also be found manually. It is also recommended to release user folders, OS storages. All of them are located on the main disk. But when manually deleting objects, you need to be extremely careful, otherwise there is a high probability of erasing the system file, without which the OS will not boot.
Important! Do not remove objects with an unfamiliar extension in the windows.old folder - files for system recovery are stored here.