LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices

Reply
 
Search this Thread
Old 02-16-2008, 07:12 AM   #1
budword
Member
 
Registered: Apr 2003
Location: Wisconsin
Distribution: Switched to regualr Ubuntu, because I don't like KDE4, at all. Looks like vista on crack.....
Posts: 675

Rep: Reputation: 31
Can't delete or remove files.....


Here is the output of ls -l ...

?--------- ? ? ? ? ? mosquito_coast.avi
-rwxrwxrwx 1 root root 1439496680 2007-01-10 01:53 narnia.avi
?--------- ? ? ? ? ? ocean11.avi
-rwxrwxrwx 2 root root 1125529512 2007-05-17 20:53 peter_pan.avi

The entries with the ?'s I can't delete. I was copying them from an external hard drive when my daughter turned off the hard drive, so the copy never completed. Now I can't get rid of the partial files, I've tried rm -rf and shred -u and every other damn thing I can think of. I've tried as sudo and as a regular user.

I'm using kubuntu 7.10 if it matters. Thanks much...

David
 
Old 02-16-2008, 07:22 AM   #2
MoonMind
Member
 
Registered: May 2005
Location: Switzerland
Distribution: Ubuntu
Posts: 448

Rep: Reputation: 38
Try
Code:
$ sudo chown [yourusername] *.avi; sudo chgrp [yourusername] *.avi; sudo chmod 644 *.avi
At the moment, the file don't have a owner/group or anything. Maybe you can change this with the command sequence I indicated. However, the fact that they don't have a file size isn't very reassuring...

M.
 
Old 02-16-2008, 08:19 AM   #3
budword
Member
 
Registered: Apr 2003
Location: Wisconsin
Distribution: Switched to regualr Ubuntu, because I don't like KDE4, at all. Looks like vista on crack.....
Posts: 675

Original Poster
Rep: Reputation: 31
I tried your solution. I got the following errors.

chmod: cannot access `mosquito_coast.avi': Input/output error
chmod: cannot access `ocean11.avi': Input/output error
chmod: cannot access `rounders.avi': Input/output error

Thank you for the thought though.

David
 
Old 02-16-2008, 09:24 AM   #4
MoonMind
Member
 
Registered: May 2005
Location: Switzerland
Distribution: Ubuntu
Posts: 448

Rep: Reputation: 38
Thought so... Well, I've done a bit of research and found this:

http://kde-apps.org/content/show.php?content=28631

Since you're on Kubuntu (at least if your profile's still valid ), this might be a good choice. Don't know if it solves this specific problem, though - but it's worth a try anyway.

Another idea: I wonder if one could just generate empty files (using touch) with the same name (in another directory) and then just try to copy them over the damaged ones. It's not very likely to work, either, but why not try anyway? If it works, you'll be able to remove the 0 byte files.

M.
 
Old 02-16-2008, 10:08 AM   #5
David the H.
Bash Guru
 
Registered: Jun 2004
Location: Osaka, Japan
Distribution: Debian sid + kde 3.5 & 4.4
Posts: 6,823

Rep: Reputation: 1946Reputation: 1946Reputation: 1946Reputation: 1946Reputation: 1946Reputation: 1946Reputation: 1946Reputation: 1946Reputation: 1946Reputation: 1946Reputation: 1946
If the drive got turned off mid-copy, the file system/journal may be out of whack. Try running fsck on it. That might repair the damage.
 
Old 02-16-2008, 10:26 AM   #6
budword
Member
 
Registered: Apr 2003
Location: Wisconsin
Distribution: Switched to regualr Ubuntu, because I don't like KDE4, at all. Looks like vista on crack.....
Posts: 675

Original Poster
Rep: Reputation: 31
Hi, thanks for the thoughts. I've tried kleansweep, and creating other files with the same name and moving them. Tried renaming them, moving them. Nothing worked. Also, the drive the files were being copied FROM was shut off, the problem is removing the "leftover" files (for lack of a better term) on the drive that WASN'T shut off. So I don't think it's a filesystem problem, but I'll try that too, as it shouldn't hurt anything. I also couldn't re-copy the same files over to the same dir, but if I first changed the name of the file, THEN it copies just fine, so I think both filesystems are fine, but I'll run some repair and diagnostics on both drives, just in case. Thanks much, any new ideas are appreciated.

David

P.S. While checking out file system repair utilities, it occurred to me that I've left out some crucial info. The files in question are on a ntfs partition I share with windows on a dual boot box. The rest of windows isn't on that partition, it's just for media and backups. I haven't booted to windows in months, so maybe I can fix it on the dark side....unless anyone here has any other ideas.

Last edited by budword; 02-16-2008 at 06:41 PM.
 
  


Reply


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
remove or delete ppp1 akadv Linux - Newbie 6 11-26-2007 06:02 PM
Corrupt J2re: How Do I remove/delete/erase it TSynergy Linux - Newbie 5 11-22-2004 01:13 PM
How to delete (remove) Fedora Darthomir Fedora 8 03-19-2004 09:52 PM
force delete/remove and mass file permissions-setting moxieman99 Linux - Newbie 2 02-15-2004 11:43 AM
How to delete the destination files while the source files deleted in cp -u ? myunicom Linux - General 4 09-26-2003 01:13 PM


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