|
回复 jacksniper 31# 帖子
此文章由 killkat 原创或转贴,不代表本站立场和观点,版权归 oursteps.com.au 和作者 killkat 所有!转贴必须注明作者、出处和本声明,并保持内容完整
免责声明:use it at your own risk!
我是自己手动精简的,把当时的 install log copy/paste 一下。move user/data folder 可以是 before or after install,我两种都用过。
========SSD tweaks=======
***move user, programdata folders during install***
1.After installing windows 7 you will be greeted with a user creation prompt press shift+f10 and you should get a cmd window.
2.Copy the Users Profiles, Program Files And ProgramData Folders onto the Partition you want to use (didn't need to move Program Files)
robocopy "C:\Users" "D:\Users" /E /COPYALL /XJ
robocopy "C:\Program Files" "D:\Program Files" /E /COPYALL /XJ
robocopy "C:\ProgramData" "D:\ProgramData" /E /COPYALL /XJ
3.Delete the old folders and create links
For Program Files:
rmdir "C:\Program Files" /S /Q
mklink /J "C:\Program Files" "D:\Program Files"
For the User Profiles:
rmdir "C:\users" /S /Q
mklink /J "C:\users" "D:\users"
and lastly ProgramData:
rmdir "C:\ProgramData" /S /Q
mklink /J "C:\ProgramData "D:\ProgramData"
If you have any permissions issues while deleting C:\ProgramData don't worry about them just try to delete it and make the links again after first reboot
4.Now open regedit simply by typing regedit on the cmd window
5. To change the program files path navigate to HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion and edit the ProgramFilesDir and CommonFilesDir as needed
For the user profiles you'll need to go to HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\ProfileList and again edit the paths as needed
6.Exit Regedit and the cmd window
Continue to create your user
Reboot your machine and you should be good to go
*****************
DISABLE PAGEFILE
System Properties > Advanced, turn off for SSD. Set up for 512min/512max on your second platter drive (if present).
NB: Value is just my preference, feel free to experiment. Having no pagefile at all can cause problems with some games.
DISABLE SYSTEM RESTORE
Start Menu > Right-Click Computer > Properties > Advanced System Settings > System Protection Tab > Configure > Turn off system protection
DISABLE HIBERNATION
Type CMD in search, right-click Command Prompt or Cmd.exe, and click Run as Administrator. Type "powercfg.exe -h off"
DISABLE PREFETCH
Hkey_local_machine\SYSTEM\CurrentControlSet \Control\Session Manager\Memory Management\PrefetchParameters
Change Enableprefetcher value from 3 to 0
DISABLE SUPERFETCH
Hkey_local_machine\SYSTEM\CurrentControlSet\Contro l\Session Manager\Memory Management\PrefetchParameters
Change EnableSuperfetch from 3 to 0
DISABLE SUPERFETCH 2 (optional)
In computer management services set service Superfetch to Disable
DISABLE DRIVE INDEXING
In My Computer, in the properties of the SSD drive disable drive indexing (untick the box)
DISABLE WINDOWS SEARCH
In Computer Management > Services set Windows Search to Disable
DISABLE DEFRAG
In Computer Management > Services set Defragment to Disable
MOVE ENVIRONMENT VARIABLES TO PLATTER DRIVE
System Properties > Advanced, move TEMP and TMP to a platter drive
Also move the User TEMP and TMP to a platter drive **don't need to if use "move user data folder" below**
MOVE WEBCACHE FOR MS IE TO PLATTER DRIVE
Open IE > Internet Options > Tools > Internet Options > General Tab > Browsing History. After this has been done you will need to log off and back on again for the cache to be moved
MOVE WEBCACHE FOR FIREFOX TO PLATTER DRIVE
Type about:config into the address bar. Click OK to the warning message. Right click somewhere on the opened age and go to new -> String. Enter browser.cache.disk.parent_directory into the first dialog box and then the location you would like the cache in the second. Restart the browser and then this should now be moved. To check type about:cache into the address bar and all the info about the cache will be displayed
***move user data folder after installation***
1.Enable administrator account and set a password for it.
2.Logoff and login with administrator account
3.Relocate your user data to other non-system partion, make sure you move hidden and system files, too!
for example robocopy c:\users\J d:\users\J /MIR /Copyall /XJ
then rmdir c:\users\J /s /q
if some files can't be deleted, reboot to safe mode then delete
4.Use mklink to create a symbolic link from C:\users\J to D:\users\J
mklink /D C:\Users\J D:\users\J
5.Re-login use your own account,you will find nothing changed,but in fact your physical user data is on drive D.
6.Done.The next time you re-install your OS ,just use the same user name, remove C:\users\J then run the command of step 3 again then your user data is back.
*********
[ 本帖最后由 killkat 于 2011-4-15 16:56 编辑 ] |
评分
-
查看全部评分
|