Current location - Health Preservation Learning Network - Slimming men and women - Windows 10 Mobile C-Drive User Directory (C-Drive Slimming)
Windows 10 Mobile C-Drive User Directory (C-Drive Slimming)
Because the computer C disk is 128G SSD, the computer space is greatly increased after long-term use. In the worst case, the available space of disk C does not reach 1G, and then various slimming tutorials of disk C are searched online, and finally the available space is restored to 16G, which can no longer be reduced.

Today, I accidentally saw a disk space analysis software called SpaceSniffer on niche software. After analysis, it was found that the user directory of drive C accounted for more than 20 g. Originally, I wanted to slim down the large files one by one, but after checking the function of a large file, it collapsed, and the workload was too heavy, so I had to do it. I wanted to give up, but the available space of 16G was too eye-catching and I had a brainwave. Can I migrate the user directory of drive C as a whole? Soon, Google found a related tutorial on CSDN's blog. The principle is to establish a soft link between the two after moving the directory to another disk. The following are my practical steps and exception handling outside the tutorial:

Because you want to move the Users directory of drive C, no matter which user logs in, some files in this directory will be occupied and cannot be moved, so you need to enter the command line mode of recovery mode to complete the directory migration.

Entry path: System Settings-Update and Security-Restore-Advanced Boot-Restart immediately.

After restarting, select Troubleshooting-Advanced Options-Command Line Mode. After selection, the computer may restart, wait, enter the command line user login interface, enter the user password (click "Continue" without entering the password), and enter the command line mode.

Don't rush to knock on the above three commands, first take a look at the following precautions! ! ! Otherwise don't blame me for falling into the pit and dying! ! !

pay attention to

When performing this step, please type each letter very carefully. Don't press enter after typing. Check it several times. I was so careless. Later, into the pit almost didn't get up. He felt sad and wanted to cry when dealing with the exception.

The first pit: in the command line mode of copy recovery mode, all the drive letters may be inconsistent with the normal system, so be sure to knock one by one to confirm the difference between each drive letter on the command line and the normal system and record it. In short, my normal drive letters are C, D and E, and then I want to migrate the users of drive C to drive D, because my hard disk has a hidden drive (one-button recovery system).

Command line. C = normal. c

Command line. D = Save the hidden disk with one button # That's it, damn it! ! !

Command line. E = normal. d

Command line. F = normal. e

Therefore, the copied command needs to be changed to:

If prompted whether to overwrite, enter a (all).

Next, rename the User directory of drive C to user.

The second pit: soft link. Actually, it's not a pit, it's my carelessness. I forgot to enter the /J parameter, which made it impossible to log in normally. Please enter the following command carefully, and don't forget the /J parameter:

If there are no errors, you can press and hold the shutdown key to force the shutdown.

Log in normally after booting. If you can log in successfully, delete the C-drive user directory, and the C-drive user directory will be slimmed down successfully!

If you cannot log in, you will be prompted "User Profile Service failed to log in". Hey hey, congratulations, you are in into the pit, keep reading!

The user profile service failed to log in because the user could not find the user profile when logging in, so an error was reported.

Reason for failure:

1, mklink links on both sides are wrong.

2.mklink command forgot to accept parameter/j.

Solution:

1. Log in to the interface, press and hold the keyboard shift, click the power button with the mouse, and select Restart. Hold down the shift key until the restart is successful.

2. Select Troubleshooting-Advanced Options-Command Line Mode, and use the following command to delete the first set soft link:

Rmdir C:\ \ user

3. Reset the correct mapping link.

4. Turn it off and then on, enter the login interface, and try to log in successfully. If it is still unsuccessful, continue to the next step.

5. Log in to the interface, hold down the keyboard shift, click the power button with the mouse, and select Restart. Hold down the shift key until the restart is successful;

6. Select Troubleshooting-Advanced Options-Change Startup Behavior-Restart.

The system is restarted again, and the number corresponding to "Start Safe Mode" is entered through the keyboard.

7. If it is the first time to enter the safe mode, you need to wait for the system initialization for a long time.

8. After the initialization is completed,

If the following window pops up, ignore it. If you can click on a certain point to confirm, you can't just click on the black part of the screen. At this time, the interface will darken. Keyboard: Crtl+Alt+Delte, call up task manager, file-run new task -regedit, and confirm.

If you normally enter the safe mode, keyboard: Windows+r, bring up the running dialog box, enter: regedit, and confirm.

9. Registry key: HKEY _ local _ machine \ software \ Microsoft \ Windows NT \ current version \ configuration file list, and finally there are two folders, one with ". Bak "suffix, others don't.

Back up the registry (all) to the local disk, and then select the excluded items. Bak, right click, delete, restart the computer and log in normally.

10, enter drive C and delete the user directory (the original Users directory). At this point, you have completed the task. There are more than 20G files lost in drive C, so it is not necessary to clean them regularly or irregularly like other tutorials. With this method, basically C disk doesn't need to lose weight, and it is undoubtedly pleasant to solve the battle once and for all.

Reference article:

blogs.com/youxin/p/3588722.html

/weixiao43/506699