Questions tagged [ext2]

ext2 is a Linux filesystem.

ext2 is a filesystem mostly used under linux.

Other versions are ext, ext3 and ext4.

See Wikipedia for details on ext and ext2.

106 questions
2
votes
1 answer

size restriction of block size

As per the wiki entry for Ext2,"In Linux the block size is limited by the architecture page size." I think the restriction is due the fact in a typical file system(say ext2) data is handled in terms of pages and hence it gives more performance to…
kumar
  • 2,530
  • 6
  • 33
  • 57
2
votes
1 answer

I have ext2 formatted file system Images. I like to read in terminal all the file system structures data in Linux specifically Ubuntu.Is there a tool>

So I have file system ext2 formatted image files. I like to view Inode, super block, filenames, etc. in the images for formatted file systsem . I like to know is there any tool for this. I need to view these structures like inode, superblock, file,…
user786
  • 3,902
  • 4
  • 40
  • 72
2
votes
1 answer

Linux Read Only Partition's data changes

I have a read only partition who's data is changing. The change occurs on the first mount only. Subsequent mounts do not change the partition data. Tried with ext3 and ext2 incase journalling was an issue ... no help. Tried tune2fs with -c -1 -i 0…
lostdev
  • 736
  • 8
  • 23
2
votes
0 answers

what can be the numebr in super_block.s_log_block_size is it always 0 for ext2 filesystem does why It depends on block size?

So If block size can be found in ext2 like block_size = 1024 << super_block.s_log_block_size; so I like to know what is s_log_block_size field. it looks like value can be 0 and should always be 0 in ext2 formatted device as in ext2 block size is…
user786
  • 3,902
  • 4
  • 40
  • 72
2
votes
1 answer

EXT2: Understanding inode bitmaps

I have a 1280 inodes per block in a EXT2 filesystem. I want to know the status of the inode 1282, which I know is used. I read the first byte of the inode bitmap corresponding to the second group. I get 0x07, meaning 00000111, meaning that the inode…
user13855481
2
votes
2 answers

Delete file with odd character in filename

I cannot delete a file that is copy of a backup of a backup... I don't remember all the filesystem character set it has passed by. Anyway, today here's the file: nas# ls -al ls: cannot access Sécurité: No such file or directory total 32 drwx------ 4…
CamilleHuot
  • 105
  • 1
  • 1
  • 6
2
votes
1 answer

EXT2 Directory Content

Hi I reached inode 2 , the root directory. I know the direct block number of it, which is 265. How can I list the content of the root directory in C?
Alaattin KAYRAK
  • 1,084
  • 2
  • 12
  • 29
2
votes
1 answer

mkfs.ext2 in cygwin not working

I'm attempting to create a fs within a file. under linux it's very simple: create a blank file size 8 gb dd of=fsFile bs=1 count=0 seek=8G "format" the drive: mkfs.ext2 fsFile works great. however under cygwin running from /usr/sbin…
user407487
  • 83
  • 2
  • 8
2
votes
0 answers

ext2 finding the block that contain the group descriptor from the inode number

i found many source code use this method to find the group descriptor of the group that associated with that inode number algorithm which is as follow : group number = inode number / how many inode per group group descriptor block = group…
2
votes
1 answer

Ext2/3: Block Type Clarification: IND vs DIND vs TIND

I'm seeing references to "IND" vs "DIND" vs "TIND" block-types in a few places, whereas the definition in the code is very terse: (https://github.com/torvalds/linux/blob/master/fs/ext4/ext4.h#L362) #define EXT4_NDIR_BLOCKS 12 #define…
Dustin Oprea
  • 9,673
  • 13
  • 65
  • 105
2
votes
2 answers

Reading inode returns invalid data

I am trying to edit some inode data. However, when I read any inode, I only get zeros or invalid data. Here are the main steps of what I am doing: //reading, say inode number 15 - it belongs to group 0, and it's a valid inode int…
2
votes
1 answer

how to create a symbolic link in EXT2 file system

I am working with the EXT2 File System and spent the last 2 days trying to figure out how to create a symbolic link. From http://www.nongnu.org/ext2-doc/ext2.html#DEF-SYMBOLIC-LINKS, "For all symlink shorter than 60 bytes long, the data is stored…
samuel
  • 43
  • 4
2
votes
1 answer

Is there an official specification for the ext2/ext3/ext4 filesystems?

I was wondering, for Bluetooth we have IEEE 802.15.1 standard, managed by Bluetooth Special Interest Group. For Wifi we have the IEEE 802.11 standards and also the Wifi Alliance. For NVMe SSDs on PCIe we have nvmexpress that regulate and publish its…
Lilás
  • 1,111
  • 1
  • 16
  • 29
2
votes
2 answers

Why no good extN drivers for Windows?

Why are there no good drivers for Windows for reading ext2/3/4 filesystems? Googling around indicates that there's 2 or 3 out there, but all of them have problems. Is there some technical inconsistency that makes it difficult to correctly code up…
Kricket
  • 4,049
  • 8
  • 33
  • 46
2
votes
1 answer

How to get the offset in a block device of an inode in a deleted partition

During a fresh installation, I accidentally formatted a disk containing datas. I have tried using some tools: testdisk, foremost, but I did not get good results. (see my unsuccessful post on superuser). So I have decided to read some docs about ext2…
Gaël Barbin
  • 3,769
  • 3
  • 25
  • 52