Never been to TextSnippets before?

Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world (or not, you can keep them private!)

Formatting a disk for use in FreeBSD (See related posts)

Given that this isn't something I do regularly, it's handy to have the commands to hand so I don't have to scroll through man pages trying to remember how to do it.

Clear the disk
# dd if=/dev/zero of=/dev/ad1 bs=1k count=1


Initialise it
# fdisk -BI ad1


Label it, then edit the labels created
# bsdlabel -B -w ad1s1 auto
# bsdlabel -e ad1s1


Format it with a filesystem
# newfs /dev/ad1s1e


Make directories and mount as appropriate, and you're done!

You need to create an account or log in to post comments to this site.


Related Posts