VineSeed ML アーカイブ



[VineSeed:17125] initrd.img のサイズが大きい?

  • From: HARADA Kazutaka <kazutaka@xxxxxxxxxxxxxxxx>
  • Subject: [VineSeed:17125] initrd.img のサイズが大きい?
  • Date: Mon, 6 Apr 2009 22:02:27 +0900
ハラダです。

pm-hibernate が効かなくなったので、原因を調べていて気づいたのですが、
initrd.img のサイズが妙に大きくなっているようです。

# ls -l /boot/initrd-*
-rw-r--r-- 1 root root  196017  5月17日  2006 /boot/initrd-2.4.31-0vl1.8.img
-rw-r--r-- 1 root root  471749  8月14日  2008 /boot/initrd-2.6.26-4vl5-atapiix.img
-rw-r--r-- 1 root root  390365  8月10日  2008 /boot/initrd-2.6.26-4vl5.piix.img
-rw-r--r-- 1 root root  483247  1月28日 05:47 /boot/initrd-2.6.27-11vl5.img
-rw-r--r-- 1 root root  483213  3月20日 07:12 /boot/initrd-2.6.27-18vl5.img
-rw------- 1 root root 3175133  4月 6日 21:52 /boot/initrd-2.6.27-19vl5.img

試しに mkinitrd を -v 付きで実行してみたところ、こんな
感じでした。

