difference between output of df and blkid

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP












2















When I run blkid I get



/dev/vda1 ...etc
/dev/vda2 ...etc


However, when I run df -h I do not see the second drive. I only see



/dev/vda1 ...etc 
/devtmpfs ...etc


Is this because df only shows file systems that are mounted, and the vda2 drive is not mounted? Can you help me understand the difference between the two and why df -h doesnt show the second drive vda2 ?










share|improve this question






















  • forgive me for a dumb question but, are you saying that, or the man page is insinuating that, since the drive is not mounted it has no name?

    – Oscalation
    Feb 25 '16 at 20:34












  • what is the prefered, or easiest method to list either all file systems, or something to show filesystems that are not mounted?

    – Oscalation
    Feb 25 '16 at 20:51











  • is blkid or lsblk the best, or something like fdisk -l ?

    – Oscalation
    Feb 25 '16 at 20:52











  • 1. df shows only mounted file systems; 2. Different tools are 'best' for different purposes, maybe you will find lsblk best for this particular purpose (to list all file systems and show if they are mounted). It will show all drives and partitions, not only those with file systems, but also a swap partition, an extended partition, and a partition that is not yet formatted.

    – sudodus
    Feb 1 at 9:18















2















When I run blkid I get



/dev/vda1 ...etc
/dev/vda2 ...etc


However, when I run df -h I do not see the second drive. I only see



/dev/vda1 ...etc 
/devtmpfs ...etc


Is this because df only shows file systems that are mounted, and the vda2 drive is not mounted? Can you help me understand the difference between the two and why df -h doesnt show the second drive vda2 ?










share|improve this question






















  • forgive me for a dumb question but, are you saying that, or the man page is insinuating that, since the drive is not mounted it has no name?

    – Oscalation
    Feb 25 '16 at 20:34












  • what is the prefered, or easiest method to list either all file systems, or something to show filesystems that are not mounted?

    – Oscalation
    Feb 25 '16 at 20:51











  • is blkid or lsblk the best, or something like fdisk -l ?

    – Oscalation
    Feb 25 '16 at 20:52











  • 1. df shows only mounted file systems; 2. Different tools are 'best' for different purposes, maybe you will find lsblk best for this particular purpose (to list all file systems and show if they are mounted). It will show all drives and partitions, not only those with file systems, but also a swap partition, an extended partition, and a partition that is not yet formatted.

    – sudodus
    Feb 1 at 9:18













2












2








2








When I run blkid I get



/dev/vda1 ...etc
/dev/vda2 ...etc


However, when I run df -h I do not see the second drive. I only see



/dev/vda1 ...etc 
/devtmpfs ...etc


Is this because df only shows file systems that are mounted, and the vda2 drive is not mounted? Can you help me understand the difference between the two and why df -h doesnt show the second drive vda2 ?










share|improve this question














When I run blkid I get



/dev/vda1 ...etc
/dev/vda2 ...etc


However, when I run df -h I do not see the second drive. I only see



/dev/vda1 ...etc 
/devtmpfs ...etc


Is this because df only shows file systems that are mounted, and the vda2 drive is not mounted? Can you help me understand the difference between the two and why df -h doesnt show the second drive vda2 ?







disk-usage






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Feb 25 '16 at 20:07









OscalationOscalation

3192618




3192618












  • forgive me for a dumb question but, are you saying that, or the man page is insinuating that, since the drive is not mounted it has no name?

    – Oscalation
    Feb 25 '16 at 20:34












  • what is the prefered, or easiest method to list either all file systems, or something to show filesystems that are not mounted?

    – Oscalation
    Feb 25 '16 at 20:51











  • is blkid or lsblk the best, or something like fdisk -l ?

    – Oscalation
    Feb 25 '16 at 20:52











  • 1. df shows only mounted file systems; 2. Different tools are 'best' for different purposes, maybe you will find lsblk best for this particular purpose (to list all file systems and show if they are mounted). It will show all drives and partitions, not only those with file systems, but also a swap partition, an extended partition, and a partition that is not yet formatted.

    – sudodus
    Feb 1 at 9:18

















  • forgive me for a dumb question but, are you saying that, or the man page is insinuating that, since the drive is not mounted it has no name?

    – Oscalation
    Feb 25 '16 at 20:34












  • what is the prefered, or easiest method to list either all file systems, or something to show filesystems that are not mounted?

    – Oscalation
    Feb 25 '16 at 20:51











  • is blkid or lsblk the best, or something like fdisk -l ?

    – Oscalation
    Feb 25 '16 at 20:52











  • 1. df shows only mounted file systems; 2. Different tools are 'best' for different purposes, maybe you will find lsblk best for this particular purpose (to list all file systems and show if they are mounted). It will show all drives and partitions, not only those with file systems, but also a swap partition, an extended partition, and a partition that is not yet formatted.

    – sudodus
    Feb 1 at 9:18
















