Filesystem full when installing custom kernel in FreeBSD

Ivan Klymenko fidaj at ukr.net
Tue Oct 19 13:38:30 UTC 2010


В Tue, 19 Oct 2010 13:53:34 +0200
Jack Engqvist Johansson <jack at skysel.com> пишет:

> On Tue, Oct 19, 2010 at 8:30 AM, Ivan Klymenko <fidaj at ukr.net> wrote:
> > В Tue, 19 Oct 2010 00:53:31 +0200
> > Jack Engqvist Johansson <jack at skysel.com> пишет:
> >
> >> Hi,
> >>
> >> I just got succeeded with my compilation of a custom kernel for
> >> FreeBSD 8.1. But when I'm trying to install it, I got an error.
> >> File system is full!
> >>
> >> So I moved the old kernel to another partition, but got the same
> >> error. And I cannot move it back again.
> >> Whats wrong? How can I do to get a kernel again?
> >>
> >> Thanks.
> >> Best regards, Jack Engvist Johansson
> >>
> >>
> >>
> >>  bsd# make installkernel KERNCONF=NECTRUS
> >> --------------------------------------------------------------
> >> >>> Installing kernel
> >> --------------------------------------------------------------
> >> cd /usr/obj/usr/src/sys/NECTRUS;  MAKEOBJDIRPREFIX=/usr/obj
> >> MACHINE_ARCH=amd64  MACHINE=amd64  CPUTYPE=
> >> GROFF_BIN_PATH=/usr/obj/usr/src/tmp/legacy/usr/bin
> >> GROFF_FONT_PATH=/usr/obj/usr/src/tmp/legacy/usr/share/groff_font
> >> GROFF_TMAC_PATH=/usr/obj/usr/src/tmp/legacy/usr/share/tmac
> >> PATH=/usr/obj/usr/src/tmp/legacy/usr/sbin:/usr/obj/usr/src/tmp/legacy/usr/bin:/usr/obj/usr/src/tmp/legacy/usr/games:/usr/obj/usr/src/tmp/usr/sbin:/usr/obj/usr/src/tmp/usr/bin:/usr/obj/usr/src/tmp/usr/games:/sbin:/bin:/usr/sbin:/usr/bin
> >>  make KERNEL=kernel install
> >> thiskernel=`sysctl -n kern.bootfile` ;  if [ ! "`dirname
> >> "$thiskernel"`" -ef /boot/kernel ] ; then  chflags -R noschg
> >> /boot/kernel ;  rm -rf /boot/kernel ;  else  if
> >> [ -d /boot/kernel.old ] ; then  chflags -R
> >> noschg /boot/kernel.old ;  rm -rf /boot/kernel.old ;  fi ;
> >>  mv /boot/kernel /boot/kernel.old ;  sysctl
> >> kern.bootfile=/boot/kernel.old/"`basename "$thiskernel"`" ;  fi
> >> mkdir -p /boot/kernel install -p -m 555 -o root -g wheel
> >> kernel /boot/kernel
> >>
> >> /: write failed, filesystem is full
> >> install: /boot/kernel/kernel: No space left on device
> >> *** Error code 71
> >>
> >> Stop in /usr/obj/usr/src/sys/NECTRUS.
> >> *** Error code 1
> >>
> >> Stop in /usr/src.
> >> *** Error code 1
> >>
> >> Stop in /usr/src.
> >> -----------------------------------------------------------------------------------------
> >>
> >
> > Look how much space left on partition /
> > df -h
> > and is not used for the root account
> >
> 
> $ df -h
> Filesystem     Size    Used   Avail Capacity  Mounted on
> /dev/ad4s1a    496M    490M    -34M   108%    /
> devfs          1.0K    1.0K      0B   100%    /dev
> /dev/ad4s1e    496M     26M    430M     6%    /tmp
> /dev/ad4s1f    137G     13G    113G    10%    /usr
> /dev/ad4s1d    2.8G    162M    2.4G     6%    /var
> procfs         4.0K    4.0K      0B   100%    /proc
> linprocfs      4.0K    4.0K      0B   100%    /usr/compat/linux/proc
> 
> 
> Nautilus: 4258945024 bytes (Free space)
> /root: 14.2 KB (Used space)
> 
> 

show me the output the following commands from the root account:
du -chd0 /bin
du -chd0 /boot
du -chd0 /etc
du -chd0 /lib
du -chd0 /libexec
du -chd0 /root
du -chd0 /sbin


More information about the freebsd-hackers mailing list