Re: blkid: need to determine whether it is "safe" to overwrite a block device

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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


[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux