Open spetrovi opened 2 years ago
Hmm, didn't find any good solution yet. Any suggestions appreciated :)
There are Linux CLI utilities that tell you whether there is a partition (parted, blkid), filesystem or LVM device (pvs). It's a bit complicated and non-portable to other operating systems.
Despite the warnings I'm putting everywhere, someone might try to execute rawdevice testing on a used device, which would lead to corruption of data or file system present on the device. Let's research some way to examine the given device before going on with rawdevice testing