まずbootnet.img を入手します。それからファイルの種類を調べて 展開して ゆきます。 又 loopback mount 用の ディレクトリ も 作成します。
nyan@nyantarou:~$ cp vine_3-1/bootnet.img .
nyan@nyantarou:~$ mkdir cbdisk
nyan@nyantarou:~$ file bootnet.img
bootnet.img: x86 boot sector, code offset 0x3c, OEM-ID "SYSLINUX", root entries
224, sectors 2880 (volumes <=32 MB) , sectors/FAT 9, serial number 0x4189818f, l
abel: " ", FAT (12 bit)
では マウントして 中身を 見ましょう
nyan@nyantarou:~$ mount -t msdos -o loop bootnet.img cbdisk/
mount: root だけがそれを行なえます
そうですか すいません
nyantarou:~# cd /home/nyan
nyantarou:/home/nyan# mount -t msdos -o loop bootnet.img cbdisk/
nyantarou:/home/nyan# df
Filesystem 1k-blocks Used Available Use% Mounted on
/dev/sdb11 2752480 1985888 624516 77% /
/home/nyan/bootnet.img 1423 1419 5 100% /home/nyan/cbdisk
nyantarou:/home/nyan# cd cbdisk/
nyantarou:/home/nyan/cbdisk# ls -l
total 1419
-rwxr-xr-x 1 root root 1045 Nov 4 10:25 boot.msg*
-rwxr-xr-x 1 root root 653 Feb 11 2002 expert.msg*
-rwxr-xr-x 1 root root 859 Feb 11 2002 general.msg*
-rwxr-xr-x 1 root root 714532 Nov 4 10:30 initrd.img*
-rwxr-xr-x 1 root root 964 Feb 11 2002 kickit.msg*
-r-xr-xr-x 1 root root 8204 Jun 29 2004 ldlinux.sys*
-rwxr-xr-x 1 root root 863 Feb 11 2002 param.msg*
-rwxr-xr-x 1 root root 499 Feb 24 2002 rescue.msg*
-rwxr-xr-x 1 root root 545 Feb 11 2002 snake.msg*
-rwxr-xr-x 1 root root 720 Nov 4 10:30 syslinux.cfg*
-rwxr-xr-x 1 root root 720716 Nov 4 10:30 vmlinuz*
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
initrd.img* を 分解せねばいけね、ほんでもって 抜き出し
nyantarou:/home/nyan/cbdisk# mv initrd.img ../
nyantarou:/home/nyan/cbdisk# cd ../
nyantarou:/home/nyan# umount cbdisk/
initrd.img を 分解 する ように しましょう
nyantarou:/home/nyan# mkdir workdir
nyantarou:/home/nyan# mv initrd.img workdir/
nyantarou:/home/nyan# cd workdir/
nyantarou:/home/nyan/workdir# file initrd.img
initrd.img: gzip compressed data, was "initrd-net.img.nogz", from Unix, max comp
ression
nyantarou:/home/nyan/workdir# ls -l
total 704
-rwxr-xr-x 1 root root 714532 Nov 4 10:30 initrd.img*
nyantarou:/home/nyan/workdir# gzip -dc initrd.img >initrd.ext2
nyantarou:/home/nyan/workdir# mkdir sinitd
nyantarou:/home/nyan/workdir# file initrd.ext2
initrd.ext2: Linux rev 1.0 ext2 filesystem data
nyantarou:/home/nyan/workdir# mount -o loop initrd.ext2 sinitd/
nyantarou:/home/nyan/workdir# df
Filesystem 1k-blocks Used Available Use% Mounted on
/home/nyan/workdir/initrd.ext2
3126 1171 1794 40% /home/nyan/workdir/sinitd
nyantarou:/home/nyan/workdir# cd sinitd/
nyantarou:/home/nyan/workdir/sinitd# ls -l
total 19
lrwxrwxrwx 1 root root 4 Nov 4 10:30 bin -> sbin/
drwxr-xr-x 4 root root 1024 Sep 10 2001 dev/
drwxr-xr-x 3 root root 1024 Jun 27 2004 etc/
lrwxrwxrwx 1 root root 10 Nov 4 10:30 linuxrc -> /sbin/init*
drwxr-xr-x 2 root root 12288 Sep 10 2001 lost+found/
drwxr-xr-x 2 root root 1024 Jun 6 2004 modules/
drwxr-xr-x 2 root root 1024 Sep 10 2001 proc/
drwxr-xr-x 2 root root 1024 Jun 27 2004 sbin/
drwxr-xr-x 2 root root 1024 Sep 10 2001 tmp/
drwxr-xr-x 3 root root 1024 Sep 10 2001 var/
まだまだです
nyantarou:/home/nyan/workdir/sinitd# cd modules/
nyantarou:/home/nyan/workdir/sinitd/modules# ls -l
total 301
-rw-r--r-- 1 root root 1322 Jun 6 2004 module-info
-rw-r--r-- 1 root root 289424 Nov 4 10:11 modules.cgz
-rw-r--r-- 1 root root 157 Nov 4 10:11 modules.dep
-rw-r--r-- 1 root root 12001 Nov 4 10:11 pcitable
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
nyantarou:/home/nyan/workdir/sinitd/modules# mv modules.cgz ../../
nyantarou:/home/nyan/workdir/sinitd/modules# cd ../../
nyantarou:/home/nyan/workdir# file modules.cgz
modules.cgz: gzip compressed data, from Unix, max compression
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
nyantarou:/home/nyan/workdir# gzip -dc modules.cgz >modules.cpio
nyantarou:/home/nyan/workdir# file modules.cpio
modules.cpio: ASCII cpio archive (SVR4 with CRC)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
もう少しです
nyantarou:/home/nyan/workdir# mkdir tmodules
nyantarou:/home/nyan/workdir# cd tmodules/
nyantarou:/home/nyan/workdir/tmodules# cpio -idumv <../modules.cpio
2.4.27-0vl7BOOT/3c59x.o
2.4.27-0vl7BOOT/dmfe.o
2.4.27-0vl7BOOT/e100.o
2.4.27-0vl7BOOT/e1000.o
2.4.27-0vl7BOOT/ne2k-pci.o
2.4.27-0vl7BOOT/pcnet32.o
2.4.27-0vl7BOOT/8139too.o
2.4.27-0vl7BOOT/sis900.o
2.4.27-0vl7BOOT/tg3.o
2.4.27-0vl7BOOT/tulip.o
2.4.27-0vl7BOOT/via-rhine.o
2.4.27-0vl7BOOT/usb-ohci.o
2.4.27-0vl7BOOT/usb-uhci.o
2.4.27-0vl7BOOT/nfs.o
2.4.27-0vl7BOOT/lockd.o
2.4.27-0vl7BOOT/sunrpc.o
2.4.27-0vl7BOOT/8390.o
2.4.27-0vl7BOOT/mii.o
2.4.27-0vl7BOOT/crc32.o
2.4.27-0vl7BOOT/hid.o
1236 blocks
nyantarou:/home/nyan/workdir/tmodules# ls -l
total 4
drwx------ 2 root root 4096 Jan 15 14:03 2.4.27-0vl7BOOT/
これで 最後の筈です
nyantarou:/home/nyan/workdir/tmodules# cd 2.4.27-0vl7BOOT/
nyantarou:/home/nyan/workdir/tmodules/2.4.27-0vl7BOOT# ls -l
total 680
-rw-r--r-- 1 root root 33340 Nov 4 10:10 3c59x.o
-rw-r--r-- 1 root root 19016 Nov 4 10:10 8139too.o
-rw-r--r-- 1 root root 8204 Nov 4 10:10 8390.o
-rw-r--r-- 1 root root 4208 Nov 4 10:10 crc32.o
-rw-r--r-- 1 root root 16940 Nov 4 10:10 dmfe.o
-rw-r--r-- 1 root root 55900 Nov 4 10:10 e100.o
-rw-r--r-- 1 root root 74384 Nov 4 10:10 e1000.o
-rw-r--r-- 1 root root 24388 Nov 4 10:10 hid.o
-rw-r--r-- 1 root root 47284 Nov 4 10:10 lockd.o
-rw-r--r-- 1 root root 4196 Nov 4 10:10 mii.o
-rw-r--r-- 1 root root 7184 Nov 4 10:10 ne2k-pci.o
-rw-r--r-- 1 root root 69572 Nov 4 10:10 nfs.o
-rw-r--r-- 1 root root 21588 Nov 4 10:10 pcnet32.o
-rw-r--r-- 1 root root 15928 Nov 4 10:10 sis900.o
-rw-r--r-- 1 root root 60748 Nov 4 10:10 sunrpc.o
-rw-r--r-- 1 root root 56692 Nov 4 10:10 tg3.o
-rw-r--r-- 1 root root 45572 Nov 4 10:10 tulip.o
-rw-r--r-- 1 root root 20552 Nov 4 10:10 usb-ohci.o
-rw-r--r-- 1 root root 27132 Nov 4 10:10 usb-uhci.o
-rw-r--r-- 1 root root 16724 Nov 4 10:10 via-rhine.o
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
nyantarou:/home/nyan/workdir/tmodules/2.4.27-0vl7BOOT# cd ../../
nyantarou:/home/nyan/workdir# umount sinitd/
現状を 確認しましょう
nyantarou:/home/nyan/workdir# ls -l
total 4864
-rw-r--r-- 1 root root 3309568 Jan 14 22:10 initrd.ext2
-rwxr-xr-x 1 root root 714532 Nov 4 10:30 initrd.img*
-rw-r--r-- 1 root root 289424 Nov 4 10:11 modules.cgz
-rw-r--r-- 1 root root 632832 Jan 15 13:55 modules.cpio
-rw-r--r-- 1 root root 1588 Jan 15 14:00 modules.listing
drwxr-xr-x 2 root root 4096 Jan 14 22:11 sinitd/
drwxr-xr-x 3 root root 4096 Jan 15 14:03 tmodules/
纏めとして module は
3c59x.o ; 8139too.o ; 8390.o ; crc32.o ; dmfe.o ;e100.o ;
e1000.o ; hid.o ; lockd.o ;mii.o ;ne2k-pci.o ;nfs.o ;
pcnet32.o ;sis900.o ;sunrpc.o ;tg3.o ;tulip.o ;usb-ohci.o ;
usb-uhci.o ;via-rhine.o
が あるのが わかりました。