Re: [SLUG] Help with Inode problem

From: Brian Coyle (brianc@magicnet.net)
Date: Mon Oct 08 2001 - 15:12:59 EDT


Mike Manchester wrote:
>
> I believe I have an inode problem and looking for any suggestions on how
> to clean it up, if that is possible.

debugfs can be useful (it's part of the ext2fs utils).
   
   http://e2fsprogs.sourceforge.net/ext2.html

See also the Ext2fs undeletion mini-HOWTO

   http://www.linuxdoc.org/HOWTO/mini/Ext2fs-Undeletion.html

*******************************
* There be dragons here!!!!! *
*******************************

BE CAREFUL! This is a powerful tool and can damage your file system
if used incorrectly!

> Why do I think I have an inode problem?
> Well if I do an ls setup.sh in my home dir it says no file found.
> If I do ls *.sh the I get back the following
> Changelog.txt Makefile setup.sh.lsm VERSION
> index.html setup.sh tested.txt

Looks like setup.sh is a directory. Try:

        $ ls -ld setup.sh

>From your home directory. Check the first byte of the output. If
it's a 'd', then it's a directory.

ls also has the '-i' switch to print the inode number of files.

> If I try to do a cat on any of the above file I receive the message
> No such file or directory
>
> This is on a red hat 7.1 system running the ext2 file system.

HTH!

-- 
-----BEGIN GEEK CODE BLOCK-----
Version: 3.12
GAT/CM$ d-@ s:++ a41 C+++$ ULSH++++$ P+>++ L++>+++ E- W++$ N+ w$ O-
M- V Y+ PGP t@ 5+@ X+@ R- tv(-)@ b+++ DI++++ D+ e(+) h---- r+++ y++++
-----END GEEK CODE BLOCK-----



This archive was generated by hypermail 2.1.3 : Fri Aug 01 2014 - 15:04:12 EDT