[olug] How to tell the FS type of a partition?

Jonathan Warren jonwarren at cox.net
Tue Jul 16 20:42:26 UTC 2002


If it is Reiserfs tune2fs doesn't give you any meaningful information.

On Tue, Jul 16, 2002 at 02:56:14PM -0500, Brian Roberson wrote:
> no, fstab does not get updated by the mount command, so if you converted the
> fs to ext3, fstab would not show you this.
> 
> the only way to be sure is to use the tune2fs command to look at the
> superblock, OR the mount command to force a suberblock discovery.
> 
> 
> here is the output of a ext2 fs:
> 
> linux13:~ # tune2fs -l /dev/sda1
> tune2fs 1.19, 13-Jul-2000 for EXT2 FS 0.5b, 95/08/09
> Filesystem volume name:   <none>
> Last mounted on:          <not available>
> Filesystem UUID:          25a79d53-77bc-4bf4-9587-31df77d38bfa
> Filesystem magic number:  0xEF53
> Filesystem revision #:    1 (dynamic)
> Filesystem features:      filetype sparse_super
> Filesystem state:         not clean
> Errors behavior:          Continue
> Filesystem OS type:       Linux
> Inode count:              78312
> Block count:              312007
> Reserved block count:     15600
> Free blocks:              187601
> Free inodes:              68943
> First block:              1
> Block size:               1024
> Fragment size:            1024
> Blocks per group:         8192
> Fragments per group:      8192
> Inodes per group:         2008
> Inode blocks per group:   251
> Last mount time:          Mon Jun 10 06:05:02 2002
> Last write time:          Tue Jul 16 13:01:36 2002
> Mount count:              1
> Maximum mount count:      20
> Last checked:             Mon Jun 10 06:05:02 2002
> Check interval:           15552000 (6 months)
> Next check after:         Sat Dec  7 05:05:02 2002
> Reserved blocks uid:      0 (user root)
> Reserved blocks gid:      0 (group root)
> First inode:              11
> Inode size:               128
> linux13:~ #
> 
> 
> here is the output of an ext3 fs:
> 
> 
> users:~ # tune2fs -l /dev/hda1
> tune2fs 1.24a (02-Sep-2001)
> Filesystem volume name:   <none>
> Last mounted on:          <not available>
> Filesystem UUID:          9ab1ec90-360f-45a2-a0ba-29063088b899
> Filesystem magic number:  0xEF53
> Filesystem revision #:    1 (dynamic)
> Filesystem features:      has_journal filetype sparse_super
> Filesystem state:         not clean
> Errors behavior:          Continue
> Filesystem OS type:       Linux
> Inode count:              78312
> Block count:              313236
> Reserved block count:     15661
> Free blocks:              113224
> Free inodes:              59350
> First block:              1
> Block size:               1024
> Fragment size:            1024
> Blocks per group:         8192
> Fragments per group:      8192
> Inodes per group:         2008
> Inode blocks per group:   251
> Last mount time:          Mon Mar 18 04:56:25 2002
> Last write time:          Tue Jul 16 02:00:10 2002
> Mount count:              1
> Maximum mount count:      25
> Last checked:             Mon Mar 18 04:56:16 2002
> Check interval:           15552000 (6 months)
> Next check after:         Sat Sep 14 05:56:16 2002
> Reserved blocks uid:      0 (user root)
> Reserved blocks gid:      0 (group root)
> First inode:              11
> Inode size:               128
> Journal UUID:             <none>
> Journal inode:            8
> Journal device:           0x0000
> First orphan inode:       0
> users:~ #
> 
> 
> 
> 
> ----- Original Message -----
> From: "Jeff Hinrichs" <JeffH at delasco.com>
> To: <olug at olug.org>
> Sent: Tuesday, July 16, 2002 2:06 PM
> Subject: RE: [olug] How to tell the FS type of a partition?
> 
> 
> > Would fstab be a reliable source of information?
> >
> > thanks
> >
> > > -----Original Message-----
> > > From: Phil Brutsche [mailto:phil at brutsche.us]
> > > Sent: Tuesday, July 16, 2002 1:57 PM
> > > To: olug at olug.org
> > > Subject: Re: [olug] How to tell the FS type of a partition?
> > >
> > >
> > > Jeff Hinrichs wrote:
> > > > How do you find out what File system a partition is
> > > formatted as? i.e.
> > > > ext2 or ext3?
> > >
> > > Just about the only way to reliably find out is to try to
> > > mount it.  All
> > > Linux partitions are of type 0x82 or 0x83 :(
> > >
> > >
> > > Phil
> > >
> > >
> > > -_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
> > >
> > > For help contact olug-help at olug.org - run by ezmlm
> > > to unsubscribe, send mail to olug-unsubscribe at olug.org
> > > or `mail olug-unsubscribe at olug.org < /dev/null`
> > > (c)1998-2002 OLUG http://www.olug.org
> > >
> > > -_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
> > >
> > >
> >
> > -_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
> >
> > For help contact olug-help at olug.org - run by ezmlm
> > to unsubscribe, send mail to olug-unsubscribe at olug.org
> > or `mail olug-unsubscribe at olug.org < /dev/null`
> > (c)1998-2002 OLUG http://www.olug.org
> >
> > -_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
> >
> 
> 
> -_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
> 
> For help contact olug-help at olug.org - run by ezmlm
> to unsubscribe, send mail to olug-unsubscribe at olug.org
> or `mail olug-unsubscribe at olug.org < /dev/null`
> (c)1998-2002 OLUG http://www.olug.org
> 
> -_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_

-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_

For help contact olug-help at olug.org - run by ezmlm
to unsubscribe, send mail to olug-unsubscribe at olug.org
or `mail olug-unsubscribe at olug.org < /dev/null`
(c)1998-2002 OLUG http://www.olug.org

-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_




More information about the OLUG mailing list