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

Robert Nichols rnicholsNOSPAM at comcast.net
Sat Jun 25 16:49:43 UTC 2011


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.




More information about the CentOS mailing list