In ext2, there are a number of reserved inodes, such as inode 2 being the root directory. In the Linux ext2 header file, inode 5 is defined as a "Boot loader inode".
Do any operating systems actually use this?
How do you read from and write to this…
Curious as to the inode data structure differences between 128-byte ext2 and 256-byte ext3 file-systems.
I have been using this reference for ext2, 128-byte inodes: http://www.nongnu.org/ext2-doc/ext2.html#INODE-TABLE.
I have been unable to find a…
With tune2fs one can set the maximum mount count -c (before e2fsck kicks in on boot) and also the actual (current) mount count -C. I'm looking for a way to read these two values.
I'm trying to print all the single indirect blocks in an ext2 file system. I can print the direct blocks easy enough (0-11) but I don't understand how to get to the single indirect blocks, and later the double and triple indirect blocks. If I look…
Is there any os-independent read-write capable Ext2 FS access C library for embedded applications?
I'm looking for something that is similar to what FatFS is for FAT16/32.
I tried to port the corresponding Linux kernel filesystem module, but it is…
As a out of course project, I am currently developing a kernel in an attempt to better understand all the aspects of an actual OS. So far, I am done setting up a flat physical memory model with support for paging and the basic interrupts (keyboard…
I'm using the osdev wiki as a resource for programming an OS. So far I've got a 2 stage bootloader, with a very minimal 32-bit Protected mode kernel.
However, For the bootloader, I've been writing to a specific sector, and reading from a specific…
I'm trying to create a TAR archive from my program and then opening the archive for further processing. I have a 2 second delay between calling system() and open(). So far, it works fine, but I'm not sure why the 2 second delay is necessary or if…
I am modifying the ext2 filesystem for an assignment. I need to add a mount option which will remain in effect until the file system is unmounted. I've already added the option to the options enum and am handling the case where it is specified.
The…
In writing an ext2 driver for my hobby OS, I ran into a problem reading the inode table from a block group descriptor.
The third field of the block group descriptor is the block ID of the inode table for that group. In my case for the root directory…
An embedded Linux system I am working on has a 4MB ram disk. It is currently formatted with ext2. It seems that even when empty, there is only about 50% free space !
At the moment, it is used for about 50 smallish (1 or 2KB) files that total about…
cat main.c
#include
#include
#include
int main(int argc, char** argv) {
return (EXIT_SUCCESS);
}
Here is my output...
gcc main.c In file included from main.c:3:
/usr/include/linux/ext2_fs.h: In…
i've read filesystem in wikipedia, linfo.org and a question on super user about "is filesystem a part of operating system" and i doubt my understanding.
Wikipedia says: "ext is filesystem that is commonly used by linux kernel".
SU's answer says:…
I try to write a bootloader for a ext2 formatted drive.
I loaded the superblock to 0x7e00. Then I determined the block size by reading 24th byte.
I shifted 1024 left with this value. But the cl register contains the wrong value.
Memory dump (At…
Basically, I am trying to create my own tool to quick format ext4 partitions.
As far as I understand, the idea behind it is to find and overwrite existing inodes with empty ext2_inode structures. I thought that I could do it by simply calculating…