LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-16-2010, 09:35 AM   #1
_Linux_Learner
Member
 
Registered: Feb 2010
Distribution: Ubuntu
Posts: 87

Rep: Reputation: 15
where is inode table in ext3


Hi all

Where is the inode table located in ext3 file system ? How can I read the entries in it ?

Regards
_Linux_Learner
 
Old 03-16-2010, 10:34 AM   #2
jamescondron
Member
 
Registered: Jul 2007
Location: Scunthorpe, UK
Distribution: Ubuntu 8.10; Gentoo; Debian Lenny
Posts: 961

Rep: Reputation: 70
Are you quite sure you know what an inode is?

Code:
jc@jcmain:~$ dict inode
1 definition found

From The Free On-line Dictionary of Computing (27 SEP 03) [foldoc]:

  inode
       
          A data structure holding information about files in a {Unix}
          {file system}.  There is an inode for each file and a file
          is uniquely identified by the file system on which it
          resides and its inode number on that system.  Each inode
          contains the following information: the device where the inode
          resides, locking information, mode and type of file, the
          number of links to the file, the owner's user and group ids,
          the number of bytes in the file, access and modification
          times, the time the inode itself was last modified and the
          addresses of the file's blocks on disk.  A {Unix} directory is
          an association between file leafnames and inode numbers.  A
          file's inode number can be found using the "-i" switch to ls.
       
          {Unix manual page}: fs(5).
       
          See also /usr/include/ufs/inode.h.
If you're sure this is what you want, I would suggest you take a look at the documentation for ext3
 
Old 03-16-2010, 11:01 AM   #3
i92guboj
Gentoo support team
 
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,083

Rep: Reputation: 405Reputation: 405Reputation: 405Reputation: 405Reputation: 405
The whole point of i-node based fs's is that they don't have such a thing like a file allocation table. Otherwise they would be called FAT, and would not be based on i-nodes.

I suggest you do do some wiki research and check the ext2/3 documentation before continuing your research. You are completely lost.
 
Old 03-16-2010, 11:02 AM   #4
Zuulie
LQ Newbie
 
Registered: Mar 2010
Location: London
Distribution: Ubuntu
Posts: 16

Rep: Reputation: 1
Quote:
Originally Posted by _Linux_Learner View Post
Where is the inode table located in ext3 file system ? How can I read the entries in it ?
Quite an odd question, but to find where you have the inode tables, you can run:
Code:
 sudo dumpe2fs /dev/<device> | fgrep 'Inode table'
I’m not sure what it is you want to read, but you can do a hexdump of the raw data at the block where the inodes resides:
Code:
sudo dd if=/dev/<device> ibs=4096 skip=<inode block> count=1 | hexdump
You’ll have to replace the <device> in the above examples and the <inode block> with the block offset to the inode table you want to look at that dumpe2fs returned.

Otherwise, "ls" is a more user friendly command for looking at inodes ;-)

-- Dan
 
Old 03-16-2010, 03:23 PM   #5
onebuck
Moderator
 
Registered: Jan 2005
Location: Central Florida 20 minutes from Disney World
Distribution: Slackware®
Posts: 13,925
Blog Entries: 44

Rep: Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159
Hi,

Look at 'Linux File System' section of 'Slackware-Links', particularly 'Part IV Understanding filesystem Inodes'.

Just a few more links to aid you to gaining some understanding;

Linux Documentation Project
Rute Tutorial & Exposition
Linux Command Guide
Utimate Linux Newbie Guide
LinuxSelfHelp
Getting Started with Linux
Advanced Bash-Scripting Guide
Linux Home Networking


The above links and others can be found at 'Slackware-Links'. More than just Slackware® links!
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Check Inode Table rahmad Linux - Newbie 2 01-01-2009 12:08 PM
missing inode table mottl3y Linux - Hardware 8 06-14-2008 09:01 AM
Western Digital My Book Ext3 format reports "Ext3-fs: Journal inode is deleted" ChronusDark Linux - Desktop 3 10-31-2006 03:56 PM
viewing the Inode table 0perat0r Linux - Newbie 1 07-20-2004 02:20 PM
HELP!!! to recover lost inode table moden Linux - General 3 11-26-2002 05:53 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:29 AM.

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