How to list the linux partitions by their created/modified time?

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











up vote
1
down vote

favorite












Is there any command to list the linux partitions by their created/modified time.










share|improve this question





















  • As explained below there's a difference between a partition and a filesystem. Please edit your question and clarify whether it's about partitions or filesystems.
    – don_crissti
    3 hours ago














up vote
1
down vote

favorite












Is there any command to list the linux partitions by their created/modified time.










share|improve this question





















  • As explained below there's a difference between a partition and a filesystem. Please edit your question and clarify whether it's about partitions or filesystems.
    – don_crissti
    3 hours ago












up vote
1
down vote

favorite









up vote
1
down vote

favorite











Is there any command to list the linux partitions by their created/modified time.










share|improve this question













Is there any command to list the linux partitions by their created/modified time.







linux partition






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked 4 hours ago









AVA

1094




1094











  • As explained below there's a difference between a partition and a filesystem. Please edit your question and clarify whether it's about partitions or filesystems.
    – don_crissti
    3 hours ago
















  • As explained below there's a difference between a partition and a filesystem. Please edit your question and clarify whether it's about partitions or filesystems.
    – don_crissti
    3 hours ago















As explained below there's a difference between a partition and a filesystem. Please edit your question and clarify whether it's about partitions or filesystems.
– don_crissti
3 hours ago




As explained below there's a difference between a partition and a filesystem. Please edit your question and clarify whether it's about partitions or filesystems.
– don_crissti
3 hours ago










1 Answer
1






active

oldest

votes

















up vote
4
down vote













I think neither the MBR nor the GPT include explicit timestamps,
so it's probably impossible to know when the disk was partitioned.



That said, you can extract information on when a filesystem was created on a partition, and because, usually, you create a partition and then create a filesystem soon after and then leave them alone, you can use dumpe2fs (if the filesystem is ext2,ext3 or ext4):



$> dumpe2fs /dev/sda1 | grep create
dumpe2fs 1.42.13 (17-May-2015)
Filesystem created: Thu Sep 28 12:14:05 2017


and get a good estimate on when a partition was created.



As for your question of a list of partitions, you can easily create a script to iterate through the partitions and extract the corrisponding created time.






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',
    convertImagesToLinks: false,
    noModals: false,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: null,
    bindNavPrevention: true,
    postfix: "",
    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%2f472790%2fhow-to-list-the-linux-partitions-by-their-created-modified-time%23new-answer', 'question_page');

    );

    Post as a guest






























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes








    up vote
    4
    down vote













    I think neither the MBR nor the GPT include explicit timestamps,
    so it's probably impossible to know when the disk was partitioned.



    That said, you can extract information on when a filesystem was created on a partition, and because, usually, you create a partition and then create a filesystem soon after and then leave them alone, you can use dumpe2fs (if the filesystem is ext2,ext3 or ext4):



    $> dumpe2fs /dev/sda1 | grep create
    dumpe2fs 1.42.13 (17-May-2015)
    Filesystem created: Thu Sep 28 12:14:05 2017


    and get a good estimate on when a partition was created.



    As for your question of a list of partitions, you can easily create a script to iterate through the partitions and extract the corrisponding created time.






    share|improve this answer


























      up vote
      4
      down vote













      I think neither the MBR nor the GPT include explicit timestamps,
      so it's probably impossible to know when the disk was partitioned.



      That said, you can extract information on when a filesystem was created on a partition, and because, usually, you create a partition and then create a filesystem soon after and then leave them alone, you can use dumpe2fs (if the filesystem is ext2,ext3 or ext4):



      $> dumpe2fs /dev/sda1 | grep create
      dumpe2fs 1.42.13 (17-May-2015)
      Filesystem created: Thu Sep 28 12:14:05 2017


      and get a good estimate on when a partition was created.



      As for your question of a list of partitions, you can easily create a script to iterate through the partitions and extract the corrisponding created time.






      share|improve this answer
























        up vote
        4
        down vote










        up vote
        4
        down vote









        I think neither the MBR nor the GPT include explicit timestamps,
        so it's probably impossible to know when the disk was partitioned.



        That said, you can extract information on when a filesystem was created on a partition, and because, usually, you create a partition and then create a filesystem soon after and then leave them alone, you can use dumpe2fs (if the filesystem is ext2,ext3 or ext4):



        $> dumpe2fs /dev/sda1 | grep create
        dumpe2fs 1.42.13 (17-May-2015)
        Filesystem created: Thu Sep 28 12:14:05 2017


        and get a good estimate on when a partition was created.



        As for your question of a list of partitions, you can easily create a script to iterate through the partitions and extract the corrisponding created time.






        share|improve this answer














        I think neither the MBR nor the GPT include explicit timestamps,
        so it's probably impossible to know when the disk was partitioned.



        That said, you can extract information on when a filesystem was created on a partition, and because, usually, you create a partition and then create a filesystem soon after and then leave them alone, you can use dumpe2fs (if the filesystem is ext2,ext3 or ext4):



        $> dumpe2fs /dev/sda1 | grep create
        dumpe2fs 1.42.13 (17-May-2015)
        Filesystem created: Thu Sep 28 12:14:05 2017


        and get a good estimate on when a partition was created.



        As for your question of a list of partitions, you can easily create a script to iterate through the partitions and extract the corrisponding created time.







        share|improve this answer














        share|improve this answer



        share|improve this answer








        edited 4 hours ago

























        answered 4 hours ago









        Mr Shunz

        2,74811720




        2,74811720



























             

            draft saved


            draft discarded















































             


            draft saved


            draft discarded














            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f472790%2fhow-to-list-the-linux-partitions-by-their-created-modified-time%23new-answer', 'question_page');

            );

            Post as a guest













































































            Comments

            Popular posts from this blog

            What does second last employer means? [closed]

            Installing NextGIS Connect into QGIS 3?

            One-line joke