In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
In Windows 10 how to use Diskpart commands to manage disks, many novices are not very clear about this, in order to help you solve this problem, the following editor will explain in detail for you, people with this need can come to learn, I hope you can get something.
Using the command line tool DiskPart, you can easily store or manage disks, just like the visual disk management tool on Windows.
The disk Partition Utility (Diskpart) is a command-line tool for managing hard drives in the Windows operating system, replacing the FDisk command-line tool that was widely used in the era of the MS-DOS operating system.
Use the command line to manage hard drives
Diskpart can be used at the command prompt and PowerShell, and when using Diskpart, you must know what you are doing, and it can take a lot of time to format the entire disk with one command.
Use the command line to manage the hard drive in Windows10:
1. Open the command line or PowerShell.
two。 Run DiskPart with administrator privileges.
3. Use the command line to clean the hard drive.
4. Use the command to create a partition.
5. Use the command to format the hard drive.
6. Delete the partition.
7. Use the command line to expand the partition.
8. Use the command to shrink the partition.
Read this article to learn all about using the command line to manage your hard drive in a Windows environment. First, let's start it by running DiskPart with administrator privileges on Windows10, but you can also use this command on other Windows operating systems.
Press Windows + R to open the run dialog box and type diskpart, then press enter to run the DiskPart utility.
When prompted for user account control, click Yes.
Use the command to create a partition
If you want to see all the hard drives installed in the system, simply type list disk and press enter, and all the connected hard drives in the computer will be displayed. The List disk command displays only the normal hard drive on the computer, but cannot be displayed using the DiskPart List Disk command if the hard drive is damaged.
1. Type "List Disk" to view all hard drives.
two。 If you have two hard drives on your computer, you must use the command line to select the correct disk to manage. Use the select disk command to select the disk.
For example, to select disk 1. Type the "select disk 1" command and press Enter.
To see if the disk is selected, simply type "list disk" and view the results. The strick in front of disk 1 shows that disk 1 is selected and ready for management.
Use DiskPart to clean up the partition
Type the "clean" command and press Enter to clean up the disk.
Use the command to create a partition
To create a partition using the command, simply type "Create partition primary size = 40000" and press the Enter key. This command will create the 40GB primary partition on disk 1. You can allocate the size of the partition according to the capacity of the hard disk.
1. Type "create part primary size = 50000", and then press Enter.
two。 Check the created partition type "List vol" command, which lists all volumes.
Use the command to format the partition
Type "format fs = ntfs quick" to format the partition, and type list vol to view the formatted partition with the NTFS file system. Next, specify a name for the newly formatted partition.
two。 Just type "assign letter = f" and press enter, and the F letter has been assigned to volume 3. It appears as an F local drive in File Explorer.
Use the command to delete the partition
To use the command to delete a partition or volume, select Volume, and then type delete partition, and you can see that partition Volume 3 has been deleted successfully.
Sixth, use the command to expand the partition
The expansion process is to add some space to an existing partition from the free space of the disk.
1. Use the "List vol" command to list the volumes.
two。 Type "extend size = 10000" to add 10 GB from the free space of the hard drive to the volume 3 partition, and if you do not mention the size, the system will add all available space.
7. Use the command to reduce the partition
For newly purchased laptops, there is usually only one hard drive. You can use the DiskPart shrink command to reduce the extra free space on your hard drive. The purpose of shrinking volumes is to create unallocated space from the free space of an existing partition.
1. Type "List vol" to view all volumes.
two。 Enter "shrink desired = 20000 minimum = 10000", then press enter, and the Diskpart shrink command has successfully reduced 19 GB space from volume 3.
Is it helpful for you to read the above content? If you want to know more about the relevant knowledge or read more related articles, please follow the industry information channel, thank you for your support.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.