2019-11-20

LENOVO T410 with Debian Buster and XFCE

1. modify /etc/apt/sources.list : add contrib and non-free
2. install intel wifi driver : firmware-iwlwifi
3. Install nvidia driver : install/run nvidia-detect, install nvidia-legacy-340xx-driver
4. Whenever I lock my screen, it goes full black and does not respond either to moving the cursor or pressing keys from the keyboard.
After searching for a while, I found the solution in the Arch Wiki.
The solution is pretty simple. Just create a text file named 20-intel.conf in the /etc/X11/xorg.conf.d/ directory path (you may have to create directory xorg.conf.d if it does not exist) and paste the following in it:
Section "Device"
        Identifier "Nvidia Card"
        Driver "nvidia"
        VendorName "NVIDIA Corporation"
        BoardName "NVS 3100M"
EndSection
Now save the file and reboot your Debian Xfce system.
Screen black problem after locking the screen in Xfce should be solved by now.
5. How to enable my keyboard's volume keys in XFCE?

  1. Right click a panel -> Panel submenu -> Add New Items...
  2. Add an instance of PulseAudio Plugin
  3. Right click the icon that just appeared in your panel and click "Properties". Make sure "Enable keyboard shortcuts for volume control" is enabled.

You may have to install the PulseAudio Plugin first. In Debian and Debian-based distributions, the package is called xfce4-pulseaudio-plugin.

2019-10-31

LENOVO T410

After installing my Lenovo T410 to Windows 10, Windows 10 can not find the driver for the PCI Serial Port.
VEN_8086&DEV_3B67&SUBSYS_216217AA&REV_06\3&b1bfb68&0&B3

It need "Intel Management Engine Interface 6.2 and Serial Over LAN (SOL) Driver".

2019-10-07

如何啟動 "Acronis TrueImage PE and ISO" in UEFI mode with grub2

source from : [分享] Acronis TrueImage 2019, 2018, 2017, 2016 PE and ISO; Acronis Backup 11.7 PE

I was make new version Acronis True Image 2018, 2017, 2016 PE and ISO
You can boot in UEFI mode with grub2. Use this code in menu

menuentry "Acronis True Image Home 2018 ISO" {
set quiet=1
set gfxpayload=1024x768x32,1024x768
set mbrcrcs=on
set isofile="/iso/ati18cn.iso"
search --set -f $isofile
loopback loop $isofile
linux (loop,msdos1)/dat10.dat lang=zh_CN quiet force_modules=usbhid
initrd (loop,msdos1)/dat11.dat (loop,msdos1)/dat12.dat
boot
}
menuentry "Acronis True Image Home 2018 ISO ElTorito" {
set quiet=1
set gfxpayload=1024x768x32,1024x768
set mbrcrcs=on
set isofile="/iso/ati18cn.iso"
search --set -f $isofile
loopback loop $isofile
echo mount the El Torito floppy image
loopback ElTorito (loop)232+224000
#ls (ElTorito)/
linux (ElTorito)/dat10.dat lang=zh_CN quiet force_modules=usbhid
initrd (ElTorito)/dat11.dat (ElTorito)/dat12.dat
boot
}

menuentry "Acronis True Image Home 2017 ISO" {
set quiet=1
set gfxpayload=1024x768x32,1024x768
set mbrcrcs=on
set isofile="/iso/ati17cn.iso"
search --set -f $isofile
loopback loop $isofile
linux (loop,msdos1)/dat10.dat lang=zh_CN quiet force_modules=usbhid
initrd (loop,msdos1)/dat11.dat (loop,msdos1)/dat12.dat
boot
}
menuentry "Acronis True Image Home 2017 ISO ElTorito" {
set quiet=1
set gfxpayload=1024x768x32,1024x768
set mbrcrcs=on
set isofile="/iso/ati17cn.iso"
search --set -f $isofile
loopback loop $isofile
echo mount the El Torito floppy image
loopback ElTorito (loop)232+208000
#ls (ElTorito)/
linux (ElTorito)/dat10.dat lang=zh_CN quiet force_modules=usbhid
initrd (ElTorito)/dat11.dat (ElTorito)/dat12.dat
boot
}

menuentry "Acronis True Image Home 2016 ISO ElTorito" {
set quiet=1
set gfxpayload=1024x768x32,1024x768
set mbrcrcs=on
set isofile="/iso/ati16.iso"
search --set -f $isofile
loopback loop $isofile
echo mount the El Torito floppy image
loopback ElTorito (loop)232+184000
#ls (ElTorito)/
linux (ElTorito)/dat10.dat lang=13 quiet force_modules=usbhid
initrd (ElTorito)/dat11.dat (ElTorito)/dat12.dat
boot
}

menuentry "Acronis True Image Home 2016 ISO" {
set quiet=1
set gfxpayload=1024x768x32,1024x768
set mbrcrcs=on
set isofile="/iso/ati16.iso"
search --set -f $isofile
loopback loop $isofile
linux (loop,msdos1)/dat10.dat lang=13 quiet force_modules=usbhid
initrd (loop,msdos1)/dat11.dat (loop,msdos1)/dat12.dat
boot
}

