boot.img
mount /dev/sda2 /mnt/sda2↵
cd /mnt↵
mkdir loopback↵
mount -o loop /mnt/sda2/master/KNOPPIX/KNOPPIX/boot.img /mnt/loopback↵ # loopback デバイスを使って boot.img イメージファイルをマウントする
cd /mnt/loopback;ls↵
boot.msg f2 german.kbd ldlinux.sys logo.16 miniroot.gz syslinux.cfg vmlinuz # boot.img のファイルの中身
file -kz boot.msg f2 german.kbd ldlinux.sys logo.16 miniroot.gz syslinux.cfg vmlinuz↵ # ファイルの属性を調べる
boot.msg: data # プートスクリーン画像の直下に現れる短いメッセージ(xterm -fn fkp -e vi boot.msg で表示)
f2: data # bootでF2 key を押すと現れる詳細設定画面のメッセージ(xterm -fn fkp -e vi f2 で表示)
german.kbd: raw G3 data, byte-padded # キーボードをドイツ語表示可能にする
ldlinux.sys: data # See the references below
logo.16: data # ブートスクリーン画像 lss16 format image(lss16toppm<logo16>logo.ppmで変換後 gimp logo.ppmで表示)
miniroot.gz: Linux rev 1.0 ext2 filesystem data (gzip compressed data, was "miniroot", from Unix, max compression)
syslinux.cfg: ASCII text, with very long lines # See the references below
vmlinuz: Linux kernel x86 boot executable bzImage, version 2.4.22-xfs (root@Knoppix) #1 SM, RO-rootFS, root_dev=0x101, Normal VGA # See the references below
_______________________________________________________
miniroot.gz
file -z miniroot.gz↵
miniroot.gz: Linux rev 1.0 ext2 filesystem data (gzip compressed data, was "miniroot", from Unix, max compression)
gunzip -c miniroot.gz>miniroot.img↵
mkdir /mnt/miniroot↵
mount -o loop miniroot.img /mnt/miniroot↵
cd /mnt/miniroot;ls↵
KNOPPIX bin boot cdrom dev etc lib linuxrc mnt modules opt proc sbin static tmp usr
file -k KNOPPIX bin boot cdrom dev etc lib linuxrc mnt modules opt proc sbin static tmp usr↵
KNOPPIX: directory
bin: symbolic link to `/KNOPPIX/bin'
boot: symbolic link to `/KNOPPIX/boot'
cdrom: directory
dev: directory
etc: directory
lib: symbolic link to `/KNOPPIX/lib'
linuxrc: a /static/sh script text executable
mnt: directory
modules: directory
opt: symbolic link to `/KNOPPIX/opt'
proc: directory
sbin: symbolic link to `/KNOPPIX/sbin'
static: directory
tmp: symbolic link to `/var/tmp'
usr: symbolic link to `/KNOPPIX/usr'
_______________________________________________________
linuxrc
・CD-Rに代えてUSB(?)-GBクラス半導体メモリ(次世代)の利用のためにはここを修正することになろう
less linuxrc↵
#!/static/sh
#
# KNOPPIX General Startup Script
# (C) Klaus Knopper &knoppix@knopper.net>
#
#
# This script needs some of the builtin ash commands (if, test, ...)
# mount/umount, insmod/rmmod are also a builtin in ash-knoppix.
#
# hardcoded configurable options
# Default maximum size of dynamic ramdisk in kilobytes
RAMSIZE=1000000
# End of options
# Don't allow interrupt signals
trap "" 1 2 3 15
# "Safe" SCSI modules in the right order for autoprobe
# Warning: The sym53c8xx.o and g_NCR* cause a kernel Oops if no such adapter
# is present.
#
# NB: It looks like that ncr53c8xx.o is more stable than 53c7,8xx.o for
以下省略
_______________________________________________________
References
・Must-read paper by Klaus Knopper:http://www.knopper.net/knoppix/knoppix-als2000-paper.pdf
・KnoppixBootingFAQ:http://www.knoppix.net/docs/index.php/KnoppixBootingFAQ
・Please Answer These ...:http://mailman.linuxtag.org/pipermail/debian-knoppix/2004-January/004408.html
・Knoppix gives bootable, one-disk Linux: http://www-106.ibm.com/developerworks/linux/library/l-knopp.html