Linux Format forums Forum Index Linux Format forums
Help, discussion, magazine feedback and more
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Can't delete corrupt file

 
Post new topic   Reply to topic    Linux Format forums Forum Index -> Help!
View previous topic :: View next topic  
Author Message
heiowge
LXF regular


Joined: Wed Feb 27, 2008 8:21 pm
Posts: 1892
Location: Cheshire, UK

PostPosted: Thu Dec 26, 2013 8:41 pm    Post subject: Can't delete corrupt file Reply with quote



Direct deleting gives:



Any ideas? Confused
_________________
Dead old Dell Dimension 3000 pentium 4 processor 2GB DDR1 RAM 80GB HD. See what I'm reduced to!

eeepc 1015PX, 1.66 Ghz Intel atom processor, 2 GB DDR3, 320 GB hd, Mint 14 MATE. Fan needs fixing.
Back to top
View user's profile Send private message
nelz
Site admin


Joined: Mon Apr 04, 2005 12:52 pm
Posts: 8364
Location: Warrington, UK

PostPosted: Thu Dec 26, 2013 8:50 pm    Post subject: Reply with quote

Looks like it could be filesystem corruption. What does ls -l say about the file?

You may need to unmount the filesystem (or boot from a live CD) and run fsck on it.
_________________
"Insanity: doing the same thing over and over again and expecting different results." (Albert Einstein)
Back to top
View user's profile Send private message
heiowge
LXF regular


Joined: Wed Feb 27, 2008 8:21 pm
Posts: 1892
Location: Cheshire, UK

PostPosted: Thu Dec 26, 2013 8:59 pm    Post subject: Reply with quote

$ ls -l
total 2131656
-rw------- 1 ****** ****** 719959780 Jun 19 2012 ********
drwx------ 1 ****** ****** 4096 Apr 6 2013 Pauls backup
drwx------ 1 ****** ****** 4096 Oct 14 23:23 Rach's backup
-rw------- 3 ****** ****** 733734912 Mar 21 2012 ******
-rw------- 2 ****** ****** 729108480 Mar 21 2012 ******


Bottom two files are the ones that won't delete.

***edit*** Forgot to say, it's an external hard drive.
_________________
Dead old Dell Dimension 3000 pentium 4 processor 2GB DDR1 RAM 80GB HD. See what I'm reduced to!

eeepc 1015PX, 1.66 Ghz Intel atom processor, 2 GB DDR3, 320 GB hd, Mint 14 MATE. Fan needs fixing.
Back to top
View user's profile Send private message
nelz
Site admin


Joined: Mon Apr 04, 2005 12:52 pm
Posts: 8364
Location: Warrington, UK

PostPosted: Thu Dec 26, 2013 11:29 pm    Post subject: Reply with quote

You've obfuscated important information. Is the owner of the files the same user that mounted the drive? Does the same user own the directory containing these files, and what are the permissions on that directory. If everything is OK, unmount the fileystem and fsck it.
_________________
"Insanity: doing the same thing over and over again and expecting different results." (Albert Einstein)
Back to top
View user's profile Send private message
guy
LXF regular


Joined: Thu Apr 07, 2005 1:07 pm
Posts: 1041
Location: Worcestershire

PostPosted: Fri Dec 27, 2013 12:02 pm    Post subject: Reply with quote

Worth going in as su or similar to override any wobbly permissions?
_________________
Cheers,
Guy
The eternal help vampire
Back to top
View user's profile Send private message
View previous topic :: View next topic  
Display posts from previous:   
Post new topic   Reply to topic    Linux Format forums Forum Index -> Help! All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Linux Format forums topic RSS feed 


Powered by phpBB © 2001, 2005 phpBB Group


Copyright 2011 Future Publishing, all rights reserved.


Web hosting by UKFast