Detailed use of the Fdisk command to partition and adjust the partition

  
Some friends on the hard disk partition and how to use Fdisk to partition and use the "magician" to adjust the partition is not very clear, I will briefly explain the hard disk partition, and how to use Fdisk Partition and use the "magician" to adjust the partition:
First, the basic knowledge of the partition
1. Primary partition, extended partition, logical partition
The primary partition of a hard disk is also the file necessary to start the operating system And the hard disk partition of the data, to install the operating system on the hard disk, the hard disk must have a primary partition.
The extended partition is the partition other than the primary partition, but it cannot be used directly, and it must be divided into several logical partitions. The logical partition is the D, E, F and so on that we usually see in the operating system.
2. Partition format
"Formatting is equivalent to putting a grid on white paper", and this partition format is like this "lattice" style. Different operating systems use "lattice" in a different way. Currently, the partition formats used by Windows mainly include FAT16, FAT32, and NTFS, and almost all operating systems support FAT16. However, the hard disk using the FAT16 partition format is actually inefficient, so the partition format is now rarely used.
FAT32 uses a 32-bit file allocation table to greatly enhance its disk management capabilities. It is currently the most used partition format, and is supported by Win98/Me/2000/XP. In general, when partitioning, King recommends that you set the partition to FAT32 format for maximum compatibility.
The advantages of NTFS are excellent security and stability. However, except for WinNT/2000/XP, other operating systems cannot recognize the partition format, so DOS and Win9X cannot see partitions in this format.
3. Partitioning Principles
Regardless of which partitioning software is used, we must follow the following sequence when creating partitions on new hard disks: create primary partitions → create extended partitions → create logical partitions → activate primary partitions → format All partitions (Figure 1).
Second, partitioning with Fdisk The simplest partitioning software is not "Fdisk" in the "Windows boot floppy". Tip: The Fdisk version that comes with the Win98 boot disk is older and cannot recognize large hard disks with a capacity of more than 64GB. Users with Internet access can also download the Win98 boot disk fix (http://download.microsoft.com/download/Win98/Update/8266R/W98/TW/263044CHT8.EXE) from Microsoft's website. After modifying the boot disk created by the program, you can partition the hard disk larger than 64GB. 1. Enter DOS and execute Fdisk. Enter the DOS state through the Win98 boot disk. Enter “Fdisk” in the A drive letter and press Enter. Some English instructions appear and ask the user to make a choice. The general meaning of this dialog box is to ask you whether to enable FAT32 support. After typing "Y" and pressing Enter, you will enter the main interface of Fdisk (Figure 2). There are four options on the main interface, the Chinese meaning is: 1 establish DOS primary partition or logical DOS partition; 2 set active partition; 3 delete DOS primary partition or logical DOS partition; 4 display partition information; if there are many installations in the system For the hard disk, the fifth option “Change current fixed disk drive” will also appear. 2. Create the primary partition Enter "1" in the "Enter choice:" on the Fdisk main interface and press Enter to enter the partition function interface (Figure 3). The partition function interface also has three options, namely: 1 to establish a primary partition; 2 to establish an extended partition; 3 to establish a logical partition on the extended partition. Enter "1" at "Enter choice:" and press Enter. At this point, the program scans the hard disk and asks "Do you want to use the largest available space (the entire hard disk) as the primary partition". Note: Unless you want to use the entire hard disk as a partition, you must not select "Y" at this time, enter "N" and press Enter. The program scans the hard disk again and asks for the size of the primary partition after completion (Figure 4). According to your own partitioning scheme, enter the corresponding number here and press Enter (the unit is MB. For example, if you want to create a 2GB partition, enter 2048, that is, multiply the value by 1024). Then the screen prompts that the primary partition has been established, and shows the ratio of the capacity of the primary partition to the total capacity of the occupied hard disk. Press Esc to return to the main interface of Fdisk. 3. Create an extended partition In the Fdisk main interface, continue to select the first entry into the partition function interface, and then select the second item to create an extended partition. After the program scans the hard disk, it will display the current capacity of the extended hard disk. After returning directly, all the remaining space is established as an extended partition. 4. Create a logical partition on the extended partition After the extended partition is created, follow the prompts in the program, press "Esc to continue", the program will not actually exit, but immediately scan the extended partition, and finally list the available space of the extended partition. It is also required to enter the size of the logical partition (Figure 5). Tip: Through the above steps, the primary partition has been divided, and now the "create logical partition on the extended partition" is to establish D, E, F, G, H and other partitions. According to your own partitioning scheme, enter the capacity of the D drive and press Enter. The system will automatically assign a logical drive letter "D" to the zone. Because the extended partition has not been divided, the program will also appear as shown above, requiring the user to enter the size of the next logical partition. Users only need to enter the size of the logical partition according to the scheme, and the system will automatically assign them a drive letter. After the extended partition is divided, the system displays the number and capacity of all logical partitions and prompts to press “Esc” to return. 5. Activating the primary partition When the primary partition and the extended partition are both built on the hard disk, the primary partition must be activated, otherwise the hard disk will not boot the system. Return to the Fdisk main function interface and select “2” (Setactivepartition). At this time, the screen will display all the partitions on the main hard disk for the user to select. On the current hard disk, only the primary partition "1" and the extended partition "2" are entered. Type "1" in the dialog box and press Enter to return to the Fdisk main interface. At this point, the partitioning of the new hard disk is finished, press the "Esc" key twice to exit Fdisk, and then restart the computer. 6. Format the partition According to the method described above, use the Win98 boot disk to enter the DOS state again. Enter “FormatC:” under the A drive letter and press Enter. The system prompts that this will delete all data on the C drive. Enter "Y" and press Enter to confirm. At this point, the program starts to format the C drive. After the completion, the program prompts whether to assign the volume label to the C drive. Enter to confirm, the program will automatically add a volume label to the C drive. At this point, the C drive format is completed and the drive can store data. And so on, format D, E and other disks. Now you can install the operating system on your hard drive. Third, use the "magician" to adjust the partition. As the saying goes, there are points that must be combined. If the points are not suitable, and want to change the size of the partition (commonly known as "lossless dynamic partitioning"), what should I do? For this question, the most qualified to speak is "Partition Magic" (PQ). The following is an example of PQ 8.0 DOS. The C drive is the partition that is most prone to capacity crisis. Let's take the example of increasing the capacity of the C drive. If you want to increase the capacity of the C drive, you will naturally reduce the capacity of other partitions. Suppose now that D disk has 1GB of free space, E disk has 3GB of free space, and now want to give 4GB of space in these two partitions to C drive, then when using PQ8.0DOS version, first of all, the remaining E drive The space is given to the D drive, and then the D drive is assigned to the C drive. The specific operation is as follows: After entering the PQ main interface, right click on the E disk and select “Resize/Move” in the right-click menu (Change/Move) (Figure 6). After entering the "Resize/Move Partition" window, enter the space in the "Free Space Before" field where you need to free the E disk. This value is less than or equal to the maximum remaining of the E disk. Space value (Figure 7). After inputting the space capacity value that needs to be vacated, click the “OK” button to return to the main interface. At this time, you will find a “blank area” between D and E. This is the “gif” of the E disk to the D disk. Right click on the "D drive" and select "Resize/Move". After entering the "Resize/Move Partition" window of the D drive, first change the number at "Free Space After" from the original XXX (that is, the "Free Space Before" value of the E drive) to "0", so that even E will be The "gifts" of the plate were taken down. Then enter the space value for the D drive in the "Free Space Before" field. Finally click the "OK" button to confirm (Figure 8). Now there is a relatively large "blank area" between C and D, which is the space that will eventually be given to the C drive. Right click on the C drive, select "Resize/Move", then set the number in "Free Space After" to "0" in the "Resize/Move Partition" window of the C drive. After saving the settings, D and E are given to C. The gift is all accepted. After clicking the “Apply” button in the lower right corner of the main interface and confirming, PQ will begin the formal adjustment. Tip: Although PQ can change the partition capacity and format without loss, for data security, it is best to perform important data backup before operation. At least the disk scan and disk defragmentation of the hard disk before operation, so as to avoid data loss. When using PQ, do not exit the system abnormally or suddenly shut down, otherwise it will easily cause data loss in the partition, and even cause physical damage to the hard disk in severe cases. After learning the division and combination of the hard disk, the basic operation of the hard disk is almost the same.
Copyright © Windows knowledge All Rights Reserved