LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 960|回复: 8

求助!genkernel all最后总是会说ERROR: Could not copy the initramfs image to /boo

[复制链接]
发表于 2009-5-4 17:35:08 | 显示全部楼层 |阅读模式
xie@localhost ~ $ su
密码:
localhost xie # cd /usr/src/linux
localhost linux # genkernel all
* Gentoo Linux Genkernel; Version 3.4.10
* Running with options: all

* Linux Kernel 2.6.28-gentoo-r5 for x86...
* kernel: >> Running mrproper...
* config: Using config from /etc/kernels/kernel-config-x86-2.6.28-gentoo-r5
*         Previous config backed up to .config.bak
*         >> Running oldconfig...
* kernel: >> Cleaning...
* kernel: >> Making dependencies...
*         >> Compiling 2.6.28-gentoo-r5 bzImage...
*         >> Compiling 2.6.28-gentoo-r5 modules...
* Copying config for successful build to /etc/kernels/kernel-config-x86-2.6.28-gentoo-r5
* busybox: >> Using cache
* initramfs: >> Initializing...
*         >> Appending base_layout cpio data...
*         >> Appending auxilary cpio data...
*         >> Appending busybox cpio data...
*         >> Appending modules cpio data...
cp: 写入 “/boot/initramfs-genkernel-x86-2.6.28-gentoo-r5”: 设备上没有空间
* ERROR: Could not copy the initramfs image to /boot!

* -- Grepping log... --

  HOSTCC  scripts/kconfig/conf.o
  HOSTCC  scripts/kconfig/kxgettext.o
  HOSTCC  scripts/kconfig/zconf.tab.o
  HOSTLD  scripts/kconfig/conf
scripts/kconfig/conf -s arch/x86/Kconfig
*** Warning: make dep is unnecessary now.
--
  LD      drivers/video/geode/built-in.o
  LD      drivers/video/built-in.o
  LD      drivers/built-in.o
  LD      vmlinux.o
  MODPOST vmlinux.o
WARNING: modpost: Found 5 section mismatch(es).
--
  CC [M]  drivers/net/defxx.o
  CC [M]  net/irda/irda_device.o
  CC [M]  net/irda/irias_object.o
  CC [M]  drivers/net/at1700.o
在包含自 drivers/net/at1700.c:41 的文件中:
include/linux/mca-legacy.h:12:2: 警告:#warning "MCA legacy - please move your driver to the new sysfs api"
--
  CC [M]  net/irda/parameters.o
  CC [M]  net/irda/irnetlink.o
  CC [M]  drivers/net/eexpress.o
  CC [M]  net/irda/irmod.o
在包含自 drivers/net/eexpress.c:115 的文件中:
include/linux/mca-legacy.h:12:2: 警告:#warning "MCA legacy - please move your driver to the new sysfs api"
--
  CC [M]  drivers/net/wireless/libertas/ethtool.o
  CC [M]  drivers/net/wireless/libertas/assoc.o
  CC [M]  drivers/scsi/scsi_transport_srp.o
  CC [M]  drivers/net/wireless/libertas/if_cs.o
  CC [M]  drivers/scsi/advansys.o
drivers/scsi/advansys.c:71:2: 警告:#warning this driver is still not properly converted to the DMA API
--
  LD [M]  drivers/net/wireless/prism54/prism54.o
  CC [M]  drivers/net/wireless/rt2x00/rt2x00dev.o
  CC [M]  drivers/scsi/aha1542.o
  CC [M]  drivers/net/wireless/rt2x00/rt2x00mac.o
在包含自 drivers/scsi/aha1542.c:41 的文件中:
include/linux/mca-legacy.h:12:2: 警告:#warning "MCA legacy - please move your driver to the new sysfs api"
--
*         >> Appending busybox cpio data...
*         >> Appending modules cpio data...
* Gentoo Linux Genkernel; Version 3.4.10
* Running with options: all

* ERROR: Could not copy the initramfs image to /boot!

* -- End log... --

* Please consult /var/log/genkernel.log for more information and any
* errors that were reported above.

* Report any genkernel bugs to bugs.gentoo.org and
* assign your bug to genkernel@gentoo.org. Please include
* as much information as you can in your bug report; attaching
* /var/log/genkernel.log so that your issue can be dealt with effectively.
*
* Please do *not* report compilation failures as genkernel bugs!
*
发表于 2009-5-4 17:39:45 | 显示全部楼层
cp: 写入 “/boot/initramfs-genkernel-x86-2.6.28-gentoo-r5”: 设备上没有空间
仔细看看出错信息吧
回复 支持 反对

使用道具 举报

 楼主| 发表于 2009-5-4 17:43:28 | 显示全部楼层
谢谢提醒。不过我/boot只给了50m,怎么才能扩大点?
回复 支持 反对

使用道具 举报

发表于 2009-5-4 19:18:14 | 显示全部楼层
50M也不小了吧,看看/boot里有没有什么不需要的大文件
回复 支持 反对

使用道具 举报

 楼主| 发表于 2009-5-4 22:11:07 | 显示全部楼层
localhost xie # ls /boot
boot
config-2.6.28-gentoo-r5
grub
initramfs-genkernel-x86-2.6.24-gentoo-r5
initramfs-genkernel-x86-2.6.28-gentoo-r5
kernel-genkernel-x86-2.6.24-gentoo-r5
kernel-genkernel-x86-2.6.28-gentoo-r5
lost+found
System.map-genkernel-x86-2.6.24-gentoo-r5
System.map-genkernel-x86-2.6.28-gentoo-r5
一个initramfs就18m多。
回复 支持 反对

使用道具 举报

发表于 2009-5-4 23:48:24 | 显示全部楼层
没办法了
把不用的给删掉
回复 支持 反对

使用道具 举报

 楼主| 发表于 2009-5-5 00:08:38 | 显示全部楼层
24的是我现在用的,28的是编译的时候复制过去的。编译了两次都是空间不足,看来只好扩大boot分区了。我现在下在用着gentoo,能不能直接就用fdisk改变/boot /swap的大小呢,还是要用光盘启动后改变?
回复 支持 反对

使用道具 举报

发表于 2009-5-5 00:39:11 | 显示全部楼层
精简一下内核试一试,
  1. -rw-r--r-- 1 root root  2.5M 2009-02-24 22:57 initramfs-genkernel-x86-2.6.28-tuxonice-r3
复制代码
还可以更小我集成到内核的intramfs,也就1.4M大小
回复 支持 反对

使用道具 举报

发表于 2009-5-5 08:54:23 | 显示全部楼层
ls -lh /boot/
总计 2.5M
lrwxrwxrwx 1 root root    1 05-01 17:49 boot -> .
drwxr-xr-x 2 root root 1.0K 05-04 08:29 grub
-rw-r--r-- 1 root root 801K 05-03 14:36 System.map
-rw-r--r-- 1 root root 1.7M 05-03 14:36 vmlinuz

initrd不是必须的,除非特殊要求才需要。。。
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表