debugfs occasionally fails to read inode data
Clash Royale CLAN TAG#URR8PPP
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty margin-bottom:0;
up vote
2
down vote
favorite
I need to get date and time when a file was created. The file is stored at ext4 filesystem so the information is available in the i-node and I use debugfs to read this information:
# debugfs -R "stat <3922>" /dev/sda1 | grep crtime
debugfs 1.43-WIP (18-May-2015)
crtime: 0x5b646acd:b0175ac8 -- Fri Aug 3 14:46:37 2018
That works fine but the command sometimes fails:
# debugfs -R "stat <3922>" /dev/sda1
debugfs 1.43-WIP (18-May-2015)
/dev/sda1: Block bitmap checksum does not match bitmap while reading block bitmap
stat: Filesystem not open
The next debugfs execution returns correct data.
What does exactly mean the error Block bitmap checksum does not match bitmap while reading block bitmap
?
ext4 inode debugfs
add a comment |Â
up vote
2
down vote
favorite
I need to get date and time when a file was created. The file is stored at ext4 filesystem so the information is available in the i-node and I use debugfs to read this information:
# debugfs -R "stat <3922>" /dev/sda1 | grep crtime
debugfs 1.43-WIP (18-May-2015)
crtime: 0x5b646acd:b0175ac8 -- Fri Aug 3 14:46:37 2018
That works fine but the command sometimes fails:
# debugfs -R "stat <3922>" /dev/sda1
debugfs 1.43-WIP (18-May-2015)
/dev/sda1: Block bitmap checksum does not match bitmap while reading block bitmap
stat: Filesystem not open
The next debugfs execution returns correct data.
What does exactly mean the error Block bitmap checksum does not match bitmap while reading block bitmap
?
ext4 inode debugfs
Modern versions of thestat
utility (from coreutils) will show you the birth time, too.
â Mark Plotnick
Aug 3 at 15:47
@MarkPlotnick: Unfortunately it is an embedded linux, that is not easy to upgrade.
â Zaboj Campula
Aug 3 at 17:15
Do you have a C compiler? github.com/torvalds/linux/blob/master/samples/statx/⦠will do almost the same thing as thestat
utility.
â Mark Plotnick
Aug 3 at 18:00
@MarkPlotnick: I have a C compiler but statx is not an option because it was added to the linux kernel 4.11 and I have 3.10.
â Zaboj Campula
yesterday
If your filesystem sits on top of an lvm volume, you could try making a snapshot and then run debugfs on the snapshot. That should reduce, but not eliminate, inconsistencies caused by examining a constantly changing filesystem.
â Mark Plotnick
13 hours ago
add a comment |Â
up vote
2
down vote
favorite
up vote
2
down vote
favorite
I need to get date and time when a file was created. The file is stored at ext4 filesystem so the information is available in the i-node and I use debugfs to read this information:
# debugfs -R "stat <3922>" /dev/sda1 | grep crtime
debugfs 1.43-WIP (18-May-2015)
crtime: 0x5b646acd:b0175ac8 -- Fri Aug 3 14:46:37 2018
That works fine but the command sometimes fails:
# debugfs -R "stat <3922>" /dev/sda1
debugfs 1.43-WIP (18-May-2015)
/dev/sda1: Block bitmap checksum does not match bitmap while reading block bitmap
stat: Filesystem not open
The next debugfs execution returns correct data.
What does exactly mean the error Block bitmap checksum does not match bitmap while reading block bitmap
?
ext4 inode debugfs
I need to get date and time when a file was created. The file is stored at ext4 filesystem so the information is available in the i-node and I use debugfs to read this information:
# debugfs -R "stat <3922>" /dev/sda1 | grep crtime
debugfs 1.43-WIP (18-May-2015)
crtime: 0x5b646acd:b0175ac8 -- Fri Aug 3 14:46:37 2018
That works fine but the command sometimes fails:
# debugfs -R "stat <3922>" /dev/sda1
debugfs 1.43-WIP (18-May-2015)
/dev/sda1: Block bitmap checksum does not match bitmap while reading block bitmap
stat: Filesystem not open
The next debugfs execution returns correct data.
What does exactly mean the error Block bitmap checksum does not match bitmap while reading block bitmap
?
ext4 inode debugfs
asked Aug 3 at 15:09
Zaboj Campula
445516
445516
Modern versions of thestat
utility (from coreutils) will show you the birth time, too.
â Mark Plotnick
Aug 3 at 15:47
@MarkPlotnick: Unfortunately it is an embedded linux, that is not easy to upgrade.
â Zaboj Campula
Aug 3 at 17:15
Do you have a C compiler? github.com/torvalds/linux/blob/master/samples/statx/⦠will do almost the same thing as thestat
utility.
â Mark Plotnick
Aug 3 at 18:00
@MarkPlotnick: I have a C compiler but statx is not an option because it was added to the linux kernel 4.11 and I have 3.10.
â Zaboj Campula
yesterday
If your filesystem sits on top of an lvm volume, you could try making a snapshot and then run debugfs on the snapshot. That should reduce, but not eliminate, inconsistencies caused by examining a constantly changing filesystem.
â Mark Plotnick
13 hours ago
add a comment |Â
Modern versions of thestat
utility (from coreutils) will show you the birth time, too.
â Mark Plotnick
Aug 3 at 15:47
@MarkPlotnick: Unfortunately it is an embedded linux, that is not easy to upgrade.
â Zaboj Campula
Aug 3 at 17:15
Do you have a C compiler? github.com/torvalds/linux/blob/master/samples/statx/⦠will do almost the same thing as thestat
utility.
â Mark Plotnick
Aug 3 at 18:00
@MarkPlotnick: I have a C compiler but statx is not an option because it was added to the linux kernel 4.11 and I have 3.10.
â Zaboj Campula
yesterday
If your filesystem sits on top of an lvm volume, you could try making a snapshot and then run debugfs on the snapshot. That should reduce, but not eliminate, inconsistencies caused by examining a constantly changing filesystem.
â Mark Plotnick
13 hours ago
Modern versions of the
stat
utility (from coreutils) will show you the birth time, too.â Mark Plotnick
Aug 3 at 15:47
Modern versions of the
stat
utility (from coreutils) will show you the birth time, too.â Mark Plotnick
Aug 3 at 15:47
@MarkPlotnick: Unfortunately it is an embedded linux, that is not easy to upgrade.
â Zaboj Campula
Aug 3 at 17:15
@MarkPlotnick: Unfortunately it is an embedded linux, that is not easy to upgrade.
â Zaboj Campula
Aug 3 at 17:15
Do you have a C compiler? github.com/torvalds/linux/blob/master/samples/statx/⦠will do almost the same thing as the
stat
utility.â Mark Plotnick
Aug 3 at 18:00
Do you have a C compiler? github.com/torvalds/linux/blob/master/samples/statx/⦠will do almost the same thing as the
stat
utility.â Mark Plotnick
Aug 3 at 18:00
@MarkPlotnick: I have a C compiler but statx is not an option because it was added to the linux kernel 4.11 and I have 3.10.
â Zaboj Campula
yesterday
@MarkPlotnick: I have a C compiler but statx is not an option because it was added to the linux kernel 4.11 and I have 3.10.
â Zaboj Campula
yesterday
If your filesystem sits on top of an lvm volume, you could try making a snapshot and then run debugfs on the snapshot. That should reduce, but not eliminate, inconsistencies caused by examining a constantly changing filesystem.
â Mark Plotnick
13 hours ago
If your filesystem sits on top of an lvm volume, you could try making a snapshot and then run debugfs on the snapshot. That should reduce, but not eliminate, inconsistencies caused by examining a constantly changing filesystem.
â Mark Plotnick
13 hours ago
add a comment |Â
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
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%2f460349%2fdebugfs-occasionally-fails-to-read-inode-data%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
Modern versions of the
stat
utility (from coreutils) will show you the birth time, too.â Mark Plotnick
Aug 3 at 15:47
@MarkPlotnick: Unfortunately it is an embedded linux, that is not easy to upgrade.
â Zaboj Campula
Aug 3 at 17:15
Do you have a C compiler? github.com/torvalds/linux/blob/master/samples/statx/⦠will do almost the same thing as the
stat
utility.â Mark Plotnick
Aug 3 at 18:00
@MarkPlotnick: I have a C compiler but statx is not an option because it was added to the linux kernel 4.11 and I have 3.10.
â Zaboj Campula
yesterday
If your filesystem sits on top of an lvm volume, you could try making a snapshot and then run debugfs on the snapshot. That should reduce, but not eliminate, inconsistencies caused by examining a constantly changing filesystem.
â Mark Plotnick
13 hours ago