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
617
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 ...
1
vote
1
answer
213
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" -...
0
votes
1
answer
127
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
0
answers
149
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.)
1
vote
1
answer
474
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 ...
2
votes
2
answers
724
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... ...
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
563
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 ...
0
votes
1
answer
62
views
Can files survive partition table and file system recreation?
By GNU parted I created new DOS partition table, one partition and by mkfs.ext2 ext2 file system on that partition. I copied some files to that partition. After that I again created new DOS partition ...
1
vote
1
answer
121
views
Can I use a Linux boot stick to check a windows system? [closed]
I have tried casper-rw and ext2.
The following questions are where I'm at:
Can I use a Linux boot stick to check the desktop windows partition for viruses and/or rootkits? If not, why?
How is a ...
2
votes
3
answers
15k
views
How to format a usb flash drive to Ext2?
When I use a GUI environment, I have there only ext4, NTFS, FAT and other, but I need to type their name. I tried one time to type there ext2, but it seems it gets stuck. I was waiting a lot and it ...
3
votes
1
answer
306
views
How exactly is ext2 upwards-compatible?
I read somewhere that an operating system which knows nothing about ext3 and ext4 (i.e. antique Linux version) is able to read/write to ext4, and it detects any ext4 file system as ext2.
I am not ...
0
votes
1
answer
4k
views
How to calculate the "Inode blocks per group" on ext2 file system?
For studying, I assigned a size of 100M and formatted the drive as ext2.
This is the output of dumpe2fs:
[root@ ext2fs]# dumpe2fs /dev/sda2
dumpe2fs 1.42.9 (28-Dec-2013)
Filesystem volume name: <...
2
votes
1
answer
1k
views
Creating a ext2 partition on FreeBSD 10.1 running on x86 based box with MBR partitioning
I have old FreeBSD machine running on x86 based platform with below MBR partitioning
pod0226-wsa115:rtestuser 1] uname -a
FreeBSD pod0226-wsa115 8.2-RELEASE FreeBSD 8.2-RELEASE #0: Mon Mar 10 15:25:...
1
vote
1
answer
549
views
How to change inode size on EXT2 file
I am running Ubuntu on my MacBook Pro as I need to reformat a hard drive to EXT2 with iNode size of 128 to use for DCP delivery.
2
votes
0
answers
889
views
fsck on an ext2 filesystem. “…directory corrupted” [closed]
UPDATE: Fixed! The final directory entry in a block must point to the end of the block that it is in (I did this by adjusting the length of the final block to span the remainder of the block).
I'm ...
4
votes
2
answers
3k
views
Are hard links for directories possible on ext2/3/4 filesystems?
I've read that the command (and perhaps the system call, too) for creating hard links will not let one create hard links for directories. I also understand that hard links can pose problems for path-...
2
votes
2
answers
855
views
Embedded device, log partition, what file system is more resilient and uses less reads/writes?
I have an embedded Linux device with a read-only file system. I have another partition that is used to store an archive of logs.
This partition will be written to a lot. What linux partition should I ...
2
votes
1
answer
442
views
Why this switch will effectively format disk to ext2 instead of ext4?
I'm formatting a disk with following command switches, I can format the disk to ext4.
sudo mke2fs -F -E lazy_itable_init=0,lazy_journal_init=0,discard -t ext4 -b 4096 ...
However, once I added this ...
5
votes
3
answers
2k
views
"write-once archive": ext2 vs ext4^has_journal vs
summary
Suppose one is setting up an external drive to be a "write-once archive": one intends to reformat it, copy some files that will (hopefully) never be updated, then set it aside until I need to ...
2
votes
1
answer
2k
views
Are there two inode tables used in locating the inode of a file in ext2?
From Tanenbaum's Modern Operating Systems, when trying to access a file in a ext2 file system in Linux, and then reaching the parent directory of the file,
If the file is present, the system ...
0
votes
1
answer
78
views
Ext3 system calls during file creation and modification [closed]
I'm trying to learn more about Linux and its file system and I'm stuck on understanding the difference between the ext3 and ext2 file systems with regards to system calls during file creation and ...
1
vote
1
answer
2k
views
How can I convert a disk from ext4 to ext2?
I have Ubuntu with a root volume using ext4.
I need to downgrade it so that it is using ext2.
Is there a way to do that?
1
vote
1
answer
180
views
What is the purpose of ext2 dynamic node size?
I've looked in some documentation of ext2 and according to them (see sources) at rev 1.0 it is possible to set the size of the inodes but it doesn't clarify what is the purpose of the extra bytes ...
13
votes
3
answers
4k
views
Can the filesystem become inconsistent if interrupted when moving a file?
I have two folders on the same partition (EXT2)
If I mv folder1/file folder2 and some interruption occur (e.g. power failure) could the file system ever end up being inconsistent?
Isn't the mv ...