# /sbin/mkinitrd -v /boot/initrd-`uname -r`.img `uname -r`
Creating initramfs
Looking for deps of module ehci-hcd
Looking for deps of module ohci-hcd: pcmcia_core pcmcia ssb
Looking for deps of module pcmcia_core
Looking for deps of module pcmcia: pcmcia_core
Looking for deps of module ssb: pcmcia_core pcmcia
Looking for deps of module uhci-hcd
Looking for deps of module ext3
Found root device sda5 for LABEL=/
Looking for driver for device sda5
Looking for deps of module scsi:t-0x00: crc-t10dif scsi_mod sd_mod
Looking for deps of module crc-t10dif
Looking for deps of module scsi_mod
Looking for deps of module sd_mod: crc-t10dif scsi_mod
Looking for driver for device LABEL=swap
Looking for deps of module ata_piix: dock scsi_mod libata
Looking for deps of module dock
Looking for deps of module libata: dock scsi_mod
Looking for deps of module usb-storage: scsi_mod
Looking for deps of module ide-disk
Using modules:  /lib/modules/2.6.27-19vl5/kernel/drivers/usb/host/ehci-hcd.ko
/lib/modules/2.6.27-19vl5/kernel/drivers/pcmcia/pcmcia_core.ko
/lib/modules/2.6.27-19vl5/kernel/drivers/pcmcia/pcmcia.ko
/lib/modules/2.6.27-19vl5/kernel/drivers/ssb/ssb.ko
/lib/modules/2.6.27-19vl5/kernel/drivers/usb/host/ohci-hcd.ko
/lib/modules/2.6.27-19vl5/kernel/drivers/usb/host/uhci-hcd.ko
/lib/modules/2.6.27-19vl5/kernel/lib/crc-t10dif.ko
/lib/modules/2.6.27-19vl5/kernel/drivers/scsi/scsi_mod.ko
/lib/modules/2.6.27-19vl5/kernel/drivers/scsi/sd_mod.ko
/lib/modules/2.6.27-19vl5/kernel/drivers/acpi/dock.ko
/lib/modules/2.6.27-19vl5/kernel/drivers/ata/libata.ko
/lib/modules/2.6.27-19vl5/kernel/drivers/ata/ata_piix.ko
/lib/modules/2.6.27-19vl5/kernel/drivers/usb/storage/usb-storage.ko
/sbin/nash -> /tmp/initrd.JwFTo2/bin/nash
/sbin/insmod.static -> /tmp/initrd.JwFTo2/bin/insmod
copy from `/lib/modules/2.6.27-19vl5/kernel/drivers/usb/host/ehci-hcd.ko'
[elf32-i386] to `/tmp/initrd.JwFTo2/lib/ehci-hcd.ko' [elf32-i386]
copy from `/lib/modules/2.6.27-19vl5/kernel/drivers/pcmcia/pcmcia_core.ko'
[elf32-i386] to `/tmp/initrd.JwFTo2/lib/pcmcia_core.ko' [elf32-i386]
copy from `/lib/modules/2.6.27-19vl5/kernel/drivers/pcmcia/pcmcia.ko'
[elf32-i386] to `/tmp/initrd.JwFTo2/lib/pcmcia.ko' [elf32-i386]
copy from `/lib/modules/2.6.27-19vl5/kernel/drivers/ssb/ssb.ko' [elf32-i386] to
`/tmp/initrd.JwFTo2/lib/ssb.ko' [elf32-i386]
copy from `/lib/modules/2.6.27-19vl5/kernel/drivers/usb/host/ohci-hcd.ko'
[elf32-i386] to `/tmp/initrd.JwFTo2/lib/ohci-hcd.ko' [elf32-i386]
copy from `/lib/modules/2.6.27-19vl5/kernel/drivers/usb/host/uhci-hcd.ko'
[elf32-i386] to `/tmp/initrd.JwFTo2/lib/uhci-hcd.ko' [elf32-i386]
copy from `/lib/modules/2.6.27-19vl5/kernel/lib/crc-t10dif.ko' [elf32-i386] to
`/tmp/initrd.JwFTo2/lib/crc-t10dif.ko' [elf32-i386]
copy from `/lib/modules/2.6.27-19vl5/kernel/drivers/scsi/scsi_mod.ko'
[elf32-i386] to `/tmp/initrd.JwFTo2/lib/scsi_mod.ko' [elf32-i386]
copy from `/lib/modules/2.6.27-19vl5/kernel/drivers/scsi/sd_mod.ko' [elf32-i386]
to `/tmp/initrd.JwFTo2/lib/sd_mod.ko' [elf32-i386]
copy from `/lib/modules/2.6.27-19vl5/kernel/drivers/acpi/dock.ko' [elf32-i386]
to `/tmp/initrd.JwFTo2/lib/dock.ko' [elf32-i386]
copy from `/lib/modules/2.6.27-19vl5/kernel/drivers/ata/libata.ko' [elf32-i386]
to `/tmp/initrd.JwFTo2/lib/libata.ko' [elf32-i386]
copy from `/lib/modules/2.6.27-19vl5/kernel/drivers/ata/ata_piix.ko'
[elf32-i386] to `/tmp/initrd.JwFTo2/lib/ata_piix.ko' [elf32-i386]
copy from `/lib/modules/2.6.27-19vl5/kernel/drivers/usb/storage/usb-storage.ko'
[elf32-i386] to `/tmp/initrd.JwFTo2/lib/usb-storage.ko' [elf32-i386]
/sbin/dmraid.static -> /tmp/initrd.JwFTo2/bin/dmraid
/sbin/kpartx.static -> /tmp/initrd.JwFTo2/bin/kpartx
Adding module ehci-hcd
Adding module pcmcia_core
Adding module pcmcia
Adding module ssb
Adding module ohci-hcd
Adding module uhci-hcd
Adding module crc-t10dif
Adding module scsi_mod
Adding module sd_mod
Adding module dock
Adding module libata
Adding module ata_piix
Adding module usb-storage
/sbin/tuxoniceui_fbsplash -> /tmp/initrd.JwFTo2/sbin/tuxoniceui_fbsplash


ssb は irc でも話が出たように次回の更新時に N にしてもらえる
から良いとして、nash, dmraid.static, kpartx.static 辺りが
サイズを大きくしている理由と思うのですが、これが意図した状態
なのか判断できなかったので、念のためメールしておきます。

# 本題の hibernate の方はまだ原因調べ中です。

-- 
--------------------------------------
Kazutaka HARADA
  e-mail:kazutaka@xxxxxxxxxxxxxxxx
--------------------------------------