wiki:jazz/10-08-27

Version 12 (modified by jazz, 14 years ago) (diff)

--

2010-08-27

  • 14:00~15:00 雲端技術展示 - 抓抓龍(Crawlzilla)簡報、展示
  • 15:00~17:00 Crawlzilla 後續發展方向討論 - 開 issue

Storage Virtualization

Netboot.me

  • [緣起] 想要用 USB 拇指碟來安裝 Debian 5.0 (lenny)
  • [作法] 環保一點,所以下載 netboot.me USB Image
    $ wget http://static.netboot.me/gpxe/netbootme.usb
    
  • 接上 USB 拇指碟,透過 /proc/partitions 確認磁碟位置
    $ cat /proc/partitions
    major minor  #blocks  name
    
       8        0  488386584 sda
       8        1  486327296 sda1
       8        2    2057216 sda2
       8       16    1957888 sdb
    
  • 確認在 /dev/sdb 之後就使用 dd 把 USB Image 寫入拇指碟
    $ sudo dd if=netbootme.usb of=/dev/sdb
    
  • [狀況] 找不到網路卡驅動程式 :(

Debian

  • [緣起] 想要用 USB 拇指碟來安裝 Debian 5.0 (lenny)
  • [參考] Debian GNU/Linux 安裝手冊 - 4.4. 準備從 USB 隨身碟開機的檔案,首先嘗試『4.4.1. 複製檔案 — 簡單的方法』
    ~$ sudo su -
    ~# wget http://free.nchc.org.tw/debian/dists/Debian5.0.5/main/installer-amd64/current/images/hd-media/boot.img.gz
    ~# zcat boot.img.gz > /dev/sdb
    ~# mount /dev/sdb /mnt
    ~# cd /mnt
    /mnt# wget http://free.nchc.org.tw/debian-cd/current/amd64/iso-cd/debian-505-amd64-businesscard.iso
    ~# cd
    ~# umount /mnt
    
  • [狀況] 找不到網路卡驅動程式 :(
  • [解法] 安裝 Ubuntu 10.04 LTS 可以正常驅動
    jazz@cloud:~$ lsb_release -a
    No LSB modules are available.
    Distributor ID:	Ubuntu
    Description:	Ubuntu 10.04.1 LTS
    Release:	10.04
    Codename:	lucid
    jazz@cloud:~$ uname -a
    Linux cloud 2.6.32-24-server #41-Ubuntu SMP Thu Aug 19 02:47:08 UTC 2010 x86_64 GNU/Linux
    jazz@cloud:~$ lspci 
    00:00.0 Host bridge: Intel Corporation 4 Series Chipset DRAM Controller (rev 03)
    00:01.0 PCI bridge: Intel Corporation 4 Series Chipset PCI Express Root Port (rev 03)
    00:02.0 VGA compatible controller: Intel Corporation 4 Series Chipset Integrated Graphics Controller (rev 03)
    00:02.1 Display controller: Intel Corporation 4 Series Chipset Integrated Graphics Controller (rev 03)
    00:03.0 Communication controller: Intel Corporation 4 Series Chipset HECI Controller (rev 03)
    00:03.2 IDE interface: Intel Corporation 4 Series Chipset PT IDER Controller (rev 03)
    00:03.3 Serial controller: Intel Corporation 4 Series Chipset Serial KT Controller (rev 03)
    00:19.0 Ethernet controller: Intel Corporation 82567LM-3 Gigabit Network Connection (rev 02)
    00:1a.0 USB Controller: Intel Corporation 82801JD/DO (ICH10 Family) USB UHCI Controller #4 (rev 02)
    00:1a.1 USB Controller: Intel Corporation 82801JD/DO (ICH10 Family) USB UHCI Controller #5 (rev 02)
    00:1a.2 USB Controller: Intel Corporation 82801JD/DO (ICH10 Family) USB UHCI Controller #6 (rev 02)
    00:1a.7 USB Controller: Intel Corporation 82801JD/DO (ICH10 Family) USB2 EHCI Controller #2 (rev 02)
    00:1b.0 Audio device: Intel Corporation 82801JD/DO (ICH10 Family) HD Audio Controller (rev 02)
    00:1c.0 PCI bridge: Intel Corporation 82801JD/DO (ICH10 Family) PCI Express Port 1 (rev 02)
    00:1c.1 PCI bridge: Intel Corporation 82801JD/DO (ICH10 Family) PCI Express Port 2 (rev 02)
    00:1d.0 USB Controller: Intel Corporation 82801JD/DO (ICH10 Family) USB UHCI Controller #1 (rev 02)
    00:1d.1 USB Controller: Intel Corporation 82801JD/DO (ICH10 Family) USB UHCI Controller #2 (rev 02)
    00:1d.2 USB Controller: Intel Corporation 82801JD/DO (ICH10 Family) USB UHCI Controller #3 (rev 02)
    00:1d.7 USB Controller: Intel Corporation 82801JD/DO (ICH10 Family) USB2 EHCI Controller #1 (rev 02)
    00:1e.0 PCI bridge: Intel Corporation 82801 PCI Bridge (rev a2)
    00:1f.0 ISA bridge: Intel Corporation 82801JDO (ICH10DO) LPC Interface Controller (rev 02)
    00:1f.2 IDE interface: Intel Corporation 82801JD/DO (ICH10 Family) 4-port SATA IDE Controller (rev 02)
    00:1f.3 SMBus: Intel Corporation 82801JD/DO (ICH10 Family) SMBus Controller (rev 02)
    00:1f.5 IDE interface: Intel Corporation 82801JD/DO (ICH10 Family) 2-port SATA IDE Controller (rev 02)
    
    從 lspci -n 可以查出 Intel Corporation 82567LM-3 Gigabit 網卡的 Device ID 是 8086:10de 驅動模組為 e1000e
    jazz@cloud:~$ lspci -n
    00:19.0 0200: 8086:10de (rev 02)
    jazz@cloud:~$ modinfo e1000e | grep v00008086d000010DE
    alias:          pci:v00008086d000010DEsv*sd*bc*sc*i*
    
  • 因為『4.4.1. 複製檔案 — 簡單的方法』只能用在 netinst.iso 或 businesscard.iso 兩種容量比較小的,若要使用完整版 ISO 就得改用 4.4.2. 複製檔案 — 靈活的方法
    ~$ sudo cfdisk /dev/sdb      #### 把至少 700MB 的 USB 空間切給 /dev/sdb1
    ~$ sudo mkdosfs /dev/sdb1
    ~$ sudo syslinux /dev/sdb1
    ~$ sudo mount /dev/sdb1 /mnt/
    ~$ cd /mnt/
    /mnt$ sudo wget http://free.nchc.org.tw/debian/dists/Debian5.0.5/main/installer-amd64/current/images/hd-media/vmlinuz
    /mnt$ sudo wget http://free.nchc.org.tw/debian/dists/Debian5.0.5/main/installer-amd64/current/images/hd-media/initrd.gz
    /mnt$ cat > /tmp/syslinux.cfg << EOF
    default vmlinuz
    append initrd=initrd.gz ramdisk_size=12000 root=/dev/rd/0 init=/linuxrc rw
    EOF
    /mnt$ sudo mv /tmp/syslinux.cfg .
    /mnt$ sudo wget http://free.nchc.org.tw/debian-cd/current/amd64/iso-cd/debian-505-amd64-CD-1.iso
    /mnt$ cd ~
    ~$ sudo umount /mnt
    

Attachments (1)

Download all attachments as: .zip