forgive me for a dumb question but, are you saying that, or the man page is insinuating that, since the drive is not mounted it has no name?

– Oscalation
Feb 25 '16 at 20:34






forgive me for a dumb question but, are you saying that, or the man page is insinuating that, since the drive is not mounted it has no name?

– Oscalation
Feb 25 '16 at 20:34














what is the prefered, or easiest method to list either all file systems, or something to show filesystems that are not mounted?

– Oscalation
Feb 25 '16 at 20:51





what is the prefered, or easiest method to list either all file systems, or something to show filesystems that are not mounted?

– Oscalation
Feb 25 '16 at 20:51













is blkid or lsblk the best, or something like fdisk -l ?

– Oscalation
Feb 25 '16 at 20:52





is blkid or lsblk the best, or something like fdisk -l ?

– Oscalation
Feb 25 '16 at 20:52













1. df shows only mounted file systems; 2. Different tools are 'best' for different purposes, maybe you will find lsblk best for this particular purpose (to list all file systems and show if they are mounted). It will show all drives and partitions, not only those with file systems, but also a swap partition, an extended partition, and a partition that is not yet formatted.

– sudodus
Feb 1 at 9:18





1. df shows only mounted file systems; 2. Different tools are 'best' for different purposes, maybe you will find lsblk best for this particular purpose (to list all file systems and show if they are mounted). It will show all drives and partitions, not only those with file systems, but also a swap partition, an extended partition, and a partition that is not yet formatted.

– sudodus
Feb 1 at 9:18










2 Answers
2






active

oldest

votes


















2














From the relevant man pages:



"blkid - locate/print block device attributes"



"df - report file system disk space usage"



So df tells you about disk space usage of the filesystems on those block devices.



In response to your supplementary comments on your question, it's not that either is "best" per se, they are different tools.






share|improve this answer























  • @Oscalation- If this answered your question, good practice to mark as *answered to preclude others revisiting a resolved issue. Thanks- T

    – F1Linux
    Feb 7 at 13:54


















0














In short




  • df shows the mounted file systems and details about them


  • blkid shows the block devices (drives, partitions) that are found and details about them


  • lsblk can give you a good overview of both



    sudo lsblk -fm # in a wide terminal window


or, if your terminal window is not wide enough, for example only 80 columns



 sudo lsblk -f
sudo lsblk -m


or, if you want to skip some details,



 sudo lsblk -o model,name,size,fstype,label,mountpoint





