Debian/Install to Laptop PC

書きかけ

CD も FDD も無い laptop PC に Debian GNU/Linux を install 。

母艦上での下拵え

  1. Laptop PC の HDD を取り出し、別の PC(Debian GNU/Linux が install されている machine 。以下、母艦と称す)に接続する。
  2. Partition を切っておく。
  3. 各 partition を format する。
  4. Install files 用の directory を作成。

Partition の切り方

例えば HDD を primary の master で IDE 接続しているのであれば次の通り。

#fdisk /dev/hda~~p で partition table の表示、d で partition の削除。
-/dev/hda1 install 用 files と GRUB 関連の files 。
-/dev/hda2 root directory
-/dev/hda3 swap
-/dev/hda4 home directory

Size の割合は 1:5:1:3 ぐらいで。

Install files の置き場所

#mount /dev/hda1 /mnt
#mkdir -p /mnt/boot/newinst/
#umount /dev/hda1

HDD 上に install 用の files を用意

etch の HDD 用 installer は下記 URI から。

http://www.t.ring.gr.jp/archives/linux/debian/debian/dists/etch/main/installer-i386/current/images/hd-media/

GRUBMBR に install

あらかじめ laptop PC の root directory を mount しておく。

mount /dev/hda2 /mnt

そして GRUBMBR に install する。

grub-install --root-directory=/mnt/ /dev/hda

laptop PC での install

母艦から laptop PC の HDD を取り外し、 laptop PC に取り付ける。

GRUB から installer を起動

電源を入れると GRUB の prompt が立ち上がる。

GRUB> kernel (hd0,0)/newinst/sarge/2.6/vmlinuz root=/dev/ram0  devfs=mount,dall ramdisk_size=12000
GRUB> initrd (hd0,0)/newinst/sarge/2.6/initrd.gz

woody

Network install 用の URI は以下の通り。

http://archive.debian.org/debian-archive

Install 直後の設定

root で login 。まず始めに jfbterm で日本語を表示させるため system に modules を読み込ませる。

#modprobe vga16fb
#modprobe fbcon

そして jfbterm を起動。

#jfbterm -q -c other,EUC-JP,iconv,UTF-8

APT の source list を編集。

#nano /etc/apt/sources.list

 deb http://www.t.ring.gr.jp/pub/linux/debian/debian sarge main contrib non-free~~
 deb http://security.debian.org/ sarge/updates main contrib non-free

#aptitude update && aptitude update
#aptitude

Install する packages は次の通り。

ISA Sound Card

Debian GNU/Linux 3.1(Sarge) を Kernel 2.6 で install したが、 ISA 接続の sound card である Sound Blaster 16(ISA) が自動で認識されなかったので、 alsaconf を使い認識させてみた。

#aptitude install alsa-base alsa-utils
#alsaconf