FreeBSD

Swap

if swap is not going past a certain limit and equalling the total amount added,

edit /boot/loader.conf and increase kern.maxswzone, then reboot. Get this number times 4 and then increase it, eg.

kern.maxswzone=18874368

New Disk

[micheal@aleei /usr/ports/lang/go]$ doas gpart destroy -F da0
da0 destroyed
[micheal@aleei /usr/ports/lang/go]$ doas gpart create -s GPT da0
da0 created
[micheal@aleei /usr/ports/lang/go]$ doas gpart add -t freebsd-ufs -a 1M da0
da0p1 added
[micheal@aleei /usr/ports/lang/go]$ doas gpart show
=> 63 60714945 mmcsd0 MBR (29G)
 63 1008 - free - (504K)
 1071 102312 1 fat32lba [active] (50M)
 103383 60607529 2 freebsd (29G)
 60710912 4096 - free - (2.0M)

=> 0 60607529 mmcsd0s2 BSD (29G)
 0 41 - free - (21K)
 41 60607488 1 freebsd-ufs (29G)

=> 40 312581728 da0 GPT (149G)
 40 2008 - free - (1.0M)
 2048 312578048 1 freebsd-ufs (149G)
 312580096 1672 - free - (836K)

=> 40 312581728 diskid/DISK-C60212660327 GPT (149G)
 40 2008 - free - (1.0M)
 2048 312578048 1 freebsd-ufs (149G)
 312580096 1672 - free - (836K)
[micheal@aleei /usr/ports/lang/go]$ doas newfs -U /dev/da0
da0 da0p1
[micheal@aleei /usr/ports/lang/go]$ doas newfs -U /dev/da0p1 
/dev/da0p1: 152626.0MB (312578048 sectors) block size 32768, fragment size 4096
 using 244 cylinder groups of 626.09MB, 20035 blks, 80256 inodes.
 with soft updates

super-block backups (for fsck_ffs -b #) at:
192, 1282432, 2564672, 3846912, 5129152, 6411392, 7693632, 8975872, 10258112, 11540352, 12822592, 14104832, 15387072, 16669312, 17951552, 19233792, 20516032, 21798272, 23080512, 24362752, 25644992, 26927232, 28209472, 29491712, 30773952, 32056192, 33338432, 34620672, 35902912, 37185152, 38467392, 39749632, 41031872, 42314112, 43596352, 44878592, 46160832, 47443072, 48725312, 50007552, 51289792, 52572032, 53854272, 55136512, 56418752, 57700992, 58983232, 60265472, 61547712, 62829952, 64112192, 65394432, 66676672, 67958912, 69241152, 70523392, 71805632, 73087872, 74370112, 75652352, 76934592, 78216832, 79499072, 80781312, 82063552, 83345792, 84628032, 85910272, 87192512, 88474752, 89756992, 91039232, 92321472, 93603712, 94885952, 96168192, 97450432, 98732672, 100014912, 101297152, 102579392, 103861632, 105143872, 106426112, 107708352, 108990592, 110272832, 111555072, 112837312, 114119552, 115401792, 116684032, 117966272, 119248512, 120530752, 121812992, 123095232, 124377472, 125659712, 150022272, 151304512, 152586752, 153868992, 155151232, 156433472, 157715712, 158997952, 160280192, 161562432, 162844672, 164126912, 165409152, 166691392, 167973632, 169255872, 170538112, 171820352, 173102592, 174384832, 175667072, 176949312, 178231552, 179513792, 180796032, 182078272, 183360512, 184642752, 185924992, 187207232, 188489472, 189771712, 191053952, 192336192, 193618432, 194900672, 196182912, 197465152, 198747392, 200029632, 201311872, 202594112, 203876352, 205158592, 206440832, 207723072, 209005312, 210287552, 211569792, 212852032, 214134272, 215416512, 216698752, 217980992, 219263232, 220545472, 221827712, 223109952, 224392192, 225674432, 226956672, 228238912, 229521152, 230803392, 232085632, 233367872, 234650112, 235932352, 237214592, 238496832, 239779072, 241061312, 242343552, 243625792, 244908032, 246190272, 247472512, 248754752, 250036992, 251319232, 252601472, 253883712, 255165952, 256448192, 257730432, 259012672, 260294912, 261577152, 262859392, 264141632, 265423872, 266706112, 267988352, 269270592, 270552832, 271835072, 273117312, 274399552, 275681792, 276964032, 278246272, 279528512, 280810752, 282092992, 283375232, 284657472, 285939712, 287221952, 288504192, 289786432, 291068672, 292350912, 293633152, 294915392, 296197632, 297479872, 298762112, 300044352, 301326592, 302608832, 303891072, 305173312, 306455552, 307737792, 309020032, 310302272, 311584512

Notes mentioning this note


Here are all the notes in this garden, along with their links, visualized as a graph.