R.A. Epigonos et al.

[debian] netbootイメージでメモリの少ないマシンにインストール

とりあえずメモ。64MBのマシン(FMV-640NU5C/W)にdebian-installerのnetbootイメージでインストールしようとしたら、メモリが足りないと言われて、そのまま先に進んだら、インストールが先に進まなくなったので、解決策を探す。lowmem=2などのオプションを渡す、スワップ領域を大きめに確保しておく。そのくらいかな。実際の作業はまだ。

[!!] Low memory

Insufficient memory
This system does not have enough memory to be supported by this
program. At least 79 megabytes of memory are required. If you
continue, unpredictable and broken behavior will likely result. You
should reboot now and add memory or find some other program to use

<Continne>
[!] Detect network hardware

Some of your hardware needs non-free firmware files to operate. The
firmware can be loaded from removable media, such as a USB stick or
floopy.

The missing firmware files are: e100/d101m_ucode.bin

If you have such media available now, insert it, and continue.

Load missing fiemware from removable media?

<Yes> <No>

USBメモリをfatでフォーマット、firmwareをダウンロードしてfirmwareディレクトリに展開。このUSBメモリを刺して起動。

# mkfs.vfat -v -c -F 32 /dev/sdb1
# mount /dev/sdb1 /mnt
# cd /mnt
# wget 'http://cdimage.debian.org/cdimage/unofficial/non-free/firmware/stable/current/firmware.tar.gz'
# mkdir firmware
# cd firmware
# tar zxf ../firmware.tar.gz
# cd
# umount /mnt

swap ファイルを作る場合

# mount /dev/sda1 /mnt
# dd if=/dev/zero of=/mnt/swap0 bs=1024 count=100K
102400+0 records in
102400+0 records out
# chmod 600 /mnt/swap0
# mkswap /mnt/swap0 102400
# swapon /mnt/swap0
# cat /proc/swaps

swap ディスクを作る場合

# fdisk /dev/sdb1
# mkswap /dev/sdb1
# swapon /dev/sdb1
# cat /proc/swaps

Download installer components

ata-modules
cfdisk-udeb
ext3-modules
event-module
pcmcia-storage-modules
loop-modules
pata-modules
partman-auto
partman-ext3
sata-modules
scsi-common-modules
scsi-extra-modules
mbr-udeb
udf-modules
scsi-modules

alt+F2でコンソール。

# swapon /dev/sda5
# /usr/bin/udpkg -i ata-modules-3.2.0-4-486-di_3.2.51-1_i386.udeb
# /usr/bin/udpkg -i sata-modules-3.2.0-4-486-di_3.2.51-1_i386.udeb
# ls /lib/modules/*/kernel/drivers/

他のLinuxシステムからインストールする方針だと、debootstrap,ar,wget,perl (debootstrapで/usr/lib/debootstrap/pkgdetailsを生成)が必要。

menuentry "New Install" {
        set root='(hd0,msdos1)'
#        linux /newinstall/netboot/linux BOOT_DEBUG=2 lowmem=2 anna/choose_modules=ata-modules-3.2.0-4-486-di screen=800x600 vga=normal fb=false vga=788
        linux /newinstall/netboot/linux BOOT_DEBUG=2 priority=low modules=ata-modules-3.2.0-4-486-di modules=pata-modules-3.2.0-4-486-di vga=788
        initrd /newinstall/netboot/initrd.gz
}
ata-modules-3.2.0-4-486-di
pata-modules-3.2.0-4-486-di
sata-modules-3.2.0-4-486-di
scsi-common-modules-3.2.0-4-486-di
scsi-extra-modules-3.2.0-4-486-di
scsi-modules-3.2.0-4-486-di

netinst CDを使ってインストーラを起動

インストールプロセスの最初の方にswaponしておく(メモリ不足で先に進めなくなるので)。インストール作業はいつもと同じ。networkデバイスをうまく見つけてくれない。初回起動後に以下のコマンドを実行

# dpkg -i /path/to/firmware-linux-nonfree_0.36+wheezy.1_all.deb

その後ネットワークインターフェイスの設定など。

# cat << EOF >> /etc/network/interfaces
auto eth0
allow-hotplug eth0
iface eth0 inet dhcp
EOF
# ifup eth0

dhcpサーバが動いていない場合は

