Skip to content

pmb/install: warn if the target disk is larger than expected

Administrator requested to merge fix/dont-overwrite-my-hdd into master

This throws a warning immediatly after starting the install command if the target sdcard might actually be an HDD. I've chosen the sysfs method since all other methods require root access to get the disk size.

This is an example on the same disk that caused my data loss:

Screenshot_from_2020-07-07_13-12-41

Edited by Administrator

Merge request reports

Loading