Re: ntfs problem, no such file or directory.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, May 7, 2010 at 5:20 AM, Dj YB <yehielb@xxxxxxx> wrote:
> hello,
>
> I have managed somehow to create a file I can't delete now.
> probably a failed copy\download long ago.
>
> the output shows like that:
>
> [root@localhost 5]# ll
> total 1
> -rwxrwxrwx 1 root root 4 2010-05-07 12:07 24 Season 5 Episode 03.avi
> [root@localhost 5]# rm 24\ Season\ 5\ Episode\ 03.avi
> rm: remove regular file `24 Season 5 Episode 03.avi'? y
> rm: cannot remove `24 Season 5 Episode 03.avi': No such file or directory
>
> any advices how to fix this problem are welcome.
>
>
There are many approaches. The one I favor is to do an ls with inode
numbers then do a find on that inode.

  ls -il

The first column will list the inode.  Next do a find on that inode:

 find . -inum 123456 -maxdepth 1 -exec ls -l {} \;

If the file matches, just pass rm to find:

 find . -inum 123456 -maxdepth 1 -exec rm {} \;
-- 
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux