Why Can't I Delete A File ??????????

Dolphion, three files. SUSE 11.1 tells me I can’t delete the files, can’t delete the folder, etc.
Loged in as “su” but, still can’t get rid of them.
How about a BREAK !!!

Patience …

Now then. You might want to tell us where the files are. But in dolphin you can go to view - panels - terminal

makes it easy for you
navigate to the location
switch to su in the terminal

rm *hardtodeletefile.sod

(*replace with the file name you want to delete)TAB will auto complete after first 2 or 3 letters

Tells me the files and directory do not exist. However, they are staring me right in the face. Two files have x kb, the other has zero.

roberto1111 adjusted his/her AFDB on Thursday 23 Jul 2009 18:36 to write:

>
> Tells me the files and directory do not exist. However, they are
> staring me right in the face. Two files have x kb, the other has zero.
>
>

But what files are they and where are they in the filesystem?

They could be virtual files if you are looking in /var/ or other places that
do not exist.

But unless you give us a clue we do not know.

HTH

Mark
Caveat emptor
Nullus in verba
Nil illegitimi carborundum

they are in home/klibido/decoded/john.mp3.
The files are PARs.
All three named;
Deep In The Heart Of Tuva (Mongol Strups�ng) - 1996.+00-01.par2

roberto1111 adjusted his/her AFDB on Thursday 23 Jul 2009 21:06 to write:

>
> they are in home/klibido/decoded/john.mp3.
> The files are PARs.
> All three named;
> Deep In The Heart Of Tuva (Mongol Strups�ng) - 1996.+00-01.par2
>
>

What are the perms?


Mark
Caveat emptor
Nullus in verba
Nil illegitimi carborundum

I have ownership and the group can read. Cannot change the permissions. Dolphin puts a LOCK on the file if I try and change permissions.
Cannot delete the dir and cannot empty the dir.

You can’t delete it a su. Very odd.
Have you rebooted?

Rebooted and shutdown many times.

You must be missing something - If all else fails try a rename :
the command is: mv *filename *filename_old

or
try a live cd like knoppix.

I always delete using shift/delete. Put a trashcan on the desktop, Cut/pasted the dir to the trashcan. Deleted the trashcan widget.
I beleive the problem resides with the weird character(s) in the name of the file. Dolphin does not like PAR files as I have had some issues with them before. Not trying to run them but simply moving them to a sandisk cruizer USB drive. Dolphin does not like weird characters or extentions is doesn’t seem to understand.
Anyway, appreciate your time and help.

Roberto

No more trashcans for me. I brought a “new” trashcan widget up and guess what’s in there ?? Yes, the “deleted” folder !!!

Hi
Looks like the files have spaces, if using the CLI, enclose in " " or
use tab completion and it will put the 's in.


Cheers Malcolm °¿° (Linux Counter #276890)
SUSE Linux Enterprise Desktop 11 (x86_64) Kernel 2.6.27.25-0.1-default
up 3:37, 2 users, load average: 0.90, 0.46, 0.18
GPU GeForce 8600 GTS Silent - Driver Version: 185.18.14

roberto1111 adjusted his/her AFDB on Thursday 23 Jul 2009 22:16 to write:

>
> I always delete using shift/delete. Put a trashcan on the desktop,
> Cut/pasted the dir to the trashcan. Deleted the trashcan widget.
> I beleive the problem resides with the weird character(s) in the name
> of the file. Dolphin does not like PAR files as I have had some issues
> with them before. Not trying to run them but simply moving them to a
> sandisk cruizer USB drive. Dolphin does not like weird characters or
> extentions is doesn’t seem to understand.
> Anyway, appreciate your time and help.
>
> Roberto
>
>

Doh… I should have seen that with the file name, I had this a couple of
months ago, must be going senile.

The spaces do not help and the &# etc… throws a complete spanner in the
works.

I had this when a friend wanted some stuff off a laptop drive as the laptop
had died I went through seven shades of s*** before I finally managed to get
them off by starting XP in virtualbox I think and using that to copy and
rename to a more linux friendly format.


Mark
Caveat emptor
Nullus in verba
Nil illegitimi carborundum

With these type of problems you can always resort to inode.

find . -inum **inode** -exec mv {} new-name \;
find . -inum **inode** -exec rm -i {} \;

Where inode is the inode number. To get the inode…

ls -i

Those *.par files seem to be partial ones builded while a download is in progress. Is this your case? If so is the application you are using still running? Try to stop it and retry. I also agree that the structure of the file name could disturb the deleting/moving process. It is very strange that xp in Virtualbox let you delete those files since your home partition should ext formatted. Do you use ext2ifs?

roberto1111 wrote:

>
> they are in home/klibido/decoded/john.mp3.
> The files are PARs.
> All three named;
> Deep In The Heart Of Tuva (Mongol Strups�ng) - 1996.+00-01.par2
>
I have run into this when the file has spaces in the name (Deep in The
Heart, etc) Dolphin, Konqueror and terminal look for the Deep, not the rest
of the name. Only way I found them is to use Midnight Command and delete
them from there. I always name my files like Deep_in_THE etc.

Hope this helps you.


Russ [openSUSE 11.1 (2.6.27.23-0.1-default [x86_64]) KDE 4.2.4 release 2,
Intel DX48BT2 Core 2 Dual E7200. 4 GB DDR III GeForce 8400 GS, 320GB Disc
(2)]

All is back to “normal”. I really don’t know how it happened but, it did. Went into “Super User” mode in Dolphin. Brought back the trash can, deleted the trash can, and restored the files three times, and then, it happened. I “emptied” the trash and they disappeared. I think SUSE just got tired of playing with me.
I’m inclined to believe it was a permissions problem plus the weird characters in the file name.
I appreciate all the help from the forum.

Glad to see that you got it settled. Odd file names can be a real pain to deal with. :slight_smile:

You said that you put the trash widget on the desktop, moved the file to the trash widget and then “deleted” the trash widget, but when you brought it back the file was still in there.

This is because removing the trash widget from view doesn’t delete any of the contents contained in trash, it just removes the widget. The widget is basically just a shortcut pointing to the trash folder. Regardless of whether the widget is visible or not, any deleted files remain there until the trash is cleared (the folder is located somewhere in the .kde or .kde4 folders under home). To permanently remove files from trash (using the widget or through the shortcuts in dolphin) you have to right click on the widget and select “Empty trash”.