LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 07-25-2004, 02:21 PM   #1
hagman
LQ Newbie
 
Registered: Dec 2003
Distribution: Slackware 9.1
Posts: 7

Rep: Reputation: 0
Delete corrupt file


I have managed to get a file on my hd which I can't remove. It's really a catalog. The file perms are wicked and there unchangeable.

Some examples on how weird the file is.

du -sh CD1
Quote:
1.9T CD1
... and no I don't have 2TB harddrive.


cat CD1
Quote:
cat: CD1: Input/output error

ls -l
Quote:
total 1986481518
--wSrws-wt 46196 4109071067 4107103974 4783134559242991128 1922-01-16 10:07 CD1
what the?


rm -fr CD1
Quote:
rm: cannot remove `CD1': Operation not permitted

lsattr CD1
Quote:
s---iadAc-I-- CD1

chattr -i CD1 pretty much puts my beloved slackbox in the freezer.
The file system is ext3
 
Old 07-25-2004, 02:33 PM   #2
wapcaplet
LQ Guru
 
Registered: Feb 2003
Location: Colorado Springs, CO
Distribution: Gentoo
Posts: 2,018

Rep: Reputation: 48
That is odd. Lots of attributes you don't normally see (check out the chattr manpage); not only immutable, but compressed, append-only... does it work to chattr -siadAcI CD1?
 
Old 07-25-2004, 02:38 PM   #3
kevinalm
Member
 
Registered: Oct 2003
Location: Iowa
Distribution: LFS 5.0, building 6.3, win98se, multiboot
Posts: 288

Rep: Reputation: 30
If it were me I'd boot a rescue cd and run the fstype appropriate fsck command on the drive. Maybe someone else has a better idea.
 
Old 07-25-2004, 02:41 PM   #4
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
Well now ... that looks majorly odd to me, too :)

1.9 billion files in that file-system?
I mean, my system is reasonably slim with ~ 310,000 files,
even if installed Gnome and a truckload of other gimmicks
I don't think I'd easily even double that ... :)

The thing is not a regular file, but a fifo?

My wild guess here would be that ext3 has packed
a sad on you...


Cheers,
Tink
 
Old 07-26-2004, 03:15 PM   #5
hagman
LQ Newbie
 
Registered: Dec 2003
Distribution: Slackware 9.1
Posts: 7

Original Poster
Rep: Reputation: 0
I am currently running fsck.ext3 for the third time, the (humongous) file seems to be gone (just did a quick check). But there are still a number (119) bad blocks left. I think I'm gonna make it run automatically a few more times during the night. Then I'll come back.
 
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Corrupt J2re: How Do I remove/delete/erase it TSynergy Linux - Newbie 5 11-22-2004 01:13 PM
Tried to delete file as root but it says I don't have permission to delete it! beejayzed Mandriva 23 03-12-2004 02:46 AM
Can't delete corrupt file linuxfond Linux - Newbie 2 02-01-2004 10:50 AM
corrupt lease file ? h/w Linux - Networking 5 10-01-2003 09:05 PM
corrupt file system michaelc Linux - Newbie 1 12-14-2001 11:32 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 07:43 PM.

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