Differences
This shows you the differences between two versions of the page.
disklabel [2013/08/22 12:04] |
disklabel [2013/08/22 12:04] (current) |
||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== disklabel ====== | ||
+ | * [[Filesystems]] | ||
+ | * [[NetBSD]] | ||
+ | * [[OpenBSD]] | ||
+ | * [[fdisk]] | ||
+ | * [[newfs]] | ||
+ | * [[raidctl]] | ||
+ | * [[softraid]] | ||
+ | * [[sysctl]] | ||
+ | |||
+ | * [[http://www.bsdnexus.com/NetBSD_onastick/install_guide.php|NetBSD on a Stick Install Guide]] - very good reference guide on how to setup partitions | ||
+ | |||
+ | Use ''disklabel'' to create and modify BSD partitions for a harddrive. | ||
+ | |||
+ | There are two levels of partitioning in BSD. ''fdisk'' will create a partition in the MBR table, one for BSD. disklabel takes that partition and then creates it's own partition table from there. | ||
+ | |||
+ | Remember that BSD uses ''a:'' for the first partition and ''d:'' for the next one. So the first partition would be ''/dev/vnd0a'' and the second ''/dev/vnd0d'' | ||
+ | |||
+ | == Create BSD Partitions (slices) == | ||
+ | |||
+ | In this example, ''/dev/sd1'' is the first partition on | ||
+ | |||
+ | <code> | ||
+ | disklabel -i -I sd1 | ||
+ | Enter '?' for help | ||
+ | partition> d | ||
+ | Filesystem type [?] [4.2BSD]: 4.2BSD | ||
+ | Start offset ('x' to start after partition 'x') [0c, 0s, 0M]: | ||
+ | Partition size ('$' for all remaining) [953344c, 1952448512s, 953344M]: $ | ||
+ | partition> W | ||
+ | Label disk [n]? y | ||
+ | Label written | ||
+ | partition> Q | ||
+ | </code> |