Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/returninfinity/bmfs
Utility for accessing a disk formatted with BMFS
https://github.com/returninfinity/bmfs
Last synced: 2 days ago
JSON representation
Utility for accessing a disk formatted with BMFS
- Host: GitHub
- URL: https://github.com/returninfinity/bmfs
- Owner: ReturnInfinity
- License: other
- Created: 2013-01-03T03:41:38.000Z (almost 12 years ago)
- Default Branch: master
- Last Pushed: 2024-08-25T20:06:19.000Z (3 months ago)
- Last Synced: 2024-08-25T21:38:52.249Z (3 months ago)
- Language: C
- Homepage:
- Size: 498 KB
- Stars: 49
- Watchers: 12
- Forks: 32
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# BMFS
Utility for accessing a disk or disk image formatted with BareMetal File System (BMFS).
## Prerequisites
The scripts in this repo depend on a Debian-based Linux system like [Ubuntu](https://www.ubuntu.com/download/desktop) or [Elementary](https://elementary.io). macOS is also supported.
- [GCC](https://gcc.gnu.org) - C compiler for building C/C++ applications.
In Linux this can be completed with the following command:
sudo apt install gcc
## Building BMFS
./build.sh
*You can copy the bmfs binary to a location in the system path for ease of use*
## Creating a new, formatted disk image
bmfs disk.image initialize 128M
## Creating a new disk image that boots BareMetal OS
bmfs disk.image initialize 128M path/to/bmfs_mbr.sys path/to/pure64.sys path/to/kernel64.sys
or if the Pure64 boot loader and BareMetal-OS kernel are combined into one file:
bmfs disk.image initialize 128M path/to/bmfs_mbr.sys path/to/software.sys
## Formatting a disk image
bmfs disk.image format
In Linux/Unix/Mac OS X you can also format a physical drive by passing the correct path.
sudo bmfs /dev/sdc format
## Display BMFS disk contents
bmfs disk.image list
Sample output:
C:\baremetal>utils\bmfs BMFS-256-flat.vmdk list
Disk Size: 256 MiB
Name | Size (B)| Reserved (MiB)
==========================================================================
test.app 31 2
AnotherFile.app 1 2
helloc.app 800 2## Create a new file and reserve space for it
bmfs disk.image create FileName.Ext
You will be prompted for the size to reserve.
Alternately, you can specify the reserved size after the file name. The reserved size is given in Megabytes and will automatically round up to an even number.
bmfs disk.image create FileName.Ext 4
## Read from BMFS to a local file
bmfs disk.image read FileName.Ext
## Write a local file to BMFS
bmfs disk.image write FileName.Ext
## Delete a file on BMFS
bmfs disk.image delete FileName.Ext
// EOF