Re: initrd build problems
On Wed, Jan 31, 2001 at 07:20:22PM -0800, Joey Hess wrote:
> Joey Hess wrote:
> > When I try to make an initrd, it always fails like this:
> >
> > Writing inode tables: done
> > Writing superblocks and filesystem accounting information: done
> > mount -t ext2 -o loop ./tmp/debian-installer ./mnt/debian-installer
> > cp -a debian-installer/* ./mnt/debian-installer/
> > cp: writing `./mnt/debian-installer/usr/lib/libdebconf.so.0.1.0': No space left on device
> > cp: cannot create directory `./mnt/debian-installer/usr/lib/cdebconf': No space left on device
> > cp: cannot create directory `./mnt/debian-installer/usr/lib/debian-installer': No space left on device
> > cp: cannot create directory `./mnt/debian-installer/var': No space left on device
> > make: *** [initrd] Error 1
> >
> > I wonder why it's working for you.. If I add a fuzz factor of 122 to
> > your initrd size calculation, it seems to work:
> >
> > dd if=/dev/zero of=$(TMP_FILE) bs=1k count=`expr $$(du -s $(DEST) | cut -f 1) + 122`
>
> On reflection, I suspect this is ext2fs overhead. The fuzz factor at
> home is 127, not 122, probably because I added some more udebs in..
Almost certainly. There's both a fixed filesystem overhead and a
size-dependent one, I'd imagine; just making a ramdisk the size of the
contents really shouldn't work.
Dan
/--------------------------------\ /--------------------------------\
| Daniel Jacobowitz |__| SCS Class of 2002 |
| Debian GNU/Linux Developer __ Carnegie Mellon University |
| dan@debian.org | | dmj+@andrew.cmu.edu |
\--------------------------------/ \--------------------------------/
Reply to: