How to list the linux partitions by their created/modified time?
Clash Royale CLAN TAG#URR8PPP
up vote
1
down vote
favorite
Is there any command to list the linux partitions by their created/modified time.
linux partition
add a comment |Â
up vote
1
down vote
favorite
Is there any command to list the linux partitions by their created/modified time.
linux partition
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
add a comment |Â
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.
linux partition
Is there any command to list the linux partitions by their created/modified time.
linux partition
linux partition
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
add a comment |Â
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
add a comment |Â
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.
add a comment |Â
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.
add a comment |Â
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.
add a comment |Â
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.
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.
edited 4 hours ago
answered 4 hours ago
Mr Shunz
2,74811720
2,74811720
add a comment |Â
add a comment |Â
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
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
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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