[olug] How to tell the FS type of a partition?
Matthew G. Marsh
mgm at midwestlinux.com
Tue Jul 16 19:24:33 UTC 2002
On Tue, 16 Jul 2002, Brian Roberson wrote:
> slow down brian.... ;-) read the question...... NOTE the "features"
> section... has_journal = ext3
mount -f -v /dev/{insert device} /{insert mount point}
the -f flag tells mount to do everything _except_ the actual mount. Since
mount will automatically read the superblock to determine the filesystem
type this will differentiate between ext2 and ext3 - Note that the ONLY
real difference between ext2 and ext3 is the existance of the journal
file. No journal file = no mount ext3... 'k?
> 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: "Brian Roberson" <roberson at olug.org>
> To: <olug at olug.org>
> Sent: Tuesday, July 16, 2002 1:59 PM
> Subject: Re: [olug] How to tell the FS type of a partition?
>
>
> > fdisk -l /dev/devicename
> >
> >
> > ----- Original Message -----
> > From: "Phil Brutsche" <phil at brutsche.us>
> > To: <olug at olug.org>
> > Sent: Tuesday, July 16, 2002 1:57 PM
> > 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
>
> -_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
>
--------------------------------------------------
Matthew G. Marsh, President
Paktronix Systems LLC
1506 North 59th Street
Omaha NE 68104
Phone: (402) 932-7250
Email: mgm at midwestlinux.com
WWW: http://www.midwestlinux.com
--------------------------------------------------
-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
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