Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/simplyceo/dwrite
C script to write or flash a bootable device.
https://github.com/simplyceo/dwrite
bootable-media c flash format
Last synced: about 8 hours ago
JSON representation
C script to write or flash a bootable device.
- Host: GitHub
- URL: https://github.com/simplyceo/dwrite
- Owner: SimplyCEO
- License: mit
- Created: 2020-03-09T04:44:27.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2021-02-17T00:46:51.000Z (over 3 years ago)
- Last Synced: 2024-05-03T06:53:56.189Z (6 months ago)
- Topics: bootable-media, c, flash, format
- Language: C
- Homepage:
- Size: 29.3 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# dwrite
Shell script to format & write or flash a bootable device.Usage:
First compile to run this script:
```shell
$ gcc dwrite.c -o dwrite; ./dwrite -h
```## INFORMATION ##
-h: prints the help option.
-c: check devices.
-o: the path of the device.
-i: the ISO image.
-v: show the version of the script.
-F: format tables.(FAT32/EXT4/NTFS/ZERO)
## TO FORMAT THE DEVICE ##
Use the device path and the format that you desire to write:
```shell
$ ./dwrite -o /dev/sdx -F EXT4
```## TO FLASH A IMAGE TO THE DEVICE ##
Use the ISO path and device flags:
```shell
$ ./dwrite -o /dev/sdx -i /path/of/the.iso
```Use the main partition to describe it. The script will automatically write in the correct table.
Example: /dev/sdb | /dev/sdc | /dev/sde...
## NOTE ##
You can also use it without enter in the folder where the script is:
```shell
$ mv dwrite /usr/local/sbin/dwrite
$ dwrite
```
Or as a ROOT:
```shell
# mv dwrite /usr/sbin/dwrite
# dwrite
```This script have implemented sudo, because to write partitions you need to have the administrator's authority.