Transfer an article I wrote about how to partition a hard drive and organize files on the hard drive (originally published on our internal network forum), which may be of reference for beginners when using computers in the future (for the software mentioned in the article, please use Google to search for the download address): We know that when a new Windows is installed, by default, the storage locations of folders such as "My Documents" and "Favorites" are all on the C: drive. This is not only not conducive to users organizing their documents, but also causes many difficulties for system maintenance (including reinstallation). Is there a way to change the default storage location of these folders to other drives? Of course there is. Now I will systematically introduce how to change the default storage location of these user folders.
I. How to Partition the Hard Drive
Nowadays, hard drives are very large, often tens of GB or hundreds of GB. There is no need to be as careful about partitioning as with the old small hard drives, but a reasonable partitioning method will effectively organize the data on the hard drive, make the hard drive run faster, and have a lower possibility of failure. The partitioning method I recommend is as follows (taking an 80G hard drive as an example):
1. When partitioning the hard drive, the first thing to consider is how many operating systems you are going to install on your machine. We assume you want to install two operating systems, one XP and one 98. If your system is WinME, you can refer to the partitioning plan for 98. If your system is 2000, 2003, etc., you can refer to XP. Of course, if you want to install Linux, I don't need to introduce how to partition. For XP, I suggest dividing a primary partition not exceeding 4G (actually, 3G is enough), and for 98, 2G is enough, and at most not exceeding 3G. I have seen many people's C drive is 10G or even more. This not only wastes hard drive space, but also causes too many fragments in the system partition, resulting in slow system operation, instability, etc., and is not convenient for system maintenance.
2. The partitioning tool can no longer use the traditional FDISK because its function is too weak. I recommend using Partition Magic from PowerQuest. Of course, you can also use software such as Acronis Partition Expert, BootStar, DiskGen (formerly DiskMan), SPFDISK, etc. These software are all provided for download on software download sites. The biggest difference between these partitioning software and FDISK is that they can divide a hard drive into more than one primary partition. A hard drive can have a maximum of four primary partitions, and the characteristic of a primary partition is that each primary partition can install an independent operating system, and this operating system is not affected by the operating system on another primary partition.
3. The following is my partitioning plan for the above 80G hard drive (starting from the front of the hard drive in sequence, note that 1G = 1024M):
1) Primary partition, 3G (3072M), for installing XP, volume label: HDA1_WXP
2) Primary partition, 2G (2048M), for installing Windows 98 Second Edition, volume label: HDA2_W98SE
3) Primary partition, 3G (3072M), for installing one-key recovery system, saving clone files of the system, etc., volume label: SYS_SERVICE. This partition can be adjusted according to the size of the clone files you want to store.
4) Extended partition, the remaining space of the hard drive is all given to the extended partition, which should be about 70G. The extended partition has no volume label because logical drives need to be further divided in it.
4.1) The first logical drive, 30G, volume label: HDAL1_WORK, this is the user's work partition, basically most user programs and user data should be placed on this drive.
4.2) The second logical drive, 2G, volume label: HDAL2_TMP, this is the temporary file partition, the temporary files saved during system operation and the pagefile.sys of XP will be placed on this partition. Why place this partition here? Everyone can notice that this partition is in the middle position of the hard drive. Generally speaking, the middle position of the hard drive is the place with the fastest data transfer speed. Placing pagefile.sys in this position can improve system performance. Placing temporary files in this partition can effectively reduce the fragments of the system partition, which is also beneficial to improving system performance.
4.3) The third logical drive, the remaining space of the extended partition, should be about 38G, volume label: HDAL3_DATA, this partition is also the user data area. I suggest that in addition to saving the backup of the important data on the first logical drive, it can also store some other large-sized files, such as your music files, movie files, etc. The above is only a principle-based partitioning plan. You can further divide the logical drives in the extended partition, as long as a 2G temporary file partition is reserved in the middle of the hard drive.
The drive letter allocation situation under the above partitioning plan:
When it comes to drive letters and partitions, here we need to correct a misunderstanding of many people. Many people think that the drive letter corresponding to the partition on the hard drive is fixed, which is actually mislead by Microsoft's FDISK. In fact, the drive letter corresponding to each partition on the hard drive is not fixed. Once the partition is determined, it will not be easily changed, but the drive letter corresponding to the partition may change. The following only discusses the possible changes of drive letters in the case of one hard drive, so the drive letter allocation will be more complicated in the case of multiple hard drives. By default, the drive letters of the hard drive start from C, and are allocated in the order of D, E, F, etc. The activated primary partition has the drive letter C:, then the first logical drive, the second logical drive, the third logical drive..., in the order of D:, E:, F:..., then the second primary partition, the third primary partition, the CD drive letter. (Note: This is in the case of one hard drive). Under the above partitioning plan, the drive letters should be allocated as follows (we assume that all partitions are visible in all operating systems, for example, all partitions use the FAT32 file system):
1) Drive C, drive C always corresponds to a primary partition, and this primary partition is activated. For example, if you activate the first primary partition (XP partition), then this partition is drive C. If you activate the second primary partition (98 partition), then the 98 partition becomes drive C. Unless all your primary partitions are invisible, the drive letter C will be assigned to a logical drive. When are primary partitions invisible? There are many situations, for example, your primary partition is in NTFS file system, which is invisible in DOS or 98, or your primary partition is set to hidden state by partitioning software, etc. Here we assume that the XP partition is activated, and the XP partition is drive C.
2) Drive D, fixed corresponding to the first logical partition of the hard drive.
3) Drive E, fixed corresponding to the second logical partition of the hard drive.
4) Drive F, fixed corresponding to the third logical partition of the hard drive.
5) Drive G, corresponding to the unactivated first primary partition, here it is the second primary partition, namely the 98 partition.
6) Drive H, corresponding to the unactivated second primary partition, here it is the third primary partition, namely the SERVICE partition.
7) Drive I, corresponding to your CD drive, assuming you have a CD drive.
If you activate the 98 partition, then the XP partition will become drive G. If you activate the SERVICE partition, then the XP partition becomes drive G, and the 98 partition becomes drive H. In addition, the drive letter of each partition is not unchangeable. In 98, you can use a dedicated software to specify the drive letter corresponding to a certain partition (of course, drive C generally cannot be changed). In 2000/xp/2003, you can directly use the built-in disk manager of the system to change the drive letter of a certain partition. In UNIX (Linux), it simply abandons Microsoft's stupid drive letter allocation method (imagine what Windows should do if your machine has more than 26 partitions), and instead uses a directory tree to manage all partitions. Of course, 2000/xp/2003 now also supports the method of mounting a certain partition on a certain directory.
Too much aside, the partitioning plan is a matter of different people having different views. The above partitioning plan is a plan summarized by me after more than ten years of system maintenance, and it should have a high degree of universality.
II. How to Install the System
After talking about partitioning, it's time to talk about how to install the system. In my partitioning plan, installing the system is very simple. After partitioning, you just need to use any partitioning software to activate a certain primary partition, and then restart to start installing the system. To switch to another system, you just need to activate the corresponding primary partition and restart the system. If you find it too troublesome to manually activate a certain partition, you can install a multi-partition boot management software. Here I recommend using BootStar. Of course, there are many other software, such as BootMagic, Grub, SPFDIS, LiLo under Linux, etc., depending on personal preference. For the detailed method of installing the system, please refer to other articles by yourself.
III. Changing the Default Storage Location of Folders Such as "My Documents" (Finally getting to the key point~~~)
Let's say something aside. Whether a person can use a computer well can be seen from how he organizes his files.
1. We place "My Documents" in the D:\My Documents directory. The change method:
1) Open Windows Explorer, right-click on "My Documents" -> Properties -> Modify the target folder to: D:\My Documents -> OK.
2) By modifying the registry, copy the content between the following horizontal lines (excluding the horizontal lines, the same below) to Notepad, save it as a file named mydoc.reg, and then double-click to import the registry in Windows.
------------------------------------------------------
REGEDIT4
"Personal"="D:\\My Documents"
"My Pictures"="D:\\My Documents\\My Pictures"
"My Music"="D:\\My Documents\\My Music"
------------------------------------------------------
After modification, you can manually move the content in the original My Documents to the new folder. XP will automatically move the files in the original folder to the new folder.
2. Modify "Favorites" to D:\My Documents\Favorites. Save the following content as myfav.reg and double-click to import.
------------------------------------------------------
REGEDIT4
"Favorites"="D:\\My Documents\\Favorites"
------------------------------------------------------
3. Modify the temporary folder to the E: drive.
1) In 98, edit C:\Autoexec.bat and add the following two lines:
set temp=e:\temp
set tmp=e:\temp
Don't forget to create a temp folder on the E: drive. Execute the following command at the DOS prompt:
md e:\temp
Note: No need to modify the registry in 98.
2) In XP/2000/2003, divide it into the user temporary directory (we put it in e:\usertemp) and the system temporary directory (we put it in e:\systemp). The manual modification method is:
My Computer -> Right-click -> Properties -> Advanced -> Environment Variables:
Edit the TEMP and TMP in the user environment variables and modify them to e:\usertemp.
Edit the TEMP and TMP in the system variables and modify them to e:\systemp.
Don't forget to create the corresponding directories on the E: drive. Execute the following commands at the command prompt in xp:
md e:\usertemp
md e:\systemp
Modify through the registry directly. Save the following content as xptemp.reg and double-click to import the registry:
------------------------------------------------------
Windows Registry Editor Version 5.00
"TEMP"="E:\\USERTEMP"
"TMP"="E:\\USERTEMP"
"TEMP"="E:\\SYSTEMP"
"TMP"="E:\\SYSTEMP"
------------------------------------------------------
4. Modify the location of the IE temporary folder, and let it point to the E:\Temporary Internet Files directory. The modification method is the same in 98 and xp.
1) Manual modification: Open IE (taking IE 6.0 sp1 as an example), select "Tools" menu -> "Internet Options" -> General: First click the "Delete Files" button under the Internet temporary folder box, select the "Delete all offline files" option, press OK, then click the "Settings" button under the Internet temporary folder, set the size to 50M (or other values you want), then click "Move Folder" to point to E:\Temporary Internet Files.
2) Registry modification (only for modifying the path, set the size please set manually in IE), please save the following content as IECache.reg and double-click to import:
------------------------------------------------------
REGEDIT4
"Cache"="E:\\Temporary Internet Files"
------------------------------------------------------
5. Modify the default location of pagefile.sys in xp/2k/2003:
1) Manual: My Computer -> Right-click -> Properties -> Advanced -> Performance -> Settings -> Advanced -> Virtual Memory -> Change:
Set the pagefile.sys default set on the C: drive to no paging file, then select the E: drive, custom size: enter the value you want to set in both boxes (the system default is set to 1.5 times the system memory size, I suggest setting it to 2 times the memory, for example, if your memory size is 256M, then set it to 512M, remember to enter this value in both boxes), then click the "Set" button, then press "OK" to exit (the system will prompt to restart, press No, but it will take effect after restarting).
2) The method of modifying the registry, save the following file as xp_page.reg and double-click to import the registry (note that this is a hexadecimal string, set to E:\pagefile.sys, size 512M, if you want to modify, it is recommended to use the above manual method):
------------------------------------------------------
Windows Registry Editor Version 5.00
"PagingFiles"=hex(7):65,00,3a,00,5c,00,70,00,61,00,67,00,65,00,66,00,69,00,\
6c,00,65,00,2e,00,73,00,79,00,73,00,20,00,35,00,31,00,32,00,20,00,35,00,31,\
00,32,00,00,00,00,00
------------------------------------------------------
6. Modify the default storage folder of Outlook Express
There may be not many people using Outlook Express to receive emails. It is more troublesome to modify it using the registry method, so the modification positions in 98 and xp are different. Still use the manual method to modify. Assume that we set the default storage folder of Outlook Express to D:\My Documents\My Mails\Outlook Express. First, manually establish the corresponding directory, then open Outlook Express, "Tools" menu -> Options -> Maintenance -> Storage Folder -> Change -> Point to the directory just established, and press OK to save the settings.
7. Software installation skills:
Among the software we use daily, many software continuously increase data during use. The most typical one is Foxmail, because you are constantly receiving new emails, so the installation directory of Foxmail also stores user data at the same time. For such software, you can install it on the D: drive during installation. For example, you can install Foxmail to the D:\Program Files\Foxmail directory, or you can also install it to the D:\My Documents\My Mails\Foxmail directory. Similar software also includes QQ, FlashGet, LeapFTP, FICQ (basically all instant messaging software), your reporting software, etc. Most of these software are default installed to C:\Program Files, but you should pay attention to modifying the target path during installation.
8. System maintenance skills:
1) Install fewer software, just enough, and don't try out other software you are not familiar with. In addition, when deleting software, please use the uninstall function provided by the software, and don't directly delete the software installation directory.
2) Only install software closely related to the system and with no user data and small size to the system partition, and try to ensure the simplicity of the system partition.
3) Install software that stores user data or large-sized software to the D: drive.
4) Remember to frequently patch the system and upgrade the antivirus software.
5) After installing the system, simply optimize the system (a lot of optimization content has been described earlier). After clearing the garbage files in the system partition, clone the system using cloning software such as Ghost. In this way, you can restore the clone if there is a problem. We specially established a third primary partition for saving the system clone. Of course, you can use a dedicated software to establish a one-key recovery system on it. Since the installation and maintenance of the one-key recovery system are relatively complicated, it will not be described in detail here.
Note: Most of the above settings, especially the settings for modifying the registry, need to take effect after restarting the system. Therefore, please remember to restart the computer in time after modification.
The above basically talks about how to change the default storage location of most user frequently used folders. Through the method of modifying the registry, you can even move your desktop, program menu, etc. to other drives. These settings are mainly in this position of the registry:
Those who are interested can study it by themselves.
偶只喜欢回答那些标题和描述都很清晰的帖子!
如想解决问题,请认真学习“
这个帖子”和“
这个帖子”并努力遵守,如果可能,请告诉更多的人!