LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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-11-2011, 07:40 AM   #1
rjo98
Senior Member
 
Registered: Jun 2009
Location: US
Distribution: RHEL, CentOS
Posts: 1,668

Rep: Reputation: 46
How to determine exact problem directory/file from error message


EXT2-fs error (device md(9,0)): ext2_check_page: bad entry in directory #741
04835: directory entry across blocks - offset=0, inode=1242123943, rec_len=60460, name_len=119


Is there any way to tell which file or directory this is referencing in particular?
 
Old 03-11-2011, 08:13 AM   #2
rafatmb
LQ Newbie
 
Registered: Feb 2011
Posts: 27

Rep: Reputation: 3
Hello,

That is not wasy to do. I suggest that you make a backup, then run fsck.ext2 -c /device

[]'s

Rafa
Linux, Linux and Linux! Suporte Linux
 
Old 03-11-2011, 08:15 AM   #3
rjo98
Senior Member
 
Registered: Jun 2009
Location: US
Distribution: RHEL, CentOS
Posts: 1,668

Original Poster
Rep: Reputation: 46
so how do you know you need to do a -c? does something in the error message tell you that?
 
Old 03-11-2011, 09:00 AM   #4
David the H.
Bash Guru
 
Registered: Jun 2004
Location: Osaka, Japan
Distribution: Debian sid + kde 3.5 & 4.4
Posts: 6,823

Rep: Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957
You can search for the inode number with find. This link also suggests debugfs if it's an ext* filesystem.

http://stackoverflow.com/questions/3...tails-by-inode
 
1 members found this post helpful.
Old 03-11-2011, 09:51 AM   #5
rjo98
Senior Member
 
Registered: Jun 2009
Location: US
Distribution: RHEL, CentOS
Posts: 1,668

Original Poster
Rep: Reputation: 46
I'm kinda confused by the stuff in the link. How would I do this?
 
Old 03-11-2011, 09:58 AM   #6
glennt11
LQ Newbie
 
Registered: Aug 2004
Location: NY
Distribution: Ubuntu,Red Hat,Centos 5
Posts: 29

Rep: Reputation: 0
also, the -c is just an option of fsck that checks for bad blocks on most recognized partitions.

Nothing in the error message says to do this, the error message is a knee-jerk reaction to run it since there's an error!
 
Old 03-11-2011, 10:09 AM   #7
rjo98
Senior Member
 
Registered: Jun 2009
Location: US
Distribution: RHEL, CentOS
Posts: 1,668

Original Poster
Rep: Reputation: 46
ok, i wasn't sure if something specifically in the error message keyed you in to the -c or not. thanks.
 
Old 03-11-2011, 10:21 AM   #8
hda7
Member
 
Registered: May 2009
Distribution: Debian wheezy
Posts: 251

Rep: Reputation: 31
Quote:
Originally Posted by rjo98 View Post
I'm kinda confused by the stuff in the link. How would I do this?
The inode number (in your case 1242123943) is a file identifier. If you can mount the filesystem, you can use
Code:
find /path/to/mounted/filesystem -inum 1242123943
to print out the path to the file matching that inode number.
 
1 members found this post helpful.
Old 03-11-2011, 10:44 AM   #9
rjo98
Senior Member
 
Registered: Jun 2009
Location: US
Distribution: RHEL, CentOS
Posts: 1,668

Original Poster
Rep: Reputation: 46
that returned a folder, SWEET!!!! Thanks for showing me how to do that, that's awesome! I had to use the directory number though. its an empty directory on my volume apparently.

Last edited by rjo98; 03-11-2011 at 10:46 AM.
 
  


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
SOLVED: tar error message: Cannot open: No such file or directory qajaq Linux - Newbie 2 11-22-2009 12:25 PM
gcc: installation problem, cannot exec `cc1': No such file or directory Error Message 08h Programming 2 07-20-2006 12:44 PM
gcc: installation problem, cannot exec `cc1': No such file or directory Error Message 08h Linux - Newbie 1 06-01-2004 05:26 AM
Error Message "no such file or directory" Luisa Linux - General 2 02-14-2004 05:31 PM
linux command error message bash: /usr/bin/find: No such file or directory sundaram123 Linux - General 8 04-02-2002 08:18 AM


All times are GMT -5. The time now is 10:53 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