Editing
FreeBSD Reference
(section)
Jump to navigation
Jump to search
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
= Creating a FreeBSD partition by hand on 5.x+ = Make sure nothing is mounted on /dev/aacd1s1e <pre>df Filesystem 1K-blocks Used Avail Capacity Mounted on /dev/aacd0s1a 126702 53952 62614 46% / devfs 1 1 0 100% /dev /dev/aacd0s1h 64723478 3701892 61021586 6% /mnt/data1 /dev/aacd1s1e 139035548 15496136 123539412 11% /mnt/data2 /dev/aacd0s1f 253678 462 232922 0% /tmp /dev/aacd0s1g 3045006 1771920 1029486 63% /usr /dev/aacd0s1e 253678 10162 223222 4% /var procfs 4 4 0 100% /proc umount /mnt/data2 bsdlabel -e /dev/aacd1s1 # /dev/aacd1s1: 8 partitions: # size offset fstype [fsize bsize bps/cpg] b: 4194304 0 swap c: 286679862 0 unused 0 0 # "raw" part, don't edit e: 282485558 4194304 4.2BSD 0 0 0</pre> going to create a new e, 2G, and the rest will be f, so replace e with: <pre>e: 4194304 4194304 4.2BSD 0 0 0 f: 278291254 8388608 4.2BSD 0 0 0</pre> make sure it took: <pre>bsdlabel /dev/aacd1s1 # /dev/aacd1s1: 8 partitions: # size offset fstype [fsize bsize bps/cpg] b: 4194304 0 swap c: 286679862 0 unused 0 0 # "raw" part, don't edit e: 4194304 4194304 4.2BSD 0 0 0 f: 278291254 8388608 4.2BSD 0 0 0</pre> create new fs: newfs /dev/aacd1s1e (output) newfs /dev/aacd1s1f (output) mkdir /mnt/data3 mount /dev/aacd1s1e /mnt/data2 mount /dev/aacd1s1f /mnt/data3 <pre>df Filesystem 1K-blocks Used Avail Capacity Mounted on /dev/aacd0s1a 126702 53954 62612 46% / devfs 1 1 0 100% /dev /dev/aacd0s1h 64723478 3701892 61021586 6% /mnt/data1 /dev/aacd0s1f 253678 462 232922 0% /tmp /dev/aacd0s1g 3045006 1771920 1029486 63% /usr /dev/aacd0s1e 253678 10162 223222 4% /var procfs 4 4 0 100% /proc /dev/aacd1s1e 2026030 4 1863944 0% /mnt/data2 /dev/aacd1s1f 134764734 4 123983552 0% /mnt/data3</pre>
Summary:
Please note that all contributions to JCWiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
JCWiki:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Navigation menu
Personal tools
Not logged in
Talk
Contributions
Create account
Log in
Namespaces
Page
Discussion
English
Views
Read
Edit
View history
More
Search
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Tools
What links here
Related changes
Special pages
Page information