Coder Social home page Coder Social logo

benchos / mimg Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 5 KB

benOS Native Executable For Mounting and Partitioning Images.

Home Page: https://benos.io

License: MIT License

Shell 100.00%
benos mimg benny rocketainer linux mount-image partitioning

mimg's Introduction

mimg (Image Mounter / Partitioner)

benOSShield-OfficialbenOSShield-Utilsbuild statusJavaScript Style Guide benOSRepoHeader
benOS Native Executable For Mounting and Partitioning Images.

Table of Contents

Background

benOS Native Executable For Mounting and Partitioning Images. mimgTerminalScreen

With NPM

npm install -g mimg

With YARN

yarn add global mimg

Download Executable Directly

curl -fs https://raw.githubusercontent.com/benchOS/mimg/master/install | sh

Usage

CLI Menu

benOS Image Mounter & Partitioner
Usage: mimg <image> <mnt> [options]

 --partition, -p [partition-number]
 --force, -f     (force mount)
 --read-only, -r (read-only mount)

Basic Usage

Use it just as you would mount but instead of passing a /dev device pass a disk image file.

mimg ubuntu.img mnt

To mount an OS image to a specific partition, use the -p parameter.

# mount partition 5
mimg ubuntu.img mnt -p 5

Creating IMG Files

To create raw image files you can use fallocate

# make a ~1gb image
fallocate ubuntu-16-04.img -l 1000000000

Then using fdisk you can make a partition table

# to simply make a single partition, follow this
fdisk ubuntu-16-04.img
n<enter>
<enter>
<enter>
<enter>
w<enter>

Tips For Creating IMG Files

  • You can always make more than one partition and use one to for the OS itself and boot.
  • Always use ext4 for partition formatting.

Finalizing & Mounting

You can prepare the image for mounting and then mount this image using mimg

fdisk -l ubuntu-16-04.img
mkfs.ext4 -F -E offset=$((2048 * 512)) ubuntu-16-04.img
mimg ubuntu-16-04.img mnt

Related Projects

  • benOS - benOS Decentralized Operating System
  • benny - benOS Native Container Builder
  • gospawn - Bootstrap Spawner For Benny
  • bennyfile - Build File Library For Benny Containers
  • thinbit - BitField Library For Benny

Why The Internet Must Have A Decentralized Alternative

Today, the internet is more censored than ever and it's only getting worse. Our mission with the dWeb Protocol was to create a truly powerful P2P protocol, around benOS, dBrowser and many of benOS' underlying libraries to bring the most powerful P2P products to life. In the last few months, by rebuilding P2P technologies that have existed since the early 2000s, we have built a powerful suite of decentralized libraries for benOS and the Bench Network, that will only improve over time. But we also brought new ideas to life, like:

and more! These were the protocols and libraries that we needed to create a completely decentralized operating system, where everything was distributed, protected and people were once again in control of their data. benOS is made up of over 1100+ different libraries that we are releasing on a day-by-day basis as we move them to a stable/production state. While financial support is great for this open source project, we need developers who want to be some of the first to build the dApps and dSites of the future. We have to take back what our forefathers originally designed for freedom, by making our code the law, instead of releasing weak and highly centralized applications where law cannot be applied because the code lacks the foundation to implement a legal framework for itself. Join us for a truly historic journey on the BenchLabs Telegram. See you there.

Bench On The dWeb

dweb://bench.dnames.io // dNames Short Link dweb://3EDAE09848B77401445B7739CAFCE442DDE1752AED63025A1F94E6A86D7E9F04 // dWeb Key Link

In order to make the links above clickable or to view these links period, you will need dBrowser (Available for Mac OSX, Linux, Windows and soon to be available on iOS/Android)

"The Code Is The Law" - Stan Larimer - Godfather of BitShares.

License

MIT

JavaScript Style Guide
forthebadge
dWebShield

Copyright

Copyright (c) 2018 Bench Open Systems. All rights reserved.

mimg's People

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.