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. |
Did you know "debugfs" ? I think is a good starting point. It is part of e2fsprogs package.
|
EXT2 file system
Quote:
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. |
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 ! |
Quote:
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. |