On Thu, 24 Aug 2017 13:29:29 -0700, Lew Wolfgang wrote:
On 08/24/2017 01:17 PM, Istvan Gabor wrote:
On Thu, 24 Aug 2017 16:09:36 -0400, Ken Schneider - openSUSE wrote:
On 08/24/2017 03:51 PM, Istvan Gabor wrote:
Hello: This occurs in openSUSE Leap 42.2. user@linux:~> cd tempdir user@linux:~/tempdir> ls -l total 3080 -rwxr-xr-x 1 user users 3147776 Dec 16 2016 image1.jpg user@linux:~/tempdir> rm image1.jpg rm: cannot remove 'image1.jpg': No such file or directory user@linux:~/tempdir> su Password: linux:/home/user/tempdir # rm image1.jpg rm: cannot remove 'image1.jpg': No such file or directory linux:/home/user/tempdir # I can open and copy the file but I cannot delete it. I can not delete the copied file either. linux:/home/user/tempdir # cp -a image1.jpg ../tempdir2 linux:/home/user/tempdir # ls -l ../tempdir2 total 3080 -rwxr-xr-x 1 user users 3147776 Dec 16 2016 image1.jpg linux:/home/user/tempdir # rm ../tempdir2/image1.jpg rm: cannot remove '../tempdir2/image1.jpg': No such file or directory The file system is ext3 on a raid1 array partition. I did a fsck -f on the partition which did not fix the problem (fsck did not report any error). How can I solve this? Thanks, Istvan
What are perms of the directory?
linux:/home/user/tempdir # ls -ld ../tempdir drwxr-xr-x 2 user users 4096 Aug 22 13:09 ../tempdir/
Maybe a non-printing character got into the filename that rm doesn't fancy? Can you do a "rm -i *" in the directory and answer y or n appropriately?
I tried this before posting, didn't work. linux:/home/user/tempdir # rm -i * rm: remove regular file 'image1.jpg'? y rm: cannot remove 'image1.jpg': No such file or directory Thanks, Istvan -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org