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
1
vote
1 answer

How do ext2/3/4 filesystems deal with 64 bit time_t?

I am working on small ext2 filesystem image manipulation tool (like listing directories, adding and extracting files without the need to mount it). I've just came into a problem with Unix timestamp fields. They are all 32 bit in ext filesystems. As…
user3731418
1
vote
1 answer

Inode structure - record rec_len?

I need to know how to exactly computed record rec_len. How it is count ?
loczek
  • 123
  • 1
  • 6
1
vote
2 answers

Does ext4 filesystem in read-only mode has better performance for mobile devices then ext2?

Android uses ext4 file system for read-only partitions, but in my opinion for flash read-only drives ext2 is more appropriate, because it does not have performance overhead and safe for using without write operation. Am I right?
Gluttton
  • 5,739
  • 3
  • 31
  • 58
1
vote
5 answers

C# write to ext2 linux partition from Windows

I'm quite new to C# and I need to write a file (grub) on an EXt2 linux partition from windows 7. What is the good way to do such thing? Do I need to mount the partition with external program?
Ben Liard
  • 11
  • 2
1
vote
0 answers

how does file system locate file's data?

I tried to remove inode of a specific file like this : ext2_filsys filsys; errcode_t error = ext2fs_open("/dev/sdb1",EXT2_FLAG_RW, 0, 0, unix_io_manager, &filsys); // I know my file is located on /dev/sdb1 ext2_ino_t ino = 13; // I…
Mehdi Ijadnazar
  • 4,532
  • 4
  • 35
  • 35
1
vote
0 answers

Locate the remaining directory entries in Ext2 that don't fit in the block

I'm developing my own operating system and currently, I'm working on the Ext2 file system driver. I'm using the GRUB files for testing. I'm stuck with listing a directory. I'm reading the first block of the directory's contents and everything is…
velikiyv4
  • 31
  • 4
1
vote
2 answers

Get to a specific inode, in a ext2 image (C)

I want to get to a specifIC inode (using its number), within an ext2 image, using the C language. I'm traying to do this by opening the ext2 image with the open() syscall, and then traverse it using lseek() with the right offsets, until I get to the…
Miguel Péres
  • 630
  • 1
  • 10
  • 19
1
vote
2 answers

When is storage allocated for a newly created ext2 inode?

I'm reading in Understanding the Linux Kernel, 3rd Edition on how to create a new regular file on ext2fs. (Book is available online at multiple places: not sure as to their legalities. A later version of just the relevant chapter is at O'reilly's…
boardrider
  • 5,882
  • 7
  • 49
  • 86
1
vote
0 answers

fsync's performance got mix result on Linux 2.6.32 ext2 filesystem

While I was testing performance of fsync on my Linux machine, I found fsync costs outstanding time when inserting data into a file which grows the file, but it performs 100 times faster when inserting data that just overrides exsting content and not…
1
vote
2 answers

Multiple Questions about EXT2 file system

I am reading about EXT2 file system, and have a lot of questions. Primarily relying on the following…
newprint
  • 6,936
  • 13
  • 67
  • 109
1
vote
1 answer

What are the EXT2 file system structure details?

I'm trying to wrap my head around the EXT2 file system, but I can't find a single place that shows me the EXT2 file system in detail. I finally drew up a diagram myself. So I got that far. Now I'm trying to figure out the following (I've found…
theanine
  • 986
  • 3
  • 10
  • 21
1
vote
1 answer

struct super_block and ext2_super_block

Can anyone explain me the relation between struct ext2_super_block ( in fs/ext2/ext2.h) and struct super_block ( in include/linux/fs.h). I am asking this because, in LKP ( by Robert Love ) it says that each filesystem has to implement struct…
Albert
  • 385
  • 1
  • 4
  • 17
1
vote
0 answers

Need UFS Reference for coding something to interpret file system from raw data

I'm hoping to write some tools to help in processing the file system UFS on a disk given access to the raw data. I've learned a bunch about UFS already and know that most Unix/Linux file systems have some commonality. I will read in the FS…
Michael K
  • 1,031
  • 2
  • 14
  • 27
1
vote
0 answers

ext2/ext3 in embedded device

I would like to be able to use the ext2 or ext3 file system in an embedded device without having to use Linux. I plan to have an embedded processor with a SATA hard drive attached. I have found the source code on Kernel.org but I am unsure how to…
jon b
  • 11
  • 2
1
vote
1 answer

listing directories using FUSE

Here is a problem I have been fighting with for quite a while with no progress. Hope you can help me out! I am mounting FUSE in a directory ('home/fsc') without problem, even listing it's parent dir (/home) the following way: while on /home .. ls…
Guillermo Gruschka
  • 167
  • 1
  • 3
  • 16