Skip to contentSkip to conversation

Query regarding ext4 filesystem

DISCUSSION Nivedita J N 2 participants 2 messages Nov 25, 2010

lore
Share & tools
lore
#0 lore raw

Hi,
I'm planning to use ext4 filesystem in my ubuntu machine.I am doing
a detailed search on the filesystem.I would like to know where the journal is stored in ext4 file system? Is it visible?

Signature · 2 lines
Thanks & Regards,
Nivedita J Nair
#1 lore raw
Quoted 4 lines

I'm planning to use ext4 filesystem in my ubuntu machine.I am doing
a detailed search on the filesystem.I would like to know where the journal is stored in ext4 file system? Is it visible?

You can use debugfs for this - do ``man 8 debugfs'' for more info. The journal is generally inode 8 (you can do

dumpe2fs -h /dev/FOO | grep "Journal inode:"

to make sure), so in debugfs you can do

    stat <8>
    ex <8>

to get metadata (size, perms, etc.) and extent information and

logdump <OPTIONS>

to examine the contents of the journal - see the debugfs man page for <OPTIONS> info.

HTH,
Nick