menuentry "Acronis True Image Home 2016 - Extract ISO" {
linux /acronis/dat10.dat lang=13 vga=791 mbrcrcs=on quiet force_modules=usbhid
initrd /acronis/dat11.dat /acronis/dat12.dat
boot
}

menuentry "Acronis Disk Director Home 12 ISO ElTorito" {
set quiet=1
set gfxpayload=1024x768x32,1024x768
set mbrcrcs=on
set isofile="/iso/add12.iso"
search --set -f $isofile
loopback loop $isofile
echo mount the El Torito floppy image
loopback ElTorito (loop)220+161792
#ls (ElTorito)/
linux (ElTorito)/dat5.dat quiet
initrd (ElTorito)/dat4.dat
boot
}

menuentry "Acronis Backup Advanced 11.7" {
set quiet=1
set gfxpayload=1024x768x32,1024x768
set mbrcrcs=on
set isofile="/iso/abr11cn.iso"
search --set -f $isofile
loopback loop $isofile
loopback ElTorito (loop)228+368000
#ls (ElTorito)/
linux (ElTorito)/abr64ker.dat product=bootagent media_for_windows quiet
initrd (ElTorito)/abr64ram.dat (ElTorito)/dat8.dat
boot
}

menuentry "Acronis Snap Deploy 5 Standalone Utility" {
set quiet=1
set gfxpayload=1024x768x32,1024x768
set mbrcrcs=on
set isofile="/iso/asd5s.iso"
search --set -f $isofile
loopback loop $isofile
echo mount the El Torito floppy image
loopback ElTorito (loop)208+154000
#ls (ElTorito)/
linux (ElTorito)/dat4.dat quiet
initrd (ElTorito)/dat5.dat
boot
}

menuentry "Acronis Snap Deploy 5 Master Image Creator" {
set quiet=1
set gfxpayload=1024x768x32,1024x768
set mbrcrcs=on
set isofile="/iso/asd5m.iso"
search --set -f $isofile
loopback loop $isofile
echo mount the El Torito floppy image
loopback ElTorito (loop)208+146000
#ls (ElTorito)/
linux (ElTorito)/dat8.dat quiet
initrd (ElTorito)/dat9.dat
boot
}

menuentry "Acronis Snap Deploy 5 Agent" {
set quiet=1
set gfxpayload=1024x768x32,1024x768
set mbrcrcs=on
set isofile="/iso/asd5a.iso"
search --set -f $isofile
loopback loop $isofile
echo mount the El Torito floppy image
loopback ElTorito (loop)208+148000
#ls (ElTorito)/
linux (ElTorito)/dat16.dat quiet
initrd (ElTorito)/dat17.dat
boot
}

=======================================================================
Multi Language code (for version 2017)
- PE : Change value language=en to region code (zh_CN only need zh...)

- ISO: Use region code (can found when change region from acronis website)
Edit file BOOTIA32.XML, BOOTX64.XML;
Arguments=" lang=zh_CN; quiet"

BOOTWIZ.CFG
KERNEL dat10.dat lang=zh_CN force_modules=usbhid quiet

=======================================================================
Multi Language code (for version 2016) (thanks waterchu for ideas)
- PE
REG.exe Add HKLM\Software\Acronis /f /v "language" /T REG_DWORD /D "13"
...............DWORD.............
1-ENGLISH; 11-BRAZIL; 13-CHINESE; 14-CHINESET; 8-CZECH; 6-DUTCH; 27-ESPANA; 2-GERMAN; 25-INDIAN; 15-ITALIAN; 9-JAPAN; 3-KOREAN; 5-POLISH; 19-PORTUGUESE; 0-RUSSIAN; 12-SPANISH; 17-FRENCH

- ISO: Edit file BOOTIA32.XML, BOOTX64.XML;
Arguments=" lang=13; quiet"

BOOTWIZ.CFG
KERNEL dat10.dat lang=13 force_modules=usbhid quiet

If Extract ISO and boot with Grub4dos

title Acronis True Image 2016
find --set-root --ignore-floppies --ignore-cd /acronis/dat10.dat
kernel /acronis/dat10.dat lang=13 vga=791 mbrcrcs=on force_modules=usbhid quiet
initrd /acronis/dat11.dat /acronis/dat12.dat

If try with Recovery Manager (F11), only need extract folder Recovery Manager from original ISO
..........Grub2 (Boot with grub2 can use Recovery Manager)
menuentry "Acronis True Image Home 2016 - F11" {
linux /Recovery\ Manager/kernel64.dat lang=13 vga=791 mbrcrcs=on force_modules=usbhid quiet
initrd /Recovery\ Manager/ramdisk_merged64.dat /Recovery\ Manager/DAT12.DAT
boot
}
....................Grub4dos............
title Acronis True Image Home 2016 - F11
find --set-root --ignore-floppies --ignore-cd /Recovery\ Manager/kernel.dat
kernel /Recovery\ Manager/kernel64.dat lang=13 vga=791 mbrcrcs=on force_modules=usbhid quiet
initrd /Recovery\ Manager/ramdisk_merged64.dat /Recovery\ Manager/DAT12.DAT

