df(1) and missing space in partition /dev/ada0p2
Matthias Apitz
guru at unixarea.de
Sun Jul 8 08:23:10 UTC 2012
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 at 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 at 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
More information about the freebsd-questions
mailing list