LinuxQuestions.org
Visit Jeremy's Blog.
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, 10: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, 11:34 AM   #2
jamescondron
Member
 
Registered: Jul 2007
Location: Scunthorpe, UK
Distribution: Ubuntu 8.10; Gentoo; Debian Lenny
Posts: 961

Rep: Reputation: 69
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, 12:01 PM   #3
i92guboj
Gentoo support team
 
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,063

Rep: Reputation: 381Reputation: 381Reputation: 381Reputation: 381
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, 12:02 PM   #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, 04:23 PM   #5
onebuck
Moderator
 
Registered: Jan 2005
Location: Midwest USA, Central Illinois
Distribution: Slackware®
Posts: 12,602
Blog Entries: 25

Rep: Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981
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


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



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


All times are GMT -5. The time now is 08:13 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration