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
0
votes
1 answer

Linux File System

I am searching for a way to get all the metadata of the linux file system (ext2/3/4). The task is to find all the files (deleted/or not deleted) present on the linux partition. The metadata of the files should include creation time , modification…
user3294786
  • 177
  • 2
  • 10
0
votes
0 answers

Modifying the EXT2 Filesystem

For a project I'm working on, I need to be able to modify the EXT2 filesystem. I have done extensive research, but as this is not a commonly required task, there seems to be very little helpful information available online. Unfortunately, due to…
BSnapZ
  • 314
  • 1
  • 4
  • 13
0
votes
0 answers

Implementing my own Read, Write, Open, Close functions for an Ext2 file system

Cheers, So basically I need to create functions named my_open, my_read, my_write, and my_close that manipulate an Ext2 file system image. This all needs to be done in C (the only language I know). I have written some code that prints all the…
0
votes
0 answers

List directory content from image files: skip . and .. and mark directories

C program that reads a disk image specified as a command line argument and prints the paths for all files and directories in the image.If the entry is a directory, print a forward slash at the end of the path....This is my question in program and i…
0
votes
0 answers

Why do ext filesystems keep track of every block a file uses individually?

From http://www.nongnu.org/ext2-doc/ext2.html#I-BLOCK I understand that if a file uses blocks 11, 12, 13, 14, 15, then the values 11, 12, 13, 14, and 15 are stored in the first 5 (of twelve) "direct block" entries in the inode. Why doesn't it use a…
fadedbee
  • 42,671
  • 44
  • 178
  • 308
0
votes
1 answer

how to make an ext2/3 FS without datablock

Needs: make an ext2/3 File System without datablock, just keep the other part, save the attribute of file or directory and discard the data of them. When write it, just return and when read it, just return all zero. I download…
Aulilino
  • 9
  • 2
0
votes
1 answer

Make Linux ext2 file system disk image

How do you construct a file system disk image and then look at its disk layout in bitmap files? How do you add directories to it? I've used mkfs.ext2 on a file that I made using dd, but I'm not sure if it’s done correctly. I need to be able to see…
0
votes
1 answer

Modifying an ext2 File Structure in Linux

For a university assignment, we have to modify the ext2 file system to store files in the inode's block pointers if it's smaller than 60 bytes, and move to regular block storage once the file grows larger than that. I have, what might admittedly be…
Dubey
  • 9
  • 2
0
votes
2 answers

Difference between RFS and other file systems

I have read that RFS is the basic skeleton which is needed in a computer while booting linux. As per my knowledge File system is a directory structure for storing files. When RFS is already there, why do we need a other file system like EXT2 and…
Virendra Kumar
  • 947
  • 2
  • 13
  • 31
0
votes
2 answers

How to quickly create large files in C?

I am doing research on file system performance, and I am stumped on how to create a very large file very quickly in C. Basically, I am trying to re-create a file system's folders and files by taking this metadata and storing it into a file. This is…
KZcoding
  • 1,417
  • 4
  • 16
  • 26
0
votes
0 answers

Ext.net 2.0 ComboBox, tiny bug

I have a very tricky issue which bothered me really long.. I was trying to use Ext.net 2.0 combobox to display options from remote DB. Everything works fine, but there is only one issue, when the page first loaded, if I do not change a selection of…
JunglerSens
  • 200
  • 1
  • 15
0
votes
1 answer

Citrix XenCenter, adding more space to a linux server, but space is unusable

I wish it was as easy as VirtualBox: extend partition But its not. You see in Citrix Xen center Instead of adding a virtual harddisk I just shut the server off and made its vhd* bigger, and that results in more space on a partition I cant seem to…
0
votes
1 answer

How to mount ext2 fs?

fdisk is used to create mmcblk0p3 on the 64G SD card. Disk /dev/mmcblk0: 63.8 GB, 63864569856 bytes 255 heads, 63 sectors/track, 7764 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Device Boot Start End Blocks…
jacknad
  • 13,483
  • 40
  • 124
  • 194
0
votes
1 answer

Make an ext2 filesystem out of a directory to use as ramdisk

I am trying to automatically determine the size of a ext2 ramdisk filesystem that a directory will make. What I am currently doing is: BLOCK_COUNT=`du $RAMDISK_FS_DIR| tail -1 |awk '{print $1}' dd if=/dev/zero of=ramdisk.img bs=1024…
fakedrake
  • 6,528
  • 8
  • 41
  • 64
-1
votes
1 answer

Ext2 - how is a file created

How does the process of creating a file in ext2 file system look like? I am trying to make a simple syscall which takes a path and creates given file - like touch. For example, the code: int main(void) { syscall(MY_SYSCALL_NUMBER,…
Josh
  • 121
  • 5