is there a way to tell that you have ext4 filesystem vs ext3
Antonio Olivares
olivares14031 at yahoo.com
Sat Oct 4 16:15:24 UTC 2008
--- On Fri, 10/3/08, Jeremy Katz <katzj at redhat.com> wrote:
> From: Jeremy Katz <katzj at redhat.com>
> Subject: Re: is there a way to tell that you have ext4 filesystem vs ext3
> To: olivares14031 at yahoo.com, "For testers of Fedora Core development releases" <fedora-test-list at redhat.com>
> Date: Friday, October 3, 2008, 6:43 PM
> On Fri, 2008-10-03 at 17:23 -0700, Antonio Olivares wrote:
> > Is there a way to tell if one is running ext4
> filesystem vs. ext3?
> >
> > I used ext4 boot parameter to install Fedora 10 Beta,
> but I am not sure that the filesystem is ext4 :(
>
> libblkid can tell the difference
> /sbin/blkid -s TYPE /path/to/blkdev
>
> Jeremy
Jeremy,
Thank you very much, and to all who also have answered. I have found out that i am running indeed ext4, but it says ext4dev, Here's the proof
[olivares at riohigh ~]$ su -
Password:
[root at riohigh ~]# /sbin/blkid -s TYPE /path/to/blkdev
[root at riohigh ~]# /sbin/blkid -s TYPE /dev/
Display all 238 possibilities? (y or n)
[root at riohigh ~]# /sbin/blkid -s TYPE /dev/s
scd0 sda2 sda6 sg0 snapshot stderr
scd1 sda3 sda7 sg1 snd/ stdin
sda sda4 sequencer sg2 sr0 stdout
sda1 sda5 sequencer2 shm/ sr1 systty
[root at riohigh ~]# /sbin/blkid -s TYPE /dev/sda1
/dev/sda1: TYPE="ext3"
[root at riohigh ~]# /sbin/blkid -s TYPE /dev/sda2
/dev/sda2: TYPE="ext3"
[root at riohigh ~]# /sbin/blkid -s TYPE /dev/sda3
/dev/sda3: TYPE="lvm2pv"
[root at riohigh ~]# /sbin/blkid -s TYPE /dev/sda4
[root at riohigh ~]# /sbin/blkid -s TYPE /dev/sda5
/dev/sda5: TYPE="ext4dev"
[root at riohigh ~]# /sbin/blkid -s TYPE /dev/sda6
/dev/sda6: TYPE="swap"
[root at riohigh ~]# /sbin/blkid -s TYPE /dev/sda7
/dev/sda7: TYPE="ext3"
[root at riohigh ~]# /sbin/blkid -s TYPE /dev/sda8
[root at riohigh ~]# fdisk -l
Disk /dev/sda: 320.0 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0xaf7caf7c
Device Boot Start End Blocks Id System
/dev/sda1 * 1 12 96358+ 83 Linux
/dev/sda2 31841 31865 200812+ 83 Linux
/dev/sda3 31866 38913 56613060 8e Linux LVM
/dev/sda4 13 31840 255658410 5 Extended
/dev/sda5 13 26108 209616088+ 83 Linux
/dev/sda6 26109 26239 1052226 82 Linux swap / Solaris
/dev/sda7 26240 31840 44990001 83 Linux
Partition table entries are not in disk order
[root at riohigh ~]#
sda5 is the partion in which F10 Beta resides:
[root at riohigh ~]# /sbin/blkid -s TYPE /dev/sda5
/dev/sda5: TYPE="ext4dev"
Best regards,
Antonio
More information about the fedora-test-list
mailing list