[pocket-linux] appendix, floppy overflowing ...
David Horton
dhorton at speakeasy.net
Mon Feb 28 08:18:13 CST 2005
> -----Original Message-----
> From: rainer [mailto:chimera at b2b2c.ca]
> Sent: Monday, February 28, 2005 03:00 AM
> To: 'Support for Pocket Linux Guide'
> Subject: Re: [pocket-linux] appendix, floppy overflowing ...
>
> rainer wrote:
>
> > David Horton wrote:
> >
> >> rainer wrote:
> >>
> >>> David Horton wrote:
> >>>
> >>>> rainer wrote:
> >>>>
> >>>>> hello,
> >>>>>
> >>>>> there's no more space left on the floppy - got 1441 in, 1440 out !?
> >>>>>
> >>>>> restripped all the binaries and libraries still no change. the
> >>>>> only thing i can think of was ch. 5 where i had to add 2 libraries
> >>>>> (libblkid.so.1 and libuuid.so.1) to get mount to work in the
> >>>>> implementation section. the guide stated there should be NO
> >>>>> libraries to add.
> >>>>>
> >>>>> any advice?
> >>>>>
> >>>>> thanks
> >>>>>
> >>>>
> >>>> The libblkid.so.1 and libuuid.so.1 have something to do with the
> >>>> way e2fsprogs is configured. In one configuration they are
> >>>> separate libraries and in the other they are part of the binary. I
> >>>> think the option that controls this is --enable-dynamic-e2fsck, but
> >>>> I'm not sure. Anyway, check ./configure --help to see if it says
> >>>> which is which. You might shrink the total size by not using
> >>>> separate libraries.
> >>>>
> >>>> Dave
> >>>>
> >>>>
> >>>> _______________________________________________
> >>>> Pocket-Linux mailing list
> >>>> Pocket-Linux at ufo.chicago.il.us
> >>>> http://ufo.chicago.il.us/cgi-bin/mailman/listinfo/pocket-linux
> >>>>
> >>>>
> >>> thanks for the reply.
> >>>
> >>> i noted with dismay that the mailing list is not accepting anything
> >>> from 'pine' again. this is going to make sending accurate and full
> >>> info a lot more painstaking and difficult!
> >>>
> >>> i reviewed your advice and found the line in question, line 63 in
> >>> e2fsprog's configure. the --help confirmed your guess. as i
> >>> understand it i change, '--enable-dynamic-fsck' to
> >>> '--disable-dynamic-fsck'? but i still don't understand how that
> >>> saves me space? i delete the libs, libblkid.so.1 and libuuid.so.1
> >>> but my binary becomes bigger - it now statically includes these
> >>> libraries?
> >>>
> >>> the MCONFIG for util-linux may have something that's relevant for
> >>> 'blkid'?
> >>>
> >>> here are some of my numbers in bytes as it stands now;
> >>>
> >>> # ls -l phase8-image.gz
> >>> 1481426
> >>> # ~/staging du -cb
> >>> 3142403
> >>> # du -cb ?staging/lib/*
> >>> libblkid.so.1 24496
> >>> libuuid.s0.1 9276
> >>>
> >>> (1481426 - (24496 + 9276) = 1447654
> >>>
> >>> if anyone could submit a complete list for
> >>>
> >>> # ~/staging du -cb
> >>>
> >>> that would be helpful. i checked every dir for mistakes but still
> >>> haven't ruled out some other problems (found a pocket-linux
> >>> guide.txt in staging at one point!) or attach a working
> >>> phase8-image.gz root disk it would be helpful to compare
> >>>
> >>> waiting to be enlightened,
> >>>
> >>> thanks
> >>
> >>
> >>
> >> I thought that perhaps there would be extra overhead in terms of code
> >> included to accomplish the dynamic linking that would be gone with
> >> static linking. By the way, are you zeroing out the ramdisk (or
> >> loopback device) each time you modify this image? If you just delete
> >> a file the image will stay the same size since the file's contents
> >> are still there and all that gets deleted is the directory link to
> >> the file. I ran into this problem a couple times myself.
> >>
> >> Also, your Pine mail is getting rejected because the mailing list
> >> thinks you are not subscribed. Same address though, so it does not
> >> make a lot of sense.
> >>
> >> Dave
> >>
> >> _______________________________________________
> >> Pocket-Linux mailing list
> >> Pocket-Linux at ufo.chicago.il.us
> >> http://ufo.chicago.il.us/cgi-bin/mailman/listinfo/pocket-linux
> >>
> >>
> > i think i do 'zero out', i deleted the txt file from the staging dir
> > then remade the image from scratch, starting with,
> >
> > dd if=/dev/zero of=/dev/ram7 bs=1k count=4096 ...
> >
> >
> > _______________________________________________
> > Pocket-Linux mailing list
> > Pocket-Linux at ufo.chicago.il.us
> > http://ufo.chicago.il.us/cgi-bin/mailman/listinfo/pocket-linux
> >
> >
> redid it again and got a slightly smaller .gz size (now 1471318) and it
> fit! the max size on that floppy by my calculations is 1440 x 1024 =
> 1474560 so it's close, ~3kb+ space left. i think i used the old
> phase8-image the first time. it definitely helps to be organised and do
> regular cleaning ...
>
>
Excellent!
More information about the Pocket-Linux
mailing list