Hello Ian, On Wed, Aug 4, 2010 at 10:06 AM, Ian Dexter R. Marquez <[email protected]> wrote: > On Wed, Aug 4, 2010 at 08:24, Marvin Pascual <[email protected]> wrote: >> Hello all, >> >> How can I check if a block device (partition) has one or any or all of >> the following characteristics: >> >> [1] raw >> [2] has content >> [3] formatted >> >> but without actually mounting it? > > You may want to look at udevinfo and stat.
I can't find the udevinfo in my distro and from its repositories. For the stat command, I'm not sure how I can make use of this tool to check whether a block device contains a file or directory other than the lost+found when it was formatted with an ext2/3/4 filesystem. Thank you. Regards, Marvin _________________________________________________ Philippine Linux Users' Group (PLUG) Mailing List http://lists.linux.org.ph/mailman/listinfo/plug Searchable Archives: http://archives.free.net.ph

