Help - Search - Members - Calendar
Full Version: How To: Format New Disks
The Planet Forums > Operating Systems > BSD > BSD HOWTOs
jbyers
Probe the kernel messages on bootup with dmesg to verify that FreeBSD acurately detected the disk

/dev/ad[Number] represents IDE drives
/dev/da[Number] represents SCSI drives

You may use /stand/sysinstall --> Configure

FDISK -> Select "A" for entire disk
LABEL --> Select "C" to create new partition, size and mount point --> Exit from this menu to save changes

OR

Through the command line (CLI) with these commands: (Replace /dev/ad2 with appriopriate entry)

dd if=/dev/zero of=/dev/ad2 count=2
disklabel /dev/ad2 | disklabel -B -R -r ad2 /dev/stdin
#Multiple partitions
disklabel /dev/ad2 > /tmp/label
Edit disklabel to add partitions: vi /tmp/label

#Assuming only one partition
newfs /dev/ad2c

This was written as a basic guide - Any suggestions or comments are welcome! icon_wink.gif
geeshock
yes, if running freeBSD this is your bible

FreeBSD Handbook
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.