debugfs occasionally fails to read inode data

The name of the pictureThe name of the pictureThe name of the pictureClash 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 ?







share|improve this question



















  • 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
















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 ?







share|improve this question



















  • 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












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 ?







share|improve this question











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 ?









share|improve this question










share|improve this question




share|improve this question









asked Aug 3 at 15:09









Zaboj Campula

445516




445516











  • 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
















  • 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















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















active

oldest

votes











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%2f460349%2fdebugfs-occasionally-fails-to-read-inode-data%23new-answer', 'question_page');

);

Post as a guest



































active

oldest

votes













active

oldest

votes









active

oldest

votes






active

oldest

votes










 

draft saved


draft discarded


























 


draft saved


draft discarded














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













































































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?