From owner-freebsd-questions@FreeBSD.ORG Sun Jul 8 08:23:10 2012 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D2A18106564A for ; Sun, 8 Jul 2012 08:23:10 +0000 (UTC) (envelope-from guru@unixarea.de) Received: from ms16-1.1blu.de (ms16-1.1blu.de [89.202.0.34]) by mx1.freebsd.org (Postfix) with ESMTP id 61B988FC0C for ; Sun, 8 Jul 2012 08:23:10 +0000 (UTC) Received: from [46.244.140.39] (helo=localhost.my.domain) by ms16-1.1blu.de with esmtpsa (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.69) (envelope-from ) id 1Snmli-0005PU-CG; Sun, 08 Jul 2012 10:23:02 +0200 Received: from localhost.my.domain (localhost [127.0.0.1]) by localhost.my.domain (8.14.4/8.14.3) with ESMTP id q688N0Sw002842; Sun, 8 Jul 2012 10:23:01 +0200 (CEST) (envelope-from guru@unixarea.de) Received: (from guru@localhost) by localhost.my.domain (8.14.4/8.14.3/Submit) id q688N0AO002841; Sun, 8 Jul 2012 10:23:00 +0200 (CEST) (envelope-from guru@unixarea.de) X-Authentication-Warning: localhost.my.domain: guru set sender to guru@unixarea.de using -f Date: Sun, 8 Jul 2012 10:23:00 +0200 From: Matthias Apitz To: Wojciech Puchar Message-ID: <20120708082300.GA2770@tinyCurrent> References: <20120708064451.GB2365@tinyCurrent> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Operating-System: FreeBSD 9.0-CURRENT r214444 (i386) User-Agent: Mutt/1.5.21 (2010-09-15) X-Con-Id: 51246 X-Con-U: 0-guru X-Originating-IP: 46.244.140.39 Cc: freebsd-questions@freebsd.org Subject: Re: df(1) and missing space in partition /dev/ada0p2 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Matthias Apitz List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 08 Jul 2012 08:23:10 -0000 El día Sunday, July 08, 2012 a las 09:47:33AM +0200, Wojciech Puchar escribió: > > FreeBSD aurora-clone.Sisis.de 10.0-CURRENT FreeBSD 10.0-CURRENT #2 r235646M: Thu Jul 5 09:38:00 UTC 2012 root@aurora-clone.Sisis.de:/usr/obj/usr/src/sys/GENERIC i386 > > $ df -k > > Filesystem 1024-blocks Used Avail Capacity Mounted on > > /dev/ada0p2 74130588 25389436 42810708 37% / > > devfs 1 1 0 100% /dev > > linprocfs 4 4 0 100% /compat/linux/proc > > /dev/md0 126492 24 116352 0% /tmp > > $ echo '25389436+42810708' | bc > > 68200144 > > > only one partition is mounted and created. > > I don't have idea what installer do as i don't use it. > > I recommend installing manually so you have full control of how partitions > are laid out and using what partition table format. I did the partitioning by hand as: # gpart destroy -F ada0 # gpart create -s gpt ada0 # gpart add -t freebsd-boot -s 512k ada0 # gpart bootcode -b /boot/pmbr -p /boot/gptboot -i1 ada0 # gpart add -t freebsd-ufs -b 1m -s 73G ada0 # gpart add -t freebsd-swap ada0 # newfs /dev/ada0p2 ... which I think it's fine; and this explains now also where the missing blocks are: I forgot '-m 0' in newfs(8); thanks to Robert to point me in the correct direction and sorry for the noise. Thanks matthias -- Matthias Apitz t +49-89-61308 351 - f +49-89-61308 399 - m +49-170-4527211 e - w http://www.unixarea.de/ UNIX since V7 on PDP-11 | UNIX on mainframe since ESER 1055 (IBM /370) UNIX on x86 since SVR4.2 UnixWare 2.1.2 | FreeBSD since 2.2.5