LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   ext2 file system information (https://www.linuxquestions.org/questions/linux-general-1/ext2-file-system-information-474381/)

vipulc 08-16-2006 08:15 AM

ext2 file system information
 
Hi, All

I want to parse ext2 file system of Red Hat Linux. So I want to know that where does the information lies regarding file system in Linux?

If that information is ecrypted then how to decrypt it that is also I want to know.

Thank you.

marozsas 08-16-2006 08:51 AM

Did you know "debugfs" ? I think is a good starting point. It is part of e2fsprogs package.

vipulc 08-17-2006 02:00 AM

EXT2 file system
 
Quote:

Originally Posted by marozsas
Did you know "debugfs" ? I think is a good starting point. It is part of e2fsprogs package.


Hi,

Actualy I want to parse ext2 file system manually.

I have made ext2 filesystem image by mke2fs command. shown as below,

# dd if=/dev/zero of=init-ramdisk.img bs=1k count=8k
# mke2fs -i 1024 -b 1024 -m 3 -F -v init-ramdisk.img
# mkdir temp
# mount -o loop init-ramdisk.img temp
# cd temp
# (Do what you need to do.)
# cd ..
# umount temp
# gzip -9 init-ramdisk.img

Now as you have mentioned debugfs gives me required information, but I dont want to use that utility I want to parse it on my own.

So, is there any thing like header in that ext2 file system image? From which I can parse various information of file system.
I tried to search for header but not able to understand.

kindly reply.

Thank you.

marozsas 08-17-2006 10:39 AM

I think that inspecting the source code of debugfs is the way...
You can find the source code for debugfs at e2fsprogs.sourceforge.net.

good luck !

vipulc 08-19-2006 07:48 AM

Quote:

Originally Posted by marozsas
I think that inspecting the source code of debugfs is the way...
You can find the source code for debugfs at e2fsprogs.sourceforge.net.

good luck !


Hi,

Can you please suggest me some good reference of websites from where I can get detail information of ext2 file system.

I searched a lot but still got half of the information which I required for ext2 file system.

Actualy I want thorough information of ext2 file system like
- at what offset superblock lies
- what is a size of group descriptor in filesystem
- what is a size of block bitmap and Inode bitmap and at what offset they lie.. etc.

Thank you.


All times are GMT -5. The time now is 12:34 PM.