add disk in openbsd
Posted on May 7th, 2010 by danno
quick notes from a recent addition (IDE drive)
- fdisk -i sd0
- disklabel -E sd0
- add your partition size info and the "p m" and then "q"
- go back and disklabel -e sd0
- use the first line as the actual name of the device as given from the /dev directory (in this case, rsd0c)
- newfs rsd0c
- mkdir storage
- mount /dev/sd0c /storage
- nano /etc/fstab
- type in /dev/sd0c /storage ffs rw 1 1
And voila! I now have a /storage directory with a new hard drive attached to it.