in reply to filesystem type

On windows: Win32::FsType(), on unix parse the output of mount -n, under linux

my @result = (); foreach (split("\n",`mount -n`)) { push @result, (split)[0,4]; } my %result = @result;
will put the filesystem as value of the key "mountpoint" in the hash %result;

regards,
tomte


An intellectual is someone whose mind watches itself.
-- Albert Camus

Replies are listed 'Best First'.
Re^2: filesystem type
by Eyck (Priest) on Jun 17, 2005 at 08:09 UTC
    mount -n will know only about supported filessytems, you can try file -s /dev/device,
    pokurcz:# file -s /dev/hda1 /dev/hda1: Linux rev 1.0 ext2 filesystem data (mounted or unclean) pokurcz:# file -s /dev/hda2 /dev/hda2: Linux/i386 swap file (new style) 1 (4K pages) size 124502 p +ages