9/9 wtf, kernel panic

人工知能も大好きという程ではないため、やり過ぎると飽きてしまうことがわかってきた。

私は本当に何に適性があるのか全くわからない。
他人から見て明らかなら是非教えて欲しいくらいだ。



明日は確かプロジェクトの方の集まりがある。
当然のようにリーグ戦はないだろう。

実は私は時々先生に伝えている。お願いだからやる気のある人を入れてくれるようにと。
そうすれば私は安心して手を引ける。

勿論今の時点で十分…かどうかはわからないながら相当手を引いているのだが、プロジェクト内のこの学年のトップには違いない。

――

LinuxのLive CDを作った。
aufsで仮想的に書き込み可能なファイルシステムに出来る。これは何かと都合が良いので以前から使ってきた。
今回、これまでに作ったLive DVDのサイズが大きいことを嫌ってサイズの減少を試みることにした。
どうやらSquashFSを使うと圧縮ファイルシステムを使えてサイズを激減出来るようなので今回はそれも使うことにした。
以下試しに英語でも少し記してみる。誰かがコメントをくれる日が来ることを信じて…。

Today I have tried to make a live-linux cd.

Since aufs seems to be used to make the cd’s filesystem writable(virtual), I have applied it.
This time I want to reduce the size of disk, so I am going to use SquashFS for the first time.
Then I found neat scripts called “Linux Live Scripts”.

This time I use minimal system of Debian lenny with kernel 2.6.26-2-686.

First, we need modules of aufs and squashfs.

apt-getでまずmoduleを入れる。

# apt-get install aufs-modules-2.6.26-2-686
# apt-get install squashfs-modules-2.6.26-2-686

Then, modules are must be in /lib/modules/2.6.26-2-686/kernel/fs/, I think.

確かfs内にaufs、squashfsが入ってないと怒られた気がする。

# cd /lib/modules/2.6.26-2-686/kernel/fs/
# cp -R ../../extra/* .

Let’s get live-linux scripts.

# cd /tmp/
# wget ftp://ftp.slax.org/Linux-Live/linux-live-6.3.0.tar.gz
# tar xvzf linux-live-6.3.0.tar.gz
# cd linux-live-6.3.0

I have no other idea to do in advance.

もしかしたらまだやるべきことがあるのかも知れない…。

