Thursday, January 24, 2008

修改及重新製作 Ubuntu 安裝光碟的 iso 檔

Ubuntu 提供3個版本的安裝光碟 - desktop, server, alternative
可是有時候我們想客製化特殊的安裝光碟,就需要重新製作 iso 檔

要客製化安裝光碟的 iso 檔,大概需要3個步驟︰(假設使用 ubuntu-7.10-alternate-i386.iso)
1. 將原 iso 檔內的光碟內容複製到系統中
mkdir -p ~/ubuntu
mkdir -p ~/cd-image
sudo mount -o loop path-to/ubuntu-7.10-alternate-i386.iso ~/cd-image
cp -rT ~/ubuntu ~/cd-image
sudo umount ~/ubuntu
2. 修改光碟內容

範例︰修改 kernel 參數,使安裝一開始跳過選擇語言及鍵盤的畫面,並直接選擇繁體中文及US的鍵盤型態

(1)開啟 isolinux.cfg 檔
sudo gedit ~/cd-image/isolinux/isolinux.cfg
(2)找到 LABEL install 這個區段
append file=/cdrom/preseed/ubuntu.seed initrd=/install/initrd.gz quiet --

append file=/cdrom/preseed/ubuntu.seed debian-installer/locale=zh_TW kbd-chooser/method=us console-setup/layoutcode=us initrd=/install/initrd.gz quiet --

3. 將修改後的內容重新製作成可開機的光碟

執行以下的 mkisofs 指令︰
mkisofs -r -V "Custom Ubuntu Install CD" \
-cache-inodes \
-J -l -b isolinux/isolinux.bin \
-c isolinux/ -no-emul-boot \
-boot-load-size 4 -boot-info-table \
-o ~/custom.iso ~/cd-image/

1 comment:

g2x7t0f02h said...

Such a device is a stable body with interchangeable cutter inserts. The function of the face mill is to make flat sections on the workpiece. It is similar to the end mill nut that has serrated tooth supposed to remove large sections of material with less precision. It is Compression Stockings for Women the part that exactly and firmly holds the end mill in place.