BlueStacks log 對一般使用者沒什麼用,但會一直產生寫到硬碟裡,消耗SSD的寫入次數,
因為找不到關掉的方法,只好把它導到 RamDisk 裡。
junction 是個有趣的功能,可以讓目錄連結到不同的磁碟空間去。
下載 junction
http://technet.microsoft.com/en-us/sysinternals/bb896768.aspx
放到 C:\ProgramData\BlueStacks
從命令提示字元執行以下指令
cd C:\ProgramData\BlueStacks
sc stop BstHdDrv
rmdir /s /q Logs
rmdir /s /q UserData\Logs
junction.exe Logs Z:\TEMP
junction.exe UserData\Logs Z:\TEMP
sc start BstHdDrv
執行範例:
C:\>cd C:\ProgramData\BlueStacks
C:\ProgramData\BlueStacks>sc stop BstHdDrv
SERVICE_NAME: BstHdDrv
TYPE : 1 KERNEL_DRIVER
STATE : 1 STOPPED
WIN32_EXIT_CODE : 0 (0x0)
SERVICE_EXIT_CODE : 0 (0x0)
CHECKPOINT : 0x0
WAIT_HINT : 0x0
C:\ProgramData\BlueStacks>rmdir /s /q Logs
C:\ProgramData\BlueStacks>rmdir /s /q UserData\Logs
C:\ProgramData\BlueStacks>junction.exe Logs Z:\TEMP
Junction v1.06 - Windows junction creator and reparse point viewer
Copyright (C) 2000-2010 Mark Russinovich
Sysinternals - www.sysinternals.com
Created: C:\ProgramData\BlueStacks\Logs
Targetted at: Z:\TEMP
C:\ProgramData\BlueStacks>junction.exe UserData\Logs Z:\TEMP
Junction v1.06 - Windows junction creator and reparse point viewer
Copyright (C) 2000-2010 Mark Russinovich
Sysinternals - www.sysinternals.com
Created: C:\ProgramData\BlueStacks\UserData\Logs
Targetted at: Z:\TEMP
C:\ProgramData\BlueStacks>DIR
C:\ProgramData\BlueStacks 的目錄
2014/07/01 下午 04:42
2014/07/01 下午 04:42
2014/04/22 上午 11:31
2014/02/21 下午 02:44 96,883 InstallTimeGlCheck.txt
2010/09/07 下午 03:39 150,392 junction.exe
2014/02/21 下午 02:44
2014/07/01 下午 04:42
2014/07/01 下午 04:36 0 Move bluestacks logs to ramdisk.txt
2014/07/01 下午 04:42
3 個檔案 247,275 位元組
6 個目錄 40,657,801,216 位元組可用
C:\ProgramData\BlueStacks>sc start BstHdDrv
SERVICE_NAME: BstHdDrv
TYPE : 1 KERNEL_DRIVER
STATE : 4 RUNNING
(STOPPABLE, NOT_PAUSABLE, IGNORES_SHUTDOWN)
WIN32_EXIT_CODE : 0 (0x0)
SERVICE_EXIT_CODE : 0 (0x0)
CHECKPOINT : 0x0
WAIT_HINT : 0x0
PID : 0
FLAGS :
C:\ProgramData\BlueStacks>
No comments:
Post a Comment