From owner-freebsd-embedded@FreeBSD.ORG Sat Oct 25 11:52:30 2008 Return-Path: Delivered-To: freebsd-embedded@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D6BA61065674 for ; Sat, 25 Oct 2008 11:52:30 +0000 (UTC) (envelope-from mah@jump-ing.de) Received: from mail.ud03.udmedia.de (ud03.udmedia.de [194.117.254.43]) by mx1.freebsd.org (Postfix) with ESMTP id 40CF58FC13 for ; Sat, 25 Oct 2008 11:52:29 +0000 (UTC) (envelope-from mah@jump-ing.de) DKIM-Signature: v=1; a=rsa-sha256; c=simple; d=mail.ud03.udmedia.de; h= mime-version:content-transfer-encoding:message-id:content-type: to:from:subject:date; q=dns/txt; s=beta; bh=1N3CPefQRN5V2SFVb8TK zdhG2EAvyG69LnKGSMN/8X0=; b=hUp9KkEjvatV/e1pKzy2CpF2x92Pn+gSs//a z+c4qpjR0Pp4AzpMC4+W/SR05RLoCP/POpr8BXSkkeLKwpZtZynXVtF7xtf69mXN M0EW+gDxmCfwxDIwQGJ7LU/jT+1CGIhOXb9uHW2BSRf//ty/WHPMeUij/nFXunhf V4OSuyE= Received: (qmail 32513 invoked from network); 25 Oct 2008 13:25:47 +0200 Received: from unknown (HELO ?10.0.0.50?) (ud03?291p1@78.42.122.222) by mail.ud03.udmedia.de with ESMTPA; 25 Oct 2008 13:25:47 +0200 Mime-Version: 1.0 (Apple Message framework v753.1) Content-Transfer-Encoding: 7bit Message-Id: <8DCB3D53-4C5E-43FD-A437-C551A36003DE@jump-ing.de> Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed To: freebsd-embedded@freebsd.org From: Markus Hitter Date: Sat, 25 Oct 2008 13:25:45 +0200 X-Mailer: Apple Mail (2.753.1) Subject: Fill a partition entirely X-BeenThere: freebsd-embedded@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Dedicated and Embedded Systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 25 Oct 2008 11:52:30 -0000 Hello all, recently I received such a GEODE-based diskless desktop PC and now I'm attepting to get a minimum system onto it using (a heftily tweaked) tinyBSD. The plan is to put a memory based, read-only root file system onto a pen drive and to use the remaining part of the pen drive for user data. In principle everything works, but when trying to optimise, I can't get this root file system to fill up to more tham about 60%, no matter how I set inode count, root reserved space and fragment size. This is the snippet for creating the partition: PART_ONE_SIZE=`du -s ${WORKDIR} | cut -f 1` # Fix: let PART_ONE_SIZE=${PART_ONE_SIZE}*2 LABELFILE=`mktemp -t tinybsd` echo "a: ${PART_ONE_SIZE} * 4.2BSD" > ${LABELFILE} echo "b: * * 4.2BSD" >> ${LABELFILE} bsdlabel -R -B /dev/${MD} ${LABELFILE} rm -f ${LABELFILE} newfs -m 0 -n /dev/${MD}a mount /dev/${MD}a ${IMGMNT} tar -C ${WORKDIR} -cf- --exclude kernel . | \ tar -C ${IMGMNT} -xf- For some reason I can't imagine, the later "tar" starts complaining "No space left on device" half the way and the situation ends up with ("df -i"): Filesystem 1K-blocks Used Avail Capacity iused ifree %iused Mounted on /dev/md1a 6778 4596 2182 68% 22 1000 2% /tmp/ tinybsd.HhlvvDXC To me, this doesn't look like "No space left on device" at all. What is missing here, how can I shrink the partition to just hold the needed files? Thanks, MarKus - - - - - - - - - - - - - - - - - - - Dipl. Ing. Markus Hitter http://www.jump-ing.de/