Questions tagged [debugfs]
ext2/ext3/ext4 file system debugger
35 questions
1 vote
1 answer
29 views
How to dump the lost+found content from an ext4 img file that cannot be mounted using debugfs in linux and keep the folder hierarchy?
How to dump the lost+found content from an ext4 img file that cannot be mounted using debugfs in linux and keep the folder hierarchy? My ext4 disk was failing. I made a disk image. I tried e2fsck and ...
1 vote
1 answer
118 views
Why can the mount points of debugfs and sysfs be overlapped?
The mount point for debugfs is /sys/kernel/debug, and the mount point for sysfs is /sys/, why can these 2 mount points be overlapped without interference?
0 votes
1 answer
335 views
Weird debugfs behavior
I'm playing with debugfs. I first created a file: debugfs -w /dev/vda1 > write /etc/hosts /a/b/c/d And the file system is broken: [root@linux2 /]# ls -l ls: cannot access /a/b/c/d: No such file or ...
2 votes
0 answers
875 views
How can I modify a file creation time in btrfs
I wanted to have snapshots on my filesystem. Since the btrfs-convert tool is not available anymore, I was forced to convert my filesystem by copying it file-by-file on a new file-system. However, I ...
3 votes
1 answer
3k views
debugfs not working | file not found by ext2_lookup
$sudo blkid /dev/sda1: UUID="F959-61DE" TYPE="vfat" PARTUUID="950b18a0-1501-48b4-92ef-ba1dd15aaf21" /dev/sda2: UUID="6dfcfc23-b076-4eeb-8fba-a1261b4ea399" TYPE=&...
0 votes
0 answers
342 views
Can't copy file with debugfs command
I'm playing around with debugfs command: # debugfs -w /dev/sda1 -R "write /etc/passwd /test" debugfs 1.45.5 (07-Jan-2020) Allocated inode: 24 But /test is not created: # cat /test cat: /...
1 vote
1 answer
970 views
creating a debugfs file that is used to read/write u32 value
I'm trying to create a file with the following specifications. The file "myfile" in a debugfs sub-directory is to be read only by any user, and when read, should return the current value of ...
1 vote
1 answer
320 views
How to enlarge an ext3/ext4 filesystem through debugfs?
I’m in a situation where I want to enlarge the default size of an ext4 filesystem used by the firmware. The problem is resize2fs is doing extra things like clearing some filesystems features and ...