LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 08-16-2006, 08:15 AM   #1
vipulc
LQ Newbie
 
Registered: Mar 2006
Posts: 7

Rep: Reputation: 0
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.
 
Old 08-16-2006, 08:51 AM   #2
marozsas
Senior Member
 
Registered: Dec 2005
Location: Campinas/SP - Brazil
Distribution: SuSE, RHEL, Fedora, Ubuntu
Posts: 1,508
Blog Entries: 2

Rep: Reputation: 68
Did you know "debugfs" ? I think is a good starting point. It is part of e2fsprogs package.
 
Old 08-17-2006, 02:00 AM   #3
vipulc
LQ Newbie
 
Registered: Mar 2006
Posts: 7

Original Poster
Rep: Reputation: 0
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.
 
Old 08-17-2006, 10:39 AM   #4
marozsas
Senior Member
 
Registered: Dec 2005
Location: Campinas/SP - Brazil
Distribution: SuSE, RHEL, Fedora, Ubuntu
Posts: 1,508
Blog Entries: 2

Rep: Reputation: 68
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 !
 
Old 08-19-2006, 07:48 AM   #5
vipulc
LQ Newbie
 
Registered: Mar 2006
Posts: 7

Original Poster
Rep: Reputation: 0
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to print out ext2 File System justmehere Linux - General 2 08-02-2005 08:13 PM
Changing file system from NTFS to Linux Ext2 Oesie Linux - Newbie 3 01-16-2005 06:47 PM
Convert root file system from ext2 to ext3 lothario Mandriva 4 11-20-2004 05:21 PM
need help recovering files on an ext2 file system rmanocha Linux - Software 2 11-06-2003 10:37 AM
reformat file system (from ext2 to ext3) pimo Linux - General 5 03-19-2002 04:11 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 05:44 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration