which fs on a partition?

Michael Hipp Michael
Fri Jul 13 09:07:45 PDT 2007


Jorge Almeida wrote:
> On Fri, 13 Jul 2007, C M Reinehr wrote:
> 
>> On Friday 13 July 2007 02:49, Jorge Almeida wrote:
>>> Anyone knows any tool that would guess which fs (if any) was installed
>>> on a unmounted partition? The purpose is to make sure that the partition
>>> doesn't hold any forgotten data before nuking it.
>> Try `file -s /dev/hda9` or whatever partition it is that you're testing.
>>
> $ file -s /dev/hda9
> /dev/hda9: data
> 
> Would this output mean something?

I generally do this:

   /lib/udev/vol_id /dev/hda9

Or where-ever 'vol_id' might be on your box.

Michael



More information about the Linux-users mailing list