Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [debugfs]

ext2/ext3/ext4 file system debugger

3
votes
1answer
154 views

Which file occupies block 123456789 on /dev/sda?

I would like to know which file occupies a given block on a blockdevice. The procedure should at least support ext4 on Encrypted LVM, but it would be delicious if it also explained how to do this for ...
3
votes
1answer
131 views

Ftrace time duration

I echoed 1 to tracing_on in /sys/kernel/debug/tracing directory and echoed 0 again after a second. However, the timestamp of the first entry is 216.852 and that of the last entry is 234.136 giving me ...
2
votes
1answer
2k views

debugfs and “Bad magic number”

I'm trying to get file creation time using whatever I could find on the Internet and there's generally one solution that works for everybody, and this is the tutorial: https://tecadmin.net/file-...
3
votes
0answers
46 views

Finding files contained in particular block group

How do I see/list what files have blocks in a particular block group? I'm looking at a small disk image with an ext3 file system. Can I use debugfs, and if so, how?
2
votes
0answers
197 views

debugfs occasionally fails to read inode data

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 ...
2
votes
0answers
90 views

Alternative to debugfs for Android environment

For the purposes of retrieving a file's creation time (if available), I'd use debugfs. Unfortunately, debugfs is not part of most Android distributions. Are there any similar, more ubiquitous ...
2
votes
0answers
101 views

Bad sector file diagnosis: did I reach the right conclusion about corrupted files?

I am in the middle of a failing drive data recovery process (see How can I find out which files are lost through a ddrescue recovery atempt?). I must say that I have no experience with disk management ...
1
vote
0answers
239 views

how to use ftrace to function_trace a kernel modules interrupt?

I have a Banana Pi Arm device with 2 cores (1.2 GHz) running a Debian kernel which I enabled ftrace kernel debug options. I want to determine the amount of time spent in a kernel module function. The ...
1
vote
0answers
630 views

How can I open a debugfs on a partition in an image file?

I am trying to open a debugfs on an image obtained from dd. I'm interested in the 3rd/5th partition. Number Start End Size Type File system Flags 1 32256B ...
1
vote
0answers
109 views

Set debugfs pager

I do not want pager to clear screen when using debugfs. Have tried things like, as per man for debugfs: export PAGER='less -FX' debugfs foo bar export DEBUGFS_PAGER='less -FX' debugfs foo bar ...
0
votes
0answers
22 views

/dev/mapper/wks01-root: No such file or directory while opening filesystem

I was trying to recover a deleted file following Unix/Linux undelete/recover deleted files and the following error came out: # debugfs -w /dev/mapper/wks01-root debugfs 1.43.4 (31-Jan-2017) /dev/...