On Mon, 2005-08-15 at 06:07 +1200, Keith McGavin wrote:
> On Sun, Aug 14, 2005 at 05:53:58PM +1200, John Mallett wrote:
> > With out mounting a file system. How would I go about finding out what 
> > filesystems I have on my system. ie Vfat or ext2 
> > is there a simple command
> 
> 
> 'cfdisk' displays filesystem partitions and types.
> 
> 'fdisk -l' is used in shell scripts.

AFAIK it doesn't say what filesystem is on the partition, just whether
it is marked in the partition table as "linux" "linux swap" etc. It
won't tell you whaether a partition marked "linux" is actually ext2,
ext3, reiser, xfs etc etc.

> 
> If you intend to partition your hardrive I recommend 'cfdisk'
> Newbies using 'fdisk' have a habit of writing overlapping
> partitions that result in filesystems being lost.
> 
> from the 'fdisk' manual.
> 
> 
> BUGS
>        There  are  several  *fdisk programs around.  Each has its
>        problems and strengths.  Try them  in  the  order  cfdisk,
>        fdisk,  sfdisk.   (Indeed,  cfdisk  is a beautiful program
>        that has strict requirements on the  partition  tables  it
>        accepts,  and  produces high quality partition tables. Use
>        it if you can.  fdisk is a buggy program that  does  fuzzy
>        things - usually it happens to produce reasonable results.
>        Its single advantage is that it has some support  for  BSD
>        disk  labels and other non-DOS partition tables.  Avoid it
>        if you can. 
> 
> 
> ---
> keithmg.
>   
> 
-- 
Nick Rout <[EMAIL PROTECTED]>

Reply via email to