On Wed, Aug 4, 2010 at 10:40 AM, Marvin Pascual <bin...@gmail.com> wrote:
> I can use a similar command below to check whether the partition is
> formatted or not:
>
> testdisk /list $BLOCK_DEVICE | tail -n 1 | grep -i Partition
>
> If there will be an output to the above command, that only shows that
> the block device is not formatted.
>
> Thank you, Zak! ;-)

No prob! :)

> Now, whether or not the block device contains already any file(s) or
> directory(ies) other than the lost+found directory for the ext2/3/4
> filesystem.

That would probably make creative use of debugfs :)

-- 
Zak B. Elep  ||  zakame.net
1486 7957 454D E529 E4F1  F75E 5787 B1FD FA53 851D
_________________________________________________
Philippine Linux Users' Group (PLUG) Mailing List
http://lists.linux.org.ph/mailman/listinfo/plug
Searchable Archives: http://archives.free.net.ph

Reply via email to