========================== ?????????????????????? ==========================
For old acronis version, need replace new driver (Snapapi64.dll only for Acronis True Image 2015, Disk Director 2012x64 - delete old snapapi.dll, copy and rename snapapi64.dll to snapapi.dll)
http://pan.baidu.com/s/1kTD8Jnp

If you try use on real system, try to uninstall driver first. If 64bit, use Fltsrv64. Right Click on snapman_uninstall.inf, fltsrv_uninstall.inf and select Install. Also you can update snapman & Flisrv driver.
http://pan.baidu.com/s/1i3m80rN

First, Right Click on \Uninstall\fltsrv64\fltsrv_update.inf, update snapman & Flisrv driver.
Then, run CMD as administrator, run \ATIH2016_x64\acronis.cmd to install.

Finally, run \ATIH2016_x64\TrueImage.exe successfully.

感覺, 將 Acronis TrueImage 安裝在 Real System 會拖累系統效能, 而且麻煩. 似乎沒有破解的必要
我比較懶, 直接下載 Bootable iso 放到USB 救援工具, 再以 grub2/grub4dos 啟動
至於 bootable iso/PE 檔案產生的方法 : 使用網路上已經安裝並破解成功之後的 Acronis TrueImage, 執行 acronis->TrueImageHome->MediaBuilder.exe 便可取得

2019-10-04

HDD LOW LEVEL FORMAT TOOL 4.40 REPACK (& PORTABLE) BY ELCHUPACABRA

官方網站所提供的免費 LLF Tool, 有執行速度的限制 
==> Free for personal/home use (speed is capped at 180 GB per hour which is 50 MB/s)


1. download HDD LOW LEVEL FORMAT TOOL 4.40 REPACK (and PORTABLE) BY ELCHUPACABRA

2. cd "HDD LOW LEVEL FORMAT TOOL 4.40 REPACK (and PORTABLE) BY ELCHUPACABRA"

3. You will see the following files:
    "HDD Low Level Format Tool 4.40.exe" and 3 *.cmd batch files (can be ignored)

4. double click "HDD Low Level Format Tool 4.40.exe"
5. follow the steps shown below to generate "HDDLLFTool" directory and programs







6. "HDDLLFTool" contain the following files

Run "cmd" as administrator
tree HDDLLFTOOL /A /F

|   HDDLowLevelFormatPortable.exe <--- b="">用此檔案啟動 LLF
|
+---App
|   +---AppInfo
|   |   |   appicon.ico
|   |   |   appicon_128.png
|   |   |   appicon_16.png
|   |   |   appicon_32.png
|   |   |   appicon_75.png
|   |   |   appinfo.ini
|   |   |   EULA.txt
|   |   |
|   |   \---Launcher
|   |           Custom.nsh
|   |           HDDLowLevelFormatPortable.ini ( 名稱必須與 HDDLowLevelFormatPortable.exe 一致)
|   |
|   \---HDDLLF
|           HDDLLF.EXE
|
\---Data
    +---HDDLLF
    |       llftool.4.40.agreement
    |       llftool.license
    |
    \---settings
            HDDLowLevelFormatPortableSettings.ini

2019-10-02

winpe修改制作

指令及重要設定檔 (以 USBOX 4.0/Hiren's BootCD PE x64 為例)
以 7z.exe 打開 64pe.wim & tools.7z

- /boot/pe/64pe.wim/windows/system32/PECMD.exe
- /boot/pe/64pe.wim/windows/system32/PECMD.ini
- /tools/tools.7z/REGDOC.CMD
- /tools/tools.7z/TOOLS.ini
- .../windows/system32/startnet.cmd
- .../windows/system32/winpeshl.ini
- .../windows/system32/wpeinit.exe
- .../windows/system32/Win10PE.cfg ( for Hiren's BootCD PE x64 )

PECMD命令詳解 : part1, part2

2019-09-15

GImageX --- 修改 windows PE 檔 xxx.wim

感覺蠻好用的

Youtube 教學

官網

使用案例

wimlib:一個開源的類似imagex的處理wim神器,(由於imagex最新版識別不了wimboot和esd鏡像,早已經被微軟拋棄)沒有Dism的各種限制支持ESD直接導出為wimboot鏡像或常規壓縮的鏡像。

類似的軟件, 還有 wimtool, 但還是推薦使用 GImageX

2019-09-03

Windows OS 啟動程序

XP : MBR->PBR->ntldr->boot.ini->(ntoskrnl)

Vista/W7/W10 : MBR->PBR->bootmgr->/boot/BCD->winload.exe->(ntoskrnl)
Vista/W7/W10 : UEFI->PBR->bootmgfw.efi->/EFI/microsoft/boot/BCD->winload.efi->(ntoskrnl)

BCD 可透過 bcdedit.exe/EasyBCD/Bootice (建議)/WMI/Visual BCD Editor 修改設定