# ./build
Changing current directory to /tmp/linux-live-6.3.0
Name of your live distro [hit enter for mylinux]:
Linux Live scripts were installed successfuly in /
Enter path for the kernel you’d like to use [hit enter for /boot/vmlinuz]: /boot/vmlinuz-2.6.26-2-686
Creating LiveCD from your Linux
some debug information can be found in /tmp/linux-live-debug.log
copying cd-root to /tmp/live_data_3098, using kernel from /boot/vmlinuz-2.6.26-2-686
creating initrd image…
Using kernel modules from /lib/modules/2.6.26-2-686
.//lib/modules/2.6.26-2-686/kernel/fs/aufs
.//lib/modules/2.6.26-2-686/kernel/fs/squashfs
.//lib/modules/2.6.26-2-686/kernel/lib/zlib_inflate
.//lib/modules/2.6.26-2-686/kernel/lib/zlib_deflate
.//lib/modules/2.6.26-2-686/kernel/drivers/block/loop.ko
.//lib/modules/2.6.26-2-686/kernel/fs/fuse/fuse.ko
.//lib/modules/2.6.26-2-686/kernel/fs/isofs
.//lib/modules/2.6.26-2-686/kernel/fs/fat
.//lib/modules/2.6.26-2-686/kernel/fs/vfat
.//lib/modules/2.6.26-2-686/kernel/fs/ntfs
.//lib/modules/2.6.26-2-686/kernel/fs/ext3
.//lib/modules/2.6.26-2-686/kernel/fs/reiserfs
.//lib/modules/2.6.26-2-686/kernel/fs/xfs
.//lib/modules/2.6.26-2-686/kernel/fs/nls
.//lib/modules/2.6.26-2-686/kernel/drivers/usb/storage
.//lib/modules/2.6.26-2-686/kernel/drivers/usb/host/ehci-hcd.ko
.//lib/modules/2.6.26-2-686/kernel/drivers/usb/host/ohci-hcd.ko
.//lib/modules/2.6.26-2-686/kernel/drivers/usb/host/uhci-hcd.ko
.//lib/modules/2.6.26-2-686/kernel/drivers/cdrom
.//lib/modules/2.6.26-2-686/kernel/drivers/ide
.//lib/modules/2.6.26-2-686/kernel/drivers/pcmcia/pcmcia_core.ko
.//lib/modules/2.6.26-2-686/kernel/drivers/pcmcia/pcmcia.ko
.//lib/modules/2.6.26-2-686/kernel/drivers/pcmcia/rsrc_nonstatic.ko
.//lib/modules/2.6.26-2-686/kernel/drivers/pcmcia/yenta_socket.ko
.///lib/modules/2.6.26-2-686/kernel/drivers/net/3c59x.ko
.///lib/modules/2.6.26-2-686/kernel/drivers/net/mii.ko
.///lib/modules/2.6.26-2-686/kernel/drivers/net/acenic.ko
.///lib/modules/2.6.26-2-686/kernel/drivers/base/firmware_class.ko
.///lib/modules/2.6.26-2-686/kernel/drivers/net/atlx/atl1.ko
.///lib/modules/2.6.26-2-686/kernel/drivers/net/mii.ko
.///lib/modules/2.6.26-2-686/kernel/drivers/net/b44.ko
.///lib/modules/2.6.26-2-686/kernel/drivers/ssb/ssb.ko
.///lib/modules/2.6.26-2-686/kernel/drivers/pcmcia/pcmcia.ko
.///lib/modules/2.6.26-2-686/kernel/drivers/pcmcia/pcmcia_core.ko
.///lib/modules/2.6.26-2-686/kernel/drivers/base/firmware_class.ko
.///lib/modules/2.6.26-2-686/kernel/drivers/net/mii.ko
.///lib/modules/2.6.26-2-686/kernel/drivers/net/bnx2.ko
.///lib/modules/2.6.26-2-686/kernel/drivers/base/firmware_class.ko
.///lib/modules/2.6.26-2-686/kernel/drivers/net/tulip/de4x5.ko
.///lib/modules/2.6.26-2-686/kernel/drivers/net/e100.ko
.///lib/modules/2.6.26-2-686/kernel/drivers/net/mii.ko
.///lib/modules/2.6.26-2-686/kernel/drivers/net/eepro100.ko
.///lib/modules/2.6.26-2-686/kernel/drivers/net/mii.ko
.///lib/modules/2.6.26-2-686/kernel/drivers/net/e1000/e1000.ko
.///lib/modules/2.6.26-2-686/kernel/drivers/net/epic100.ko
.///lib/modules/2.6.26-2-686/kernel/drivers/net/mii.ko
.///lib/modules/2.6.26-2-686/kernel/drivers/net/hp100.ko
.///lib/modules/2.6.26-2-686/kernel/drivers/net/ne2k-pci.ko
.///lib/modules/2.6.26-2-686/kernel/drivers/net/8390.ko
.///lib/modules/2.6.26-2-686/kernel/drivers/net/tokenring/olympic.ko
.///lib/modules/2.6.26-2-686/kernel/drivers/net/pcnet32.ko
.///lib/modules/2.6.26-2-686/kernel/drivers/net/mii.ko
.///lib/modules/2.6.26-2-686/kernel/drivers/net/r8169.ko
.///lib/modules/2.6.26-2-686/kernel/drivers/net/8139too.ko
.///lib/modules/2.6.26-2-686/kernel/drivers/net/mii.ko
.///lib/modules/2.6.26-2-686/kernel/drivers/net/8139cp.ko
.///lib/modules/2.6.26-2-686/kernel/drivers/net/mii.ko
.///lib/modules/2.6.26-2-686/kernel/drivers/net/skge.ko
.///lib/modules/2.6.26-2-686/kernel/drivers/net/sky2.ko
.///lib/modules/2.6.26-2-686/kernel/drivers/net/tulip/tulip.ko
.///lib/modules/2.6.26-2-686/kernel/drivers/net/via-rhine.ko
.///lib/modules/2.6.26-2-686/kernel/drivers/net/mii.ko
.///lib/modules/2.6.26-2-686/kernel/drivers/net/yellowfin.ko
.///lib/modules/2.6.26-2-686/kernel/drivers/net/tg3.ko
.///lib/modules/2.6.26-2-686/kernel/drivers/net/dl2k.ko
.///lib/modules/2.6.26-2-686/kernel/drivers/net/ns83820.ko
.///lib/modules/2.6.26-2-686/kernel/drivers/net/depca.ko
.///lib/modules/2.6.26-2-686/kernel/drivers/net/tokenring/ibmtr.ko
.///lib/modules/2.6.26-2-686/kernel/drivers/net/3c501.ko
.///lib/modules/2.6.26-2-686/kernel/drivers/net/3c503.ko
.///lib/modules/2.6.26-2-686/kernel/drivers/net/8390.ko
.///lib/modules/2.6.26-2-686/kernel/drivers/net/3c505.ko
.///lib/modules/2.6.26-2-686/kernel/drivers/net/3c507.ko
.///lib/modules/2.6.26-2-686/kernel/drivers/net/3c509.ko
.///lib/modules/2.6.26-2-686/kernel/drivers/net/3c515.ko
.///lib/modules/2.6.26-2-686/kernel/drivers/net/ac3200.ko
.///lib/modules/2.6.26-2-686/kernel/drivers/net/8390.ko
.///lib/modules/2.6.26-2-686/kernel/drivers/net/acenic.ko
.///lib/modules/2.6.26-2-686/kernel/drivers/base/firmware_class.ko
.///lib/modules/2.6.26-2-686/kernel/drivers/net/at1700.ko
.///lib/modules/2.6.26-2-686/kernel/drivers/net/wan/cosa.ko
.///lib/modules/2.6.26-2-686/kernel/drivers/net/wan/syncppp.ko
.///lib/modules/2.6.26-2-686/kernel/drivers/net/cs89x0.ko
.///lib/modules/2.6.26-2-686/kernel/drivers/net/8390.ko
.///lib/modules/2.6.26-2-686/kernel/drivers/net/eepro.ko
.///lib/modules/2.6.26-2-686/kernel/drivers/net/eexpress.ko
.///lib/modules/2.6.26-2-686/kernel/drivers/net/eth16i.ko
.///lib/modules/2.6.26-2-686/kernel/drivers/net/ewrk3.ko
.///lib/modules/2.6.26-2-686/kernel/drivers/net/forcedeath.ko
.///lib/modules/2.6.26-2-686/kernel/drivers/net/wan/hostess_sv11.ko
.///lib/modules/2.6.26-2-686/kernel/drivers/net/wan/z85230.ko
.///lib/modules/2.6.26-2-686/kernel/drivers/net/wan/syncppp.ko
.///lib/modules/2.6.26-2-686/kernel/drivers/net/hp-plus.ko
.///lib/modules/2.6.26-2-686/kernel/drivers/net/8390.ko
.///lib/modules/2.6.26-2-686/kernel/drivers/net/hp.ko
.///lib/modules/2.6.26-2-686/kernel/drivers/net/8390.ko
.///lib/modules/2.6.26-2-686/kernel/drivers/net/ni52.ko
.///lib/modules/2.6.26-2-686/kernel/drivers/net/ni65.ko
.///lib/modules/2.6.26-2-686/kernel/drivers/net/sb1000.ko
.///lib/modules/2.6.26-2-686/kernel/drivers/net/wan/sealevel.ko
.///lib/modules/2.6.26-2-686/kernel/drivers/net/wan/z85230.ko
.///lib/modules/2.6.26-2-686/kernel/drivers/net/wan/syncppp.ko
.///lib/modules/2.6.26-2-686/kernel/drivers/net/smc-ultra.ko
.///lib/modules/2.6.26-2-686/kernel/drivers/net/8390.ko
.///lib/modules/2.6.26-2-686/kernel/drivers/net/sis900.ko
.///lib/modules/2.6.26-2-686/kernel/drivers/net/mii.ko
.///lib/modules/2.6.26-2-686/kernel/drivers/net/smc9194.ko
.///lib/modules/2.6.26-2-686/kernel/drivers/net/wd.ko
.///lib/modules/2.6.26-2-686/kernel/drivers/net/8390.ko
creating compressed images…
base/bin.lzm …
[=================================================================|] 85/85 100%
base/etc.lzm …
/etc/fstab
/etc/mtab
[===============================================================/] 368/368 100%
base/home.lzm …
[=================================================================-] 76/76 100%
base/lib.lzm …
[=============================================================-] 2425/2425 100%
base/opt.lzm …

