Date: Mon, 1 Nov 2010 10:06:53 +0100 From: Matthias Apitz <guru@unixarea.de> To: Bruce Cran <bruce@cran.org.uk> Cc: freebsd-questions@freebsd.org Subject: Re: sysinstall(8) && bsdlabel a new disk Message-ID: <20101101090653.GA2874@current.Sisis.de> In-Reply-To: <201011010003.54682.bruce@cran.org.uk> References: <20101031200258.GA1302@tiny.Sisis.de> <201011010003.54682.bruce@cran.org.uk>
next in thread | previous in thread | raw e-mail | index | archive | help
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@unixarea.de> - w http://www.unixarea.de/
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20101101090653.GA2874>