landisk:~# mount -t ext2 /dev/hda1 /mnt
landisk:~# cd /mnt
landisk:/mnt# tar cvfzp /share/landisk-backup.tgz ./*
すぐ使用するので解凍しておく。
landisk:/mnt# mkdir /share/landisk-backup
landisk:/mnt# cd /share/landisk-backup/
landisk:/share/landisk-backup# tar vxfzp ../landisk-backup.tgz
landisk:~# cd /mnt
landisk:/mnt# tar vxfjp ~/base-sh4-for-landisk-20050515.tar.bz2
旧環境から必要なファイルをコピー
landisk:/mnt# cp -a /share/landisk-backup/boot/* /mnt/boot/
landisk:/mnt# cp -a /share/landisk-backup/lib/modules/* /mnt/lib/modules/
landisk:/mnt# cp -a /share/landisk-backup/sbin/fdisk /mnt/sbin/
landisk:/mnt# cp -a /share/landisk-backup/sbin/lilo-selk /mnt/sbin/
landisk:/mnt# cp -a /share/landisk-backup/etc/lilo-selk.conf /mnt/etc/
landisk:~# cd /etc
landisk:/etc# cp -a hosts hostname resolv.conf hosts.* securetty inittab /mnt/etc/
landisk:/etc# cp -a /etc/network/interfaces /mnt/etc/network/
まぁ、これは趣味ですが、
landisk:/etc# cp -a /etc/profile /mnt/etc/
残りはchroot環境で設定を行う
landisk:/etc# chroot /mnt bash
landisk:/# mount -t proc proc /proc
/etc/fstab
# UNCONFIGURED FSTAB FOR BASE SYSTEM
/dev/hda1 / ext2 defaults 0 0
/dev/hda4 /share reiserfs defaults 0 0
proc /proc proc defaults 0 0
/dev/hda2 swap swap defaults 0 0
/shareの作成
# mkdir /share
タイムゾーンの設定
/etc/default/rcS
UTC=no
Asia/Tokyoを設定
# tzconfig
Your current time zone is set to UTC
Do you want to change that? [n]: y
…省略
Your default time zone is set to 'Asia/Tokyo'.
Local time is now: Sat Apr 9 18:01:07 JST 2005.
Universal Time is now: Sat Apr 9 09:01:07 UTC 2005.
rootパスワードの設定
# passwd
Enter new UNIX password: landisk ← 例です。
Retype new UNIX password: landisk
passwd: password updated successfully