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

Notices

Reply
 
Search this Thread
Old 10-23-2007, 10:46 AM   #1
pbhj
Member
 
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:

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

Code:
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 ...
Code:
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, 11:10 AM   #2
rg3
Member
 
Registered: Jul 2007
Distribution: Slackware Linux
Posts: 504

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, 04:12 PM   #3
pbhj
Member
 
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, 06:58 PM   #4
rworkman
Slackware Contributor
 
Registered: Oct 2004
Location: Tuscaloosa, Alabama (USA)
Distribution: Slackware
Posts: 1,912

Rep: Reputation: Disabled
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.
 
  


Reply

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


All times are GMT -5. The time now is 04:57 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration