macmount
Mount an OS X disk to the default location.
Installation
Install macmount by running:
$ npm install --save macmountYou can also install a macmount CLI tool with:
$ npm install --global macmountDocumentation
macmount.mount(disk, callback)
This function handles raw disk (in the form of /dev/rdiskN) automatically.
Kind: static method of macmount
Summary: Mount an OS X disk to the default location
Access: public
| Param | Type | Description |
|---|---|---|
| disk | String |
disk |
| callback | function |
callback (error) |
Example
var macmount = require('macmount');
macmount.mount('/dev/disk2', function(error) {
if (error) {
throw error;
}
});Tests
Run the test suite by doing:
$ npm testDevelopment
macmount wraps a native command line utility that must be built with Xcode.
If you make edits to the executable source make sure to build it afterwards with:
$ npm run buildThe command line utility can be used directly as follows:
$ ./bin/macmount diskContribute
- Issue Tracker: github.com/resin-io-modules/macmount/issues
- Source Code: github.com/resin-io-modules/macmount
Support
If you're having any problem, please raise an issue on GitHub and the Resin.io team will be happy to help.
License
macmount is free software, and may be redistributed under the terms specified in the license.