Questions tagged [ext2]
ext2 (second extended filesystem) is a file system that was commonly used by the Linux kernel, but has been largely replaced by ext3/ext4.
84 questions
-2
votes
1
answer
635
views
How to extract files from EXT2 filesystem
debian11. I copied EXT2 filesystem from some dump file. I'm not sure if this file is intact or has no errors.
$ file ext2file
ext2file: Linux rev -1358692254.9334 ext2 filesystem data (mounted or ...
0
votes
0
answers
196
views
copy Linux EXT filesystem use dd
I used binwalk to scan firmware image, uncompressed & raw RAM dump. When scan for signatures with -I flag there is reference to Linux EXT filesystem:
DECIMAL HEXADECIMAL DESCRIPTION
-----...
1
vote
1
answer
218
views
ext2 How to choose bytes/inode ratio
How approximately calc bytes-per-inode for ext2?
I have 7.3GB storage (15320519 sectors 512B each). I have made ext2 filesystem with block size 4096
mke2fs /dev/sda2 -i 524288 -m 0 -L "SSD" -...
1
vote
0
answers
131
views
How can I write a file to a specific inode on an ext2 image?
I have an ext2 image file, and I need to write a file to a specific inode within the image using command line utilities in Linux. I tried using debugfs but I couldn't find a way to write to a specific ...
0
votes
1
answer
136
views
How are block devices physically addressed in a file system
In this book, the following is mentioned about filesystem addressing:
A file system does not need to concern itself with where on the physical media a block should be put, that is the job of the ...
0
votes
1
answer
131
views
Get Test EXT2 IMG file
I have a task for university to deal with EXT2 file recovery. The problem is that the example drives (as IMG files) we got only contain one block group. I want to test if I read the drive correctly so ...
0
votes
0
answers
158
views
Install grub on ext2
Is it possible to install (and use) grub on the same ext2 partition as the linux root directory?
(Should you want to discuss 'why': to try, to understand and master.)
3
votes
1
answer
287
views
mkfs ext2 ignore number-of-inodes
I want to make ext2 file system. I want to set "number-of-inodes" option to some number. I tried several values:
if -N 99000 then Inode count: 99552
if -N 3500 then Inode count:
3904
if -N ...
1
vote
1
answer
481
views
Unix ext2 superblock - file system creation date
I am trying to find the creation date on an ext2 file system. I seem to get a current date using dumpe2fs.
The problem is that the original ext2 superblock specification does not contain such ...
0
votes
1
answer
1k
views
Unable to edit the content of a mounted ext2 image
I have an image (from an Android phone) for which file gave the following info:
file vendor-rw.img
vendor-rw.img: Linux rev 1.0 ext2 filesystem data, UUID=64d47c8e-6f74-54ea-bbe7-ce29a05c4b04, volume ...
2
votes
2
answers
729
views
what is this “first inode” reported by dumpe2fs?
using dumpe2fs on some ext4 partition, I get in the initial data, that the first inode is #11. However, if I ls -i on this disk root partition, I get that it's inode number is #2 (as expected). So... ...
1
vote
0
answers
492
views
Calculate correctly the ext2 used blocks by the file system
What I'm trying achieve is, a safe shrinking of an ext2 file system and make sure I can cut/shrink the physical partition underneath to a safe minimum (without cutting file system blocks). I have ...
0
votes
1
answer
20
views
A question about ext2_sb_info
I study the ext2_sb_info structure (the memory data structure for ext2 superblock) and i noticed the existence of a field declared as
u32 s_next_generation;
I searched the web but it was not possible ...
1
vote
1
answer
314
views
Inconsistent filesystem type reported after disabling journalling
In trying to understand why kworker flush uses 99% I/O and hangs file write on machine, I've disabled journalling on the ext4 data partitions using:
tune2fs -O ^has_journal /dev/sdg1
After a reboot, ...
1
vote
1
answer
565
views
why can gnome disks not format ext2 or ext3?
Why does the GUI tool for formatting disks have no option to format with ext2 and ext3 filesystems? Why would a tool used for formatting exclude these filesystems? What is the rationale behind this ...