A macOS-only command-line tool for safely formatting removable media devices for use with hublink.cloud.
- Safe detection of removable media only (no system drives)
- FAT32 formatting using macOS diskutil
- Automatic configuration file creation
- Interactive terminal interface
- Safe drive ejection via diskutil
- Python 3.6 or higher
- macOS only (relies on diskutil commands)
- Clone this repository:
git clone [repository-url]
cd HublinkJsonFormatter- Create and activate a virtual environment:
python3 -m venv venv
source venv/bin/activateformat_meta_json.py- For formatting Hublink Node drives (requires meta.json template)format_hublink_config.py- For formatting Hublink Gateway drivesmeta.json- Configuration template for NodesREADME.md- Documentation.gitignore- Git ignore rules
- Ensure meta.json is configured with your desired settings
- Run:
python format_meta_json.py - Follow the prompts to:
- Select a drive
- Enter a 6-character base name
- Confirm and format
- Run:
python format_hublink_config.py - Follow the prompts to:
- Select a drive
- Enter the Hublink secret URL
- Enter the gateway name
- Confirm and format
- Only detects and lists removable drives
- Excludes system drives and internal disks
- Confirmation required before formatting
- Clear error messages
- Option to quit at any step
- Safe drive ejection
- Proper mount/unmount handling
Administrative privileges may be required for formatting operations.