Linux, 工作, 生活, 家人

Linux, Software, Ubuntu

Thinkpad T420s 安裝 4 套 OS (Windows7 32bit/Windows7 64bit/Windows XP/Ubuntu Linux)

Thinkpad T420s 太好用了, 所以我在公司又採買了三台, 用做測試機用.
畢竟 50K 以下這一台的 C/P 值非常的高.

因為是測試機, 所以必需要裝很多 OS. 而這些 OS 要是可以復原的.
以現在測試 Wifi performance 而言, 大多都要求用 Intel Ultimate 6300N 3×3 wifi 測試, 以求公平. 而這樣的環境用 VM 是沒有人承認這個數據的, 所以… 在一台電腦內要安裝多套 OS 就是必需的, 不同的狀況客戶會要求不同的 OS. 例如 NAS Performance 就要 Windows 7.

所以接下來就是要在 T420s 安裝以下 OS

  • Windows 7 32bit
  • Windows 7 64bit
  • Windows XP
  • Ubuntu Linux 11.04


這份文件是我的筆記. 非常簡略.

1. 事前準備
1.1 Windows 7 32Bits Installer
1.2 Windows 7 64Bits Installer
1.3 Windows XP
1.4 Ubuntu Linux 11.04
1.5 先用 Linux 開機切
P1: 50G NTFS
P2: 50G NTFS
P3: 50G NTFS
L5: 20G NTFS (Option)*
L6: 110G ext4
L7: 5G swap
1.6 Intel Pro/1000 32bit/64Bit Driver.
note: 先保留原設定 Linux Partition, 等到灌完 XP, Win7 64, Win 7 32 bit, 灌完以後, 再改為 NTFS. 這樣 DISK 順序就不會亂掉.

2. 安裝 Windows XP
2.1 用 nLite 製作 WinXP SP3 + AHCI (Intel Rapid Disk Driver) (順手寫入 Serial Number)
2.2 Install 安裝 Windows XP
2.3 Install Intel PRO/1000 Driver
2.4 Install .net 2.0 framwork
2.5 Install Thinkpad system update 3.14
2.6 Install Intel HD Graph Driver
2.7 換 Waller paper
2.8 無止盡的 Update
Windows XP Update 比較麻煩, 無法自己檢查, 可以參考這一篇, 然後執行 wsusupdate.vbs 去抓最新的 Update
http://forums.techarena.in/windows-update/817572.htm
* XP 不支援 Nvidia NVS

3. 安裝 Windows 7 64Bit.
3.1 安裝 Windows 7 64Bit
3.2 安裝 Thinkpad Intel Gigabit network 64bit driver
3.3 安裝 Thinkpad system update 4
3.4 改開機名稱
用 administrator 跑 cmd.exe , 下指令
# bcedit /set {current} description “Windows 7 64Bit”
3.6 Install Firefox
3.7 WinLoader(?)
3.8 無止盡的 Update .
3.9 換 Waller paper

4. 安裝 Windows 7 64Bit.
4.1 安裝 Windows 7
4.2 安裝 Thinkpad system update 4
4.3 改開機名稱並且修改開機順序
用 administrator 跑 cmd.exe , 下指令
# bcedit /set {ntldr} description “Windows XP”
# bcdedit /displayorder {current} /addfirst
4.4 WinLoader(?)
4.5 Install Firefox
4.6 無止盡的 Update .
4.7 換 Waller paper

5. 安裝 Ubuntu 11.04
5.1 Install ubuntu 11.04
5.2 Change default GUI to ubuntu classic
5.3 Install partclone
5.4 修改開機順序
# cd /etc/grub.d/
# mv 30_os-prober 09_os-prober
edit 40_customer 加上 timeout=1
# update-grub2

6. Backup Windows Partition
6.1 不壓縮備份
# partclone.ntfs -c -d -s /dev/sda1 -o win7-x86.img
# partclone.ntfs -c -d -s /dev/sda2 -o win7-x64.img
# partclone.ntfs -c -d -s /dev/sda3 -o win-xp.img

6.2 bzip2 壓縮備份
# partclone.ntfs -c -s /dev/sda1 | bzip2 -c > win7-x86.img.bz2
# partclone.ntfs -c -s /dev/sda2 | bzip2 -c > win7-x64.img.bz2
# partclone.ntfs -c -s /dev/sda3 | bzip2 -c > win-xp.img.bz2

6.3 不壓縮 Restore Windows Partition
# partclone.ntfs -r -d -s ./first/win7-x64.img -o /dev/sda2
6.4 壓縮 Restore Windows Partition
# cat 1.sh
FILE=win7-x64.img.bz2
PART=/dev/sda2
bzip2 -d -c $FILE | partclone.ntfs -r -o $FILE
* Note: 不知道要用 bzip2 好還是 gzip 好. 空間和時間的 Trade off.

後記:
1) Windows 7 沒有 SP1 真的很麻煩… 要一直裝一直裝.
2) T420s 的硬碟很熱, 相較之下, 我的 mSATA + HDD 沒有這麼熱
3) Download Package 要花很久時間, ubuntu 可以邊下載邊 Update 很不錯.

ref.
http://partclone.org : Partclone
http://www.windows7home.net/how-to-use-bcdedit-in-windows-7/ :bcdedit sample
How to use BSDEDIT
http://www.sevenforums.com/tutorials/2676-bcdedit-how-use.html
Thinkpad Ethernet Driver 64bit/32bit
http://support.lenovo.com/en_US/downloads/detail.page?LegacyDocID=MIGR-77016

3 留言

  1. Zhu Jiang

    你这次带过来用的就是T420s么? 😆

  2. 文章作者的留言

    是的~ 不過這一台有裝一個 mSATA, 我比較沒錢, 用個 SSD 的替代方案不錯.

  3. 蘇乙峰

    版主,小弟不才近日才買與你一樣的筆電,也想裝雙系統WIN 7與XP,但用 nLite 製作 WinXP SP3 + AHCI (Intel Rapid Disk Driver)一直失敗,不知可不可以向版主借WIN XP的安裝光碟來使用
    或是請版主開釋如何一步步進行雙系統的安裝

發佈留言