Date: Mon, 04 Jun 2012 14:59:44 -0600 From: Gary Aitken <freebsd@dreamchaser.org> To: Warren Block <wblock@wonkity.com> Cc: FreeBSD Mailing List <freebsd-questions@freebsd.org> Subject: Re: bsdlabel geometry params Message-ID: <4FCD21C0.50200@dreamchaser.org> In-Reply-To: <alpine.BSF.2.00.1206041424150.945@wonkity.com> References: <4FCCBDF4.1030008@dreamchaser.org> <alpine.BSF.2.00.1206041424150.945@wonkity.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On 06/04/12 14:26, Warren Block wrote: > On Mon, 4 Jun 2012, Gary Aitken wrote: > >> According the the handbook, one should do the following to set up a new disk: >> >> 1 dd if=/dev/zero of=/dev/da1 bs=1k count=1 >> 2 fdisk -BI da1 #Initialize your new disk >> 3 bsdlabel -B -w da1s1 auto #Label it. >> 4 bsdlabel -e da1s1 # Edit the bsdlabel just created and add any partitions. >> 5 mkdir -p /1 >> 6 newfs /dev/da1s1e # Repeat this for every partition you created. >> 7 mount /dev/da1s1e /1 # Mount the partition(s) >> 8 vi /etc/fstab # Add the appropriate entry/entries to your /etc/fstab. >> >> In step #4, bsdlabel gives you a label with zeros for fsize, bsize, bps/cpg >> Is it necessary to fill these in, or is there a way to get some reasonable defaults? >> "newfs -N" will give you numbers for bsize and fsize, but what about bps/cpg? >> >> What does the install process do for this step? I don't remember ever having to deal with it. > > What part of the Handbook? I would suggest using gpart(8), it makes GPT partitions easy, and nasty old MBR partitions aren't any worse than with fdisk/bsdlabel. 19.3.2 Thanks
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4FCD21C0.50200>