Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Slackware This Forum is for the discussion of Slackware Linux.


  Search this Thread
Old 10-23-2007, 11:46 AM   #1
Registered: Dec 2002
Location: UK
Distribution: Slackware 12; Ubuntu 7.10
Posts: 358

Rep: Reputation: 31
remove via inode? weird files

Hi I've got a dir of two files I can't delete; "ls -al" gives:

drwxrwxrwx  2 root root  96 2007-10-23 15:37 m4-1.4.6/
And in the dir:

root@localhost:/usr/doc/m4-1.4.6# ls -tail
/bin/ls: cannot access NEWS: Permission denied
/bin/ls: cannot access TODO: Permission denied
total 1
104956 drwxr-xr-x 22 root root 712 2007-10-23 16:04 ../
809676 drwxrwxrwx  2 root root  96 2007-10-23 15:37 ./
405575 ??????????  ? ?    ?      ?                ? NEWS
405576 ??????????  ? ?    ?      ?                ? TODO
I've tried rm-ing; mv-ing, then rm-ing; I've tried chmod and chown; I've tried unlink; also ...
find . -inum 405576 -exec rm -i {} \;
and similar.

Nothing gets through. How can I delete by inode on Slackware or is there some other way?
Old 10-23-2007, 12:10 PM   #2
Registered: Jul 2007
Distribution: Fedora
Posts: 527

Rep: Reputation: Disabled
I'd first verify the filesystem is not damaged and then I would try "rm -i *" (similar to your find) and "mc", or a GUI like "konqueror" or some other if that fails too.
Old 10-23-2007, 05:12 PM   #3
Registered: Dec 2002
Location: UK
Distribution: Slackware 12; Ubuntu 7.10
Posts: 358

Original Poster
Rep: Reputation: 31
Yeah, have tried rm every which way. Konqueror was able to move the folder to trash but can't then delete it (which is same really as mv then rm having failed). I'm not going to install mc just to try using it's delete unless you can confirm it operates at some other level.

Note that these files are on reiserfs root partition under Slack12.
Old 10-23-2007, 07:58 PM   #4
Slackware Contributor
Registered: Oct 2004
Location: Tuscaloosa, Alabama (USA)
Distribution: Slackware
Posts: 2,243

Rep: Reputation: 731Reputation: 731Reputation: 731Reputation: 731Reputation: 731Reputation: 731Reputation: 731
Good luck. We've got a *very* similar issue on a remote server where a file is unable to be deleted. What you're seeing is almost certainly filesystem corruption - you'll have to do a "reiserfsck --fix-fixable" (which should be pretty safe, but no promises -- we've not been brave enough to do it, so we just moved the file to somewhere on the same filesystem and forgotten it).

For the record, this sort of thing seems to be *way* too common on reiserfs - I know quite a few people with almost identical problems on their systems.


delete, files, inode, rm

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
Can two files have the same inode number? sambyte Linux - Newbie 5 02-04-2009 07:27 AM
How Do I List All Files Linked To inode? freedomics Linux - Software 1 04-24-2007 07:18 PM
inode and special files. vishalsaraswat247 Linux - General 5 01-06-2007 06:26 PM
Cant remove write protected weird file tuxombie Slackware 13 12-07-2004 10:44 AM
weird network jibberish in /var/log/messages - how to remove? chibi Linux - Networking 3 09-22-2004 11:17 AM > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 06:03 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration