Can't delete corrupt file

The place to post if you need help or advice

Moderators: ChrisThornett, LXF moderators

Can't delete corrupt file

Postby heiowge » Thu Dec 26, 2013 8:41 pm

Image

Direct deleting gives:

Image

Any ideas? :?
i5 4440 3.1Ghz, Asus H87M-E motherboard, 8GB DDR3, 2GB DDR5 nVidia card, 2x500GB Seagate hd, Coolermaster 750W PSU running Mint 16 MATE and Win7

eeepc 1015PX, 1.66 Ghz Intel atom processor, 2 GB DDR3, 320 GB hd, Mint 14 MATE. Fan needs fixing.
User avatar
heiowge
LXF regular
 
Posts: 1906
Joined: Wed Feb 27, 2008 8:21 pm
Location: Cheshire, UK

Postby nelz » Thu Dec 26, 2013 8:50 pm

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)
User avatar
nelz
Site admin
 
Posts: 8525
Joined: Mon Apr 04, 2005 11:52 am
Location: Warrington, UK

Postby heiowge » Thu Dec 26, 2013 8:59 pm

$ 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.
i5 4440 3.1Ghz, Asus H87M-E motherboard, 8GB DDR3, 2GB DDR5 nVidia card, 2x500GB Seagate hd, Coolermaster 750W PSU running Mint 16 MATE and Win7

eeepc 1015PX, 1.66 Ghz Intel atom processor, 2 GB DDR3, 320 GB hd, Mint 14 MATE. Fan needs fixing.
User avatar
heiowge
LXF regular
 
Posts: 1906
Joined: Wed Feb 27, 2008 8:21 pm
Location: Cheshire, UK

Postby nelz » Thu Dec 26, 2013 11:29 pm

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)
User avatar
nelz
Site admin
 
Posts: 8525
Joined: Mon Apr 04, 2005 11:52 am
Location: Warrington, UK

Postby guy » Fri Dec 27, 2013 12:02 pm

Worth going in as su or similar to override any wobbly permissions?
Cheers,
Guy
The eternal help vampire
User avatar
guy
LXF regular
 
Posts: 1079
Joined: Thu Apr 07, 2005 12:07 pm
Location: Worcestershire


Return to Help!

Who is online

Users browsing this forum: No registered users and 0 guests