2011年6月3日金曜日

obs600-02 debootstrap

2011年6月1日に到着したOBS600DはすでにDebian 6.0 squeezeです。これをベースにCFに移してもよさそうですが、すっぴんなDebianをインストールして進めることにします。obs600-01で 別ホストに ramファイルシステムをバックアップしてルートファイル構成したように、同様なユーザランドの解析研究向けにNFSマウント先にdebootstrapを使って、サーバー上にルートファイル構成をしてみます。

(1) 母艦tigerにNFSマウント
root@squeeze:〜# mkdir -p /net/tiger
root@squeeze:〜# mount -t nfs tiger:/dsk/hda11/OBS600 /net/tiger
RPC: Registered tcp transport module.
mount: wrong fs type, bad option, bad superblock on tiger:/dsk/hda11/OBS600,
root@squeeze:〜# ls -l /sbin/mount.nfs
ls: cannot access /sbin/mount.nfs: No such file or directory
root@squeeze:〜# apt-get install nfs-common
root@squeeze:〜# ls -l /sbin/mount.nfs
-rwsr-xr-x 1 root root 97120 Aug 27  2010 /sbin/mount.nfs
root@squeeze:〜# mount -t nfs 192.168.1.50:/dsk/hda11/OBS600 /net/tiger
root@squeeze:〜# 
root@squeeze:〜# cd /net/tiger/Debian/nfs_squeeze/
root@squeeze:/net/tiger/Debian/nfs_squeeze# 
root@squeeze:4.1# set|grep PS1
PS1='${debian_chroot:+($debian_chroot)}¥u@¥h:¥w¥$ '
root@squeeze:/net/tiger/Debian/nfs_squeeze# export PS1='${debian_chroot:+($debian_chroot)}¥u@¥h:¥W¥$ '
root@squeeze:nfs_squeeze# 
(2) debootstrap のインストール
root@squeeze:nfs_squeeze# apt-get install debootstrap
Root@squeeze:nfs_squeeze# ls -l /usr/sbin/debootstrap
-rwxr-xr-x 1 root root 18227 Mar  4 20:53 /usr/sbin/debootstrap
root@squeeze:nfs_squeeze# pwd
/net/tiger/Debian/nfs_squeeze
(3) debootstrap の実行
root@squeeze:nfs_squeeze# date; /usr/sbin/debootstrap --arch powerpc squeeze ./; date
Wed Jun  1 17:04:47 JST 2011
I: Retrieving Release
I: Retrieving Packages
(省略)
I: Configuring apt-utils...
I: Configuring aptitude...
I: Configuring tasksel-data...
I: Configuring tasksel...
I: Base system installed successfully.
Wed Jun  1 17:43:55 JST 2011
root@squeeze:nfs_squeeze# 
root@squeeze:〜# du -sh /net/tiger/Debian/nfs_squeeze
238M    /net/tiger/Debian/nfs_squeeze
root@squeeze:〜# ls -F /net/tiger/Debian/nfs_squeeze
bin/            home/           mnt/            sbin/           tmp/
boot/           lib/            opt/            selinux/        usr/
dev/            lib64/          proc/           srv/            var/
etc/            media/          root/           sys/
(4) 母艦側のNFS設定
root@tiger:Debian# tail -1 /etc/exports         [61] (11-06-01 Wed 16:28:36 PM)
/dsk/hda11/OBS600 192.168.1.0/255.255.255.0(rw,sync,no_subtree_check,no_root_squash)
root@tiger:Debian# exportfs -a  (-r)            [67] (11-06-01 Wed 16:29:17 PM)
root@tiger:Debian# exportfs -v                  [68] (11-06-01 Wed 16:29:20 PM)
/dsk/hda11/OBS600
                192.168.1.0/255.255.255.0(rw,wdelay,no_root_squash,no_subtree_check)
(5) 母艦側から見たnfs_squeeze/
user@tiger:〜% mkdir -p /dsk/hda11/OBS600/Debian/nfs_squeeze
user@tiger:〜% ls -F /dsk/hda11/OBS600/Debian/nfs_squeeze
bin/   dev/  home/  lib64/  mnt/  proc/  sbin/     srv/  tmp/  var/
boot/  etc/  lib/   media/  opt/  root/  selinux/  sys/  usr/
root@tiger:〜# du -sh /dsk/hda11/OBS600/Debian/nfs_squeeze
238M    /dsk/hda11/OBS600/Debian/nfs_squeeze
root@tiger:〜#                                [4] (11-06-01 Wed 18:09:05 PM)
次は、この Debian/nfs_squeeze/ に出来ているルートファイルをCFに移して、CFブートを試みます。
--

0 件のコメント:

コメントを投稿