LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 01-06-2006, 07:06 AM   #1
Wocky
Member
 
Registered: Oct 2004
Location: Australia
Posts: 37

Rep: Reputation: 3
Can't delete from lost+found


I had a disk failure last month; when I ran fsck on the crook disk (a 400GB Seagate ST3400832A with a single ext3 filesystem on it). I got lots of orphaned files and directories (about two thousand in total), which were put in lost+found. It appears that some of these have become dir entries from blocks that were originally part of some file. I say this because the owner/group ID's are ludicrously large numbers, some of the files are block/character devices or named pipes (which weren't on the original fs), permissions seem to be randomly allocated, etc. I've gone through all these files and dirs, put what I could identify back where it came from, and deleted what I decided what I could live without.

After all this I've got two files and two directories in lost+found that I can't rename, can't delete, can't change in any way (though I'm logged in as root). Here's the output of ls -l:
drwSr--rwt 2 971522593 1133183697 8192 Jan 1 1970 #262227/
--w--w--w- 1 789986819 1120023271 40960 Jan 1 1970 #29491281
-r-xrwx-w- 1 3887349799 1119440176 40960 Jan 1 1970 #29491285*
drw-rwsrwx 2 971456628 1133216480 8192 Jan 1 1970 #42057802/


I'm running kernel version 2.4.20; it was originally a redhat 7.2 system, but I've changed almost everything. It's on a dual-processor 500MHz celeron box.

Anyone got any ideas how I can get rid of these objects?

Thanks
Wocky
 
Click here to see the post LQ members have rated as the most helpful post in this thread.
Old 01-06-2006, 07:43 AM   #2
Notwerk
Member
 
Registered: Apr 2005
Location: Jordan
Distribution: Debian (Sarge), Ubuntu (6.06)
Posts: 271

Rep: Reputation: 31
Sorry if this sounds patronising but did you try:
Code:
#chown root /lost+found/*
#chmod 0700 /lost+found/*
#rm -rf /lost+found/*
 
Old 01-06-2006, 08:07 AM   #3
Wocky
Member
 
Registered: Oct 2004
Location: Australia
Posts: 37

Original Poster
Rep: Reputation: 3
Thanks Notwerk; I did try that, without success.

I've found the problem, now, though. lsattr revealed that all the objects had random attributes set, including i;
chattr =c /lost+found/#*
chattr -c /loct+found/#*
cleared these; chown root then worked, and I could delete them. Thanks anyway; I should have done that first!

Wocky
 
2 members found this post helpful.
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
lost+found artificialGekko Slackware 2 03-21-2005 08:38 AM
lost+found recovery markooffoo Linux - Software 2 07-15-2004 12:25 PM
What is lost+found for? ivanatora General 4 09-29-2003 11:17 PM
lost+found help jon_k Linux - General 2 07-16-2003 03:11 PM
About lost+found. whepin Linux - General 6 01-08-2002 07:07 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

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