share|improve this answer






















    Your Answer








    StackExchange.ready(function()
    var channelOptions =
    tags: "".split(" "),
    id: "106"
    ;
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function()
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled)
    StackExchange.using("snippets", function()
    createEditor();
    );

    else
    createEditor();

    );

    function createEditor()
    StackExchange.prepareEditor(
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: false,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: null,
    bindNavPrevention: true,
    postfix: "",
    imageUploader:
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    ,
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    );



    );













    draft saved

    draft discarded


















    StackExchange.ready(
    function ()
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f265836%2fdifference-between-output-of-df-and-blkid%23new-answer', 'question_page');

    );

    Post as a guest















    Required, but never shown

























    2 Answers
    2






    active

    oldest

    votes








    2 Answers
    2






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    2














    From the relevant man pages:



    "blkid - locate/print block device attributes"



    "df - report file system disk space usage"



    So df tells you about disk space usage of the filesystems on those block devices.



    In response to your supplementary comments on your question, it's not that either is "best" per se, they are different tools.






    share|improve this answer























    • @Oscalation- If this answered your question, good practice to mark as *answered to preclude others revisiting a resolved issue. Thanks- T

      – F1Linux
      Feb 7 at 13:54















    2














    From the relevant man pages:



    "blkid - locate/print block device attributes"



    "df - report file system disk space usage"



    So df tells you about disk space usage of the filesystems on those block devices.



    In response to your supplementary comments on your question, it's not that either is "best" per se, they are different tools.






    share|improve this answer























    • @Oscalation- If this answered your question, good practice to mark as *answered to preclude others revisiting a resolved issue. Thanks- T

      – F1Linux
      Feb 7 at 13:54













    2












    2








    2







    From the relevant man pages:



    "blkid - locate/print block device attributes"



    "df - report file system disk space usage"



    So df tells you about disk space usage of the filesystems on those block devices.



    In response to your supplementary comments on your question, it's not that either is "best" per se, they are different tools.






    share|improve this answer













    From the relevant man pages:



    "blkid - locate/print block device attributes"



    "df - report file system disk space usage"



    So df tells you about disk space usage of the filesystems on those block devices.



    In response to your supplementary comments on your question, it's not that either is "best" per se, they are different tools.







    share|improve this answer












    share|improve this answer



    share|improve this answer










    answered Feb 1 at 8:18









    F1LinuxF1Linux

    316




    316












    • @Oscalation- If this answered your question, good practice to mark as *answered to preclude others revisiting a resolved issue. Thanks- T

      – F1Linux
      Feb 7 at 13:54

















    • @Oscalation- If this answered your question, good practice to mark as *answered to preclude others revisiting a resolved issue. Thanks- T

      – F1Linux
      Feb 7 at 13:54
















    @Oscalation- If this answered your question, good practice to mark as *answered to preclude others revisiting a resolved issue. Thanks- T

    – F1Linux
    Feb 7 at 13:54





    @Oscalation- If this answered your question, good practice to mark as *answered to preclude others revisiting a resolved issue. Thanks- T

    – F1Linux
    Feb 7 at 13:54













    0














    In short




    • df shows the mounted file systems and details about them


    • blkid shows the block devices (drives, partitions) that are found and details about them


    • lsblk can give you a good overview of both



      sudo lsblk -fm # in a wide terminal window


    or, if your terminal window is not wide enough, for example only 80 columns



     sudo lsblk -f
    sudo lsblk -m


    or, if you want to skip some details,



     sudo lsblk -o model,name,size,fstype,label,mountpoint





    share|improve this answer



























      0














      In short




      • df shows the mounted file systems and details about them


      • blkid shows the block devices (drives, partitions) that are found and details about them


      • lsblk can give you a good overview of both



        sudo lsblk -fm # in a wide terminal window


      or, if your terminal window is not wide enough, for example only 80 columns



       sudo lsblk -f
      sudo lsblk -m


      or, if you want to skip some details,



       sudo lsblk -o model,name,size,fstype,label,mountpoint





      share|improve this answer

























        0












        0








        0







        In short




        • df shows the mounted file systems and details about them


        • blkid shows the block devices (drives, partitions) that are found and details about them


        • lsblk can give you a good overview of both



          sudo lsblk -fm # in a wide terminal window


        or, if your terminal window is not wide enough, for example only 80 columns



         sudo lsblk -f
        sudo lsblk -m


        or, if you want to skip some details,



         sudo lsblk -o model,name,size,fstype,label,mountpoint





        share|improve this answer













        In short




        • df shows the mounted file systems and details about them


        • blkid shows the block devices (drives, partitions) that are found and details about them


        • lsblk can give you a good overview of both



          sudo lsblk -fm # in a wide terminal window


        or, if your terminal window is not wide enough, for example only 80 columns



         sudo lsblk -f
        sudo lsblk -m


        or, if you want to skip some details,



         sudo lsblk -o model,name,size,fstype,label,mountpoint






        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Feb 1 at 9:02









        sudodussudodus

        1,54837




        1,54837



























            draft saved

            draft discarded
















































            Thanks for contributing an answer to Unix & Linux Stack Exchange!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid


            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.

            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f265836%2fdifference-between-output-of-df-and-blkid%23new-answer', 'question_page');

            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown






            Popular posts from this blog

            How to check contact read email or not when send email to Individual?

            Displaying single band from multi-band raster using QGIS

            How many registers does an x86_64 CPU actually have?