Date: Sun, 8 Jul 2012 10:23:00 +0200 From: Matthias Apitz <guru@unixarea.de> To: Wojciech Puchar <wojtek@wojtek.tensor.gdynia.pl> Cc: freebsd-questions@freebsd.org Subject: Re: df(1) and missing space in partition /dev/ada0p2 Message-ID: <20120708082300.GA2770@tinyCurrent> In-Reply-To: <alpine.BSF.2.00.1207080946420.1560@wojtek.tensor.gdynia.pl> References: <20120708064451.GB2365@tinyCurrent> <alpine.BSF.2.00.1207080946420.1560@wojtek.tensor.gdynia.pl>
next in thread | previous in thread | raw e-mail | index | archive | help
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 <guru@unixarea.de> - 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20120708082300.GA2770>