Editing
Jail Server Install
(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!
=== make a data partition === IF you didn't format the data partition during sysinstall: Create a g partition on 2nd mirror β bsdlabel no longer works (below shows d partition made with sysinstall): <pre>jail8 /usr/home/bb# gpart show => 63 285474735 mfid0 MBR (136G) 63 285458922 1 freebsd [active] (136G) 285458985 15813 - free - (7.7M) => 0 285458922 mfid0s1 BSD (136G) 0 524288 1 freebsd-ufs (256M) 524288 12582912 2 freebsd-swap (6.0G) 13107200 524288 4 freebsd-ufs (256M) 13631488 524288 5 freebsd-ufs (256M) 14155776 8388608 6 freebsd-ufs (4.0G) 22544384 262914538 7 freebsd-ufs (125G) => 63 584843175 mfid1 MBR (279G) 63 584830197 1 freebsd [active] (279G) 584830260 12978 - free - (6.3M) => 0 584830197 mfid1s1 BSD (279G) 0 16777216 2 freebsd-swap (8.0G) 16777216 568052981 4 freebsd-ufs (271G) jail8 /usr/home/bb# gpart show mfid1s1 => 0 584830197 mfid1s1 BSD (279G) 0 16777216 2 freebsd-swap (8.0G) 16777216 568052981 4 freebsd-ufs (271G) # gpart list mfid1s1 Geom name: mfid1s1 fwheads: 255 fwsectors: 63 last: 584830196 first: 0 entries: 8 scheme: BSD Providers: 1. Name: mfid1s1b Mediasize: 8589934592 (8.0G) Sectorsize: 512 Mode: r1w1e0 rawtype: 1 length: 8589934592 offset: 0 type: freebsd-swap index: 2 end: 16777215 start: 0 2. Name: mfid1s1d Mediasize: 290843126272 (271G) Sectorsize: 512 Mode: r0w0e0 rawtype: 7 length: 290843126272 offset: 8589934592 type: freebsd-ufs index: 4 end: 584830196 start: 16777216 Consumers: 1. Name: mfid1s1 Mediasize: 299433060864 (279G) Sectorsize: 512 Mode: r1w1e1 # gpart delete -i 4 mfid1s1 mfid1s1d deleted jail8 /usr/home/bb# gpart list mfid1s1 Geom name: mfid1s1 fwheads: 255 fwsectors: 63 last: 584830196 first: 0 entries: 8 scheme: BSD Providers: 1. Name: mfid1s1b Mediasize: 8589934592 (8.0G) Sectorsize: 512 Mode: r1w1e0 rawtype: 1 length: 8589934592 offset: 0 type: freebsd-swap index: 2 end: 16777215 start: 0 Consumers: 1. Name: mfid1s1 Mediasize: 299433060864 (279G) Sectorsize: 512 Mode: r1w1e1 # gpart show mfid1s1 => 0 584830197 mfid1s1 BSD (279G) 0 16777216 2 freebsd-swap (8.0G) 16777216 568052981 - free - (271G) # gpart add -t freebsd-ufs -i 7 mfid1s1 mfid1s1g added # gpart show mfid1s1 => 0 584830197 mfid1s1 BSD (279G) 0 16777216 2 freebsd-swap (8.0G) 16777216 568052981 7 freebsd-ufs (271G)</pre> Here's how we USED to do it with bsdlabel: bsdlabel -e /dev/mfid0s1 given: <pre># /dev/aacd0s1: 8 partitions: # size offset fstype [fsize bsize bps/cpg] a: 262144 0 4.2BSD 2048 16384 16392 b: 4194304 262144 swap c: 143363997 0 unused 0 0 # "raw" part, don't edit d: 524288 4456448 4.2BSD 2048 16384 32776 e: 524288 4980736 4.2BSD 2048 16384 32776 f: 6291456 5505024 4.2BSD 2048 16384 28552</pre> new offset = 6291456 + 5505024 = 11796480<br> new size is size for 'c' partition minus the new start from above<br> 143363997 - 11796480 = 131567517 So:<br> g: 131567517 11796480 unused 0 0
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