> For the complete documentation index, see [llms.txt](https://cbfs.ortusbooks.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://cbfs.ortusbooks.com/digging-deeper/module-disks.md).

# Module Disks

<figure><img src="/files/R6dvv6lVqXTTVuqSXGnx" alt=""><figcaption><p>cbfs with HVMC</p></figcaption></figure>

If you are creating your own ColdBox modules, you can create disks from those modules in the `configure()` lifecycle method in the `ModuleConfig.cfc`.  You will do so by creating a `cbfs` key and adding either module `disks` or global disks.

* `disks` : The collection of disks the module collaborates.  Each name will be suffixed with the module name: `key@moduleName`
* `globalDisks` : A collection of global name spaced disks the module contributes to the entire application.

<pre class="language-javascript"><code class="lang-javascript">component {
<strong>  function configure(){
</strong>	settings = {
	  // CBFS Module
	  cbfs : {
		// Disks that will be namespaced with the module name @diskModule
		// temp@diskModule
		// nasa@diskModule
		disks : {
			"temp" : { provider : "Ram" },
			"nasa" : { provider : "Ram" }
		},
		// No namespace in global spacing
		// temp
		// nasa
		globalDisks : {
			// Should be ignored, you can't override if it exists
			"temp" : { provider : "Ram" },
			"nasa" : { provider : "Ram" }
		}
	   }
	};
  }	
}
</code></pre>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://cbfs.ortusbooks.com/digging-deeper/module-disks.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
