[CentOS] how do determine last file system on disk?

Rudi Ahlers Rudi at SoftDux.com
Sun Jun 26 07:59:01 UTC 2011


On Sat, Jun 25, 2011 at 6:49 PM, Robert Nichols
<rnicholsNOSPAM at comcast.net>wrote:

> On 06/25/2011 06:46 AM, Rudi Ahlers wrote:
> > Hi all,
> >
> > Does anyone know how to determine which file system a disk was formatted
> with,
> > if fdisk -l doesn't show it?
> [snip]
> > I need to see what data is on a bunch of disks that I found in storage
> and would
> > prefer to first check if there's anything of use on them before I format
> them
>
> Running "file -s /dev/{some_partition}" will generally tell you something.
>
> --
> Bob Nichols     "NOSPAM" is really part of my email address.
>                 Do NOT delete it.
>
> _______________________________________________
>
>

It did:

[root at HP-DL360 ~]# file -s /dev/sda
/dev/sda: empty




-- 
Kind Regards
Rudi Ahlers
SoftDux

Website: http://www.SoftDux.com
Technical Blog: http://Blog.SoftDux.com
Office: 087 805 9573
Cell: 082 554 7532
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.centos.org/pipermail/centos/attachments/20110626/f8fbbfd1/attachment.html>


More information about the CentOS mailing list