base/root.lzm …
[===================================================================|] 6/6 100%
base/usr.lzm …
[===========================================================|] 16261/16261 100%
base/sbin.lzm …
[=================================================================|] 87/87 100%
base/srv.lzm …

base/var.lzm …
[=============================================================|] 1846/1846 100%
——–done———-

* run/tmp/live_data_3098/mylinux/make_iso.bat to create ISO image
* or copy content of /tmp/live_data_3098 to your USB device
and run ./boot/bootinst.sh (from the device!) to setup boot sector

Now press Enter…


私はここで初めて.lzmの拡張子を見て驚いた。まさかLZMA使ってくれるなんて!


# cd ../live_data_3098/mylinux/
# ./make_iso.sh
Target ISO file name [ Hit enter for /tmp/mylinux.iso ]:
I: -input-charset not specified, using utf-8 (detected in locale settings)
genisoimage 1.1.9 (Linux)
Scanning ../.
Scanning .././mylinux
Scanning .././mylinux/optional
Scanning .././mylinux/rootcopy
Scanning .././mylinux/tools
Scanning .././mylinux/tools/WIN
Scanning .././mylinux/base
Scanning .././mylinux/modules
Scanning .././boot
Scanning .././boot/pxelinux.cfg
Scanning .././boot/pxelinux.cfg/web
Scanning .././boot/pxelinux.cfg/web/conf
Scanning .././boot/dos
Scanning .././boot/syslinux
Scanning .././boot/isolinux
Writing: Initial Padblock Start Block 0
Done with: Initial Padblock Block(s) 16
Writing: Primary Volume Descriptor Start Block 16
Done with: Primary Volume Descriptor Block(s) 1
Writing: Eltorito Volume Descriptor Start Block 17
Size of boot image is 4 sectors -> No emulation
Done with: Eltorito Volume Descriptor Block(s) 1
Writing: Joliet Volume Descriptor Start Block 18
Done with: Joliet Volume Descriptor Block(s) 1
Writing: End Volume Descriptor Start Block 19
Done with: End Volume Descriptor Block(s) 1
Writing: Version block Start Block 20
Done with: Version block Block(s) 1
Writing: Path table Start Block 21
Done with: Path table Block(s) 4
Writing: Joliet path table Start Block 25
Done with: Joliet path table Block(s) 4
Writing: Directory tree Start Block 29
Done with: Directory tree Block(s) 15
Writing: Joliet directory tree Start Block 44
Done with: Joliet directory tree Block(s) 15
Writing: Directory tree cleanup Start Block 59
Done with: Directory tree cleanup Block(s) 0
Writing: Extension record Start Block 59
Done with: Extension record Block(s) 1
Writing: The File(s) Start Block 60
6.13% done, estimate finish Thu Sep 10 00:49:23 2009
12.23% done, estimate finish Thu Sep 10 00:49:15 2009
18.35% done, estimate finish Thu Sep 10 00:49:12 2009
24.48% done, estimate finish Thu Sep 10 00:49:11 2009
30.58% done, estimate finish Thu Sep 10 00:49:10 2009
36.71% done, estimate finish Thu Sep 10 00:49:09 2009
42.81% done, estimate finish Thu Sep 10 00:49:11 2009
48.93% done, estimate finish Thu Sep 10 00:49:11 2009
55.04% done, estimate finish Thu Sep 10 00:49:10 2009
61.16% done, estimate finish Thu Sep 10 00:49:10 2009
67.27% done, estimate finish Thu Sep 10 00:49:09 2009
73.39% done, estimate finish Thu Sep 10 00:49:09 2009
79.50% done, estimate finish Thu Sep 10 00:49:09 2009
85.62% done, estimate finish Thu Sep 10 00:49:10 2009
91.73% done, estimate finish Thu Sep 10 00:49:10 2009
97.83% done, estimate finish Thu Sep 10 00:49:10 2009
Total translation table size: 2048
Total rockridge attributes bytes: 7825
Total directory bytes: 28672
Path table size(bytes): 208
Done with: The File(s) Block(s) 81563
Writing: Ending Padblock Start Block 81563
Done with: Ending Padblock Block(s) 150
Max brk space used 0
81773 extents written (159 MB)


159MB…!!
これ実は元々800MBに近かったシステムである。

しかしこれを使って起動しようとすると

Then burn and boot.

…(中略)…
RAMDISK: Compressed image found at block 0
List of all partitions:
No filesystem could mount root, tried:
Kernel panic – not syncing: VFS: Unable to mount root fs on unknown-block(1,0)


WTF!!!11 stopped!!!

とりあえずここまでしか来なかった。原因はまだよくわかっていない。

I don’t know what caused.
Any ideas?
Please help me. Thank you in advance.

P.S.
I found another way to make the cd.
http://www.hylos.info/2009/09/23/726

You may also like...

コメントを残す

メールアドレスが公開されることはありません。