Am 03.02.2011 11:20, schrieb Voelker, Bernhard: > Thomas Bächler wrote: >> I would wish I could have a way to use blkid in a way, such that I will >> be able to determine (through its return value) whether a device >> contains any known file system, raid superblock, partition table, ... - >> anything I would not want to overwrite. > > what about `file -s "${device}"`? > > Bye, > Berny I hadn't considered that. Is its file system support as reliable and complete as blkid? I have to think about it, but I would still prefer blkid if possible.
Attachment:
signature.asc
Description: OpenPGP digital signature