sysinstall(8) && bsdlabel a new disk
Matthias Apitz
guru at unixarea.de
Mon Nov 1 09:06:56 UTC 2010
El día Monday, November 01, 2010 a las 12:03:54AM +0000, Bruce Cran escribió:
> On Sunday 31 October 2010 20:02:58 Matthias Apitz wrote:
>
> > How this is supposed to work using sysinstall(8)
> > or should one use only bsdlabel(8) directly in such a case?
>
> sysinstall isn't really intended for post-install use: you should probably
> learn how to use gpart instead - e.g.
>
> gpart create -s mbr /dev/disk
> gpart add -t freebsd /dev/disk
> gpart create -s bsd /dev/disk
> gpart add -t freebsd-ufs /dev/disks1
>
> newfs /dev/disks1a
Combining the above and your posting in
http://lists.freebsd.org/pipermail/freebsd-fs/2010-August/009176.html
for my case I should have done:
# gpart create -s mbr ad4 # Init the disk with an MBR
# gpart add -t freebsd ad4 # Create a BSD container
# gpart create -s bsd ad4s1 # Init with a BSD scheme
# gpart add -t freebsd-ufs -s 1G ad4s1 # 1GB for /
# gpart add -t freebsd-swap -s 2G ad4s1 # 2GB for swap
# gpart add -t freebsd-ufs -s 2G ad4s1 # 2GB for /var
# gpart add -t freebsd-ufs -s 1G ad4s1 # 1GB for /tmp
# gpart add -t freebsd-ufs ad4s1 # all rest for /usr
Right?
I'm unsure about the 3rd command (gpart create -s bsd ad4s1), should it
use 'ad4' as you say above, or 'ad4s1' as in the August's post?
In any case, next time whene I have an empty disk to initialize, I will
play around with this. Thanks again
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/
More information about the freebsd-questions
mailing list