# echo nameserver 8.8.8.8 >> /etc/resolv.conf
# cat << EOF >> /etc/network/interfaces
auto eth0
allow-hotplug eth0
iface eth0 inet static
        address 192.168.11.2
        netmask 255.255.255.248
EOF
# route add default gw 192.168.11.1
# ifup eth0

aptリポジトリの設定。

# cat << EOF >> /etc/apt/sources.list
deb http://ftp.debian.org/debian/ wheezy main contrib non-free
deb-src http://ftp.debian.org/debian/ wheezy main contrib non-free

deb http://security.debian.org/ wheezy/updates main contrib non-free
deb-src http://security.debian.org/ wheezy/updates main contrib non-free
# apt-get update

sshサーバのインストール

# apt-get install openssh-server

GRUBとコンソールの解像度を変更

# cat << EOF >> /etc/default/grub
GRUB_GFXMODE=800x600
GRUB_GFXPAYLOAD_LINUX=keep
EOF
# update-grub

ハードディスクからインストーラを起動

netbootやhd-mediaイメージを使う方法がある。

リファレンス

  1. 6.3. Using Individual Components
  2. 5.3. Boot Parameters
  3. 3.4. 必要な最低限のハードウェア
  4. debian netboot lowmem - Google 検索
  5. debian-installer netboot low memory swap - Google 検索
  6. Debian Installer internals
  7. Index of /cdimage/release/current/i386/list-cd
  8. Index of /cdimage/release/current/i386/iso-cd
  9. Linux関連情報 > 富士通パソコンの搭載チップ情報(FMV-LIFEBOOKシリーズ) -FMWORLD(法人):富士通
  10. FMV-6500NA5/B, 6450NU5/L, 643NU5C/L, 643NU5C/X, 640NU5C/W, 640NU5C/Y, 6333NS4/X, 6400MF5/X, 640MF5C/W, 640MC5C/W本体仕様一覧 -FMWORLD(法人):富士通
  11. Debian -- wheezy の firmware-linux-nonfree パッケージに関する詳細
  12. Index of /cdimage/unofficial/non-free/cd-including-firmware
  13. 6.4. 見つからないファームウェアの読み込み
  14. DebianInstaller/NetbootFirmware - Debian Wiki
  15. A little script to generate a debian netboot image and automatically integrate the latest firmware bundle. Requires pax (apt-get install pax) and a working PEX setup. Change the variable BOOTDIR to suit your needs. Still in development, would recommend double checking to make sure it won't do anything harmful to your setup.
  16. DebianInstaller/Modify/CustomKernel - Debian Wiki
  17. GNU/Linux Debian user questions
  18. Debian Squeeze PXE Netboot For VirtualBox | Embedded Systems Developer Notes
  19. debian installer udpkg - Google 検索
  20. http://h50146.www5.hp.com/products/servers/proliant/whitepaper/pdfs/611004-191-j.pdf
  21. Stupid d-i tricks
  22. dmraidを使用したRAID設定 — Sugio Laboratory
  23. ICH7のRAID1にdmraidを使ってDebianをインストールする手順 - ワインと将棋とインターネット
  24. #373097 - file-preseed: file preseeding can't be used for anna/choose_modules - Debian Bug report logs
  25. Bug #1243375 “13.10 Server installer doesn't load driver-injecti...” : Bugs : “hw-detect” package : Ubuntu
  26. FoundationsTeam/Specs/KarmicCloudInstaller - Ubuntu Wiki
  27. Problems with syslinux when remastering ubuntu install CD. | syslinux | users
  28. sparc64-installer - Ubuntu Wiki
  29. debianforum.de • Thema anzeigen - automatische Installation mit komplexer Partionierung
  30. [Bug 480125] Re: karmic cloud install fails at autodiscovery: wants both worlds (eucalyptus/root users) - Nick Moffitt - com.ubuntu.lists.ubuntu-server-bugs - MarkMail
  31. [syslinux] Problems with syslinux when remastering ubuntu install CD.
  32. Debian/Installer - Qi-Hardware
  33. Clonezilla-SysRescCD - Documentation: Boot parameters
  34. DebianInstaller/Build - Debian Wiki
  35. 2.5. Memory and Disk Space Requirements

ソーシャルブックマーク

  1. はてなブックマーク
  2. Google Bookmarks
  3. del.icio.us

ChangeLog

  1. Posted: 2010-09-05T15:17:44+09:00
  2. Modified: 2010-09-05T15:17:44+09:00
  3. Generated: 2023-08-27T23:09:16+09:00