-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
burn: sdcard: size of SDCard #47
Comments
cms burn info reports the sd card size on linux
|
do we have a diffenet command that gets only one number? |
so we can use what we have and use or we just use info and parse the first value
|
WINDOWS Sledgehammer@Sledgehammer MINGW64 ~
$ cms burn info
# ----------------------------------------------------------------------
# This is a Windows Computer
# ----------------------------------------------------------------------
+----------+-------+-------+---------+-------+-----------+--------+----------+--------+----------+
| Volume | ### | Ltr | Label | Fs | Type | Size | Status | Info | dev |
|----------+-------+-------+---------+-------+-----------+--------+----------+--------+----------|
| Volume | 2 | E | boot | FAT32 | Removable | 256 MB | Healthy | | /dev/sdb |
+----------+-------+-------+---------+-------+-----------+--------+----------+--------+----------+
+--------+-----------------+-----------------+-----------------------------------+---------+--------------+--------+
| Disk | InterfaceType | MediaType | Model | Model | Partitions | Size |
|--------+-----------------+-----------------+-----------------------------------+---------+--------------+--------|
| 1 | USB | Removable Media | Generic STORAGE DEVICE USB Device | 2 | 59 GB | Online |
+--------+-----------------+-----------------+-----------------------------------+---------+--------------+--------+
WARNING: We could not find your USB reader in the list of known readers
# Timer: 1.9406s Load: 0.0070s burn info
(ENV3)
Sledgehammer@Sledgehammer MINGW64 ~
|
fix field names
compare also with macos |
For SDCard size we need to find out how to get the size in
gregor can help once you find it out.
we need a function thatreturns the size of an sd card given the device
def size(device=dev/disk2):
return number in bytes
The text was updated successfully, but these errors were encountered: