Partitions and filesystems

Posted on 2011-10-05
Last Modified: 2012-05-12

I have make some partitions wihtin a disk (/dev/sdb) with fdisk program. The partition table is as follows:

Dispositivo Inicio    Comienzo      Fin      Bloques  Id  Sistema
/dev/sdb1               1         255      513794   83  Linux
/dev/sdb2             256        1021     1543490    5  Extendida
/dev/sdb5             256         510      513794   83  Linux
/dev/sdb6             511         765      513794   83  Linux
/dev/sdb7             766        1021      515809   83  Linux

The partition type that I have choosed for the whole partitions is Linux (code 83). Then I've formated the partitions with different filesystems:

/dev/sdb1 --> ext2
/dev/sdb5 --> ext3
/dev/sdb6 --> ext4
/dev/sdb7 --> vfat

¿Now, how can I verify the partition's filesystem type? With fdisk program I can verify the partitions type (Linux for the whole partitions), but... ¿What for the partitions filesystem type?


Question by:Wall4
    LVL 4

    Accepted Solution

    try to use parted -l  or fsck -N /dev/disk
    LVL 76

    Expert Comment

    You can not.
    fdisk reports the partition not how they are formatted.

    i.e. the hard drive is like a shelf where you placed a dividers.
    You then place different language books in each section.  Looking at the shelf and the dividers alone you can  only tell how much space is allocated to each section, you have to look at the books to determine in what language they are or what category they belong to.

    mount /dev/sdb7 /mnt
    and then check mount | grep sdb7
    will tell you the information about what filesystem type was used for the partition.
    mount will auto-test the filesystem type and will mount it accordingly.

    Author Closing Comment


    Featured Post

    Highfive Gives IT Their Time Back

    Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

    Join & Write a Comment

    In this tutorial I will explain how to make squid prevent malwares in five easy steps: Squid is a caching proxy for the Web supporting HTTP, HTTPS, FTP, and more. It reduces bandwidth and improves response times by caching and reusing frequently-…
    Using 'screen' for session sharing, The Simple Edition Step 1: user starts session with command: screen Step 2: other user (logged in with same user account) connects with command: screen -x Done. Both users are connected to the same CLI sessio…
    Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
    Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

    745 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    16 Experts available now in Live!

    Get 1:1 Help Now