我目前的Ubuntu是16.04.1 LTS
,我用它來構建最新的linux 4.7
內核。所有的構建過程是平滑的,安裝時除外,它會提示以下錯誤:安裝Linux內核生成「gzip:stdout:設備上沒有空間」錯誤
# make modules_install install
......
DEPMOD 4.7.0
sh ./arch/x86/boot/install.sh 4.7.0 arch/x86/boot/bzImage \
System.map "/boot"
run-parts: executing /etc/kernel/postinst.d/apt-auto-removal 4.7.0 /boot/vmlinuz-4.7.0
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 4.7.0 /boot/vmlinuz-4.7.0
update-initramfs: Generating /boot/initrd.img-4.7.0
W: mdadm: /etc/mdadm/mdadm.conf defines no arrays.
gzip: stdout: No space left on device
E: mkinitramfs failure cpio 141 gzip 1
update-initramfs: failed for /boot/initrd.img-4.7.0 with 1.
run-parts: /etc/kernel/postinst.d/initramfs-tools exited with return code 1
arch/x86/boot/Makefile:191: recipe for target 'install' failed
make[2]: *** [install] Error 1
arch/x86/Makefile:261: recipe for target 'install' failed
make[1]: *** [install] Error 2
Makefile:523: recipe for target '__build_one_by_one' failed
make: *** [__build_one_by_one] Error 2
我dobut有我的主機上沒有空間,所以我用「df -h
」命令檢查:
# df -h
Filesystem Size Used Avail Use% Mounted on
udev 1.9G 0 1.9G 0% /dev
tmpfs 390M 11M 379M 3% /run
/dev/mapper/ubuntu--vg-root 454G 25G 407G 6%/
tmpfs 2.0G 0 2.0G 0% /dev/shm
tmpfs 5.0M 0 5.0M 0% /run/lock
tmpfs 2.0G 0 2.0G 0% /sys/fs/cgroup
/dev/sda2 473M 179M 270M 40% /boot
/dev/sda1 511M 3.5M 508M 1% /boot/efi
tmpfs 100K 0 100K 0% /run/lxcfs/controllers
tmpfs 390M 0 390M 0% /run/user/0
看來只有/dev
目錄已滿,但不知是否是根本原因。任何人都可以在這個問題上提供一些線索嗎?