LinuxQuestions.org
Help answer threads with 0 replies.
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, 06:40 AM   #1
anon091
Senior Member
 
Registered: Jun 2009
Posts: 1,795

Rep: Reputation: 49
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, 07: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, 07:15 AM   #3
anon091
Senior Member
 
Registered: Jun 2009
Posts: 1,795

Original Poster
Rep: Reputation: 49
so how do you know you need to do a -c? does something in the error message tell you that?
 
Old 03-11-2011, 08:00 AM   #4
David the H.
Bash Guru
 
Registered: Jun 2004
Location: Osaka, Japan
Distribution: Arch + Xfce
Posts: 6,852

Rep: Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037
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, 08:51 AM   #5
anon091
Senior Member
 
Registered: Jun 2009
Posts: 1,795

Original Poster
Rep: Reputation: 49
I'm kinda confused by the stuff in the link. How would I do this?
 
Old 03-11-2011, 08: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, 09:09 AM   #7
anon091
Senior Member
 
Registered: Jun 2009
Posts: 1,795

Original Poster
Rep: Reputation: 49
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, 09:21 AM   #8
hda7
Member
 
Registered: May 2009
Distribution: Debian wheezy
Posts: 252

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, 09:44 AM   #9
anon091
Senior Member
 
Registered: Jun 2009
Posts: 1,795

Original Poster
Rep: Reputation: 49
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 anon091; 03-11-2011 at 09: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 11:25 AM
gcc: installation problem, cannot exec `cc1': No such file or directory Error Message 08h Programming 2 07-20-2006 11:44 AM
gcc: installation problem, cannot exec `cc1': No such file or directory Error Message 08h Linux - Newbie 1 06-01-2004 04:26 AM
Error Message "no such file or directory" Luisa Linux - General 2 02-14-2004 04:31 PM
linux command error message bash: /usr/bin/find: No such file or directory sundaram123 Linux - General 8 04-02-2002 07:18 AM

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

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