- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Re: Problems to rm one file (?--------- )
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-08-2007 09:16 PM
тАО01-08-2007 09:16 PM
I want to rm one file, but it is not possible.
# ls -lrta
?--------- 32767 root 38680 0 Jul 15 1965 DeplMMjlhcI
When I do:
rm DeplMMjlhcI
rm: remove weird file `DeplMMjlhcI'? y
rm: cannot remove `DeplMMjlhcI': Operation not permitted
I have tried to change it with chmod, but it doesn't want.
What could I do?
Thanks a lot of!
Carmen.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-08-2007 10:51 PM
тАО01-08-2007 10:51 PM
Re: Problems to rm one file (?--------- )
try quoting the filename.
rm 'DeplMMjlhcI'
ls -a to check for non-printable characters in filename
rm -i and step through the files
WARNING:
This will remove all files of 0 size in directory AND SUBDIRECTORIES:
find . -size 0c -exec rm {} \;
Find the nodeid of the file and remove it that way.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-08-2007 11:16 PM
тАО01-08-2007 11:16 PM
Re: Problems to rm one file (?--------- )
It doesn't works ok.
-------- 32767 root 7704 0 Aug 12 1965 DeplMbQeENi
# rm DeplMMjlhcI
rm: remove weird file `DeplMMjlhcI'? y
rm: cannot remove `DeplMMjlhcI': Operation not permitted
# ls -i
98340 bbc 229444 DeplMF0MGiA 229436 err4CjsrA 229434 ovpa_pkg.xml
229445 DeplMbQeENi 229443 DeplMMjlhcI 229431 outKXvpjh 229435 tmpovpa_pkg.xml
# find . -size 0c -exec rm {} \;
rm: cannot remove `./DeplMMjlhcI': Operation not permitted
rm: cannot remove `./DeplMF0MGiA': Operation not permitted
rm: cannot remove `./DeplMbQeENi': Operation not permitted
# find . -inum 229443 -exec rm {} \;
rm: cannot remove `./DeplMMjlhcI': Operation not permitted
What could I do?
Thanks!
Carmen.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-08-2007 11:18 PM
тАО01-08-2007 11:18 PM
Re: Problems to rm one file (?--------- )
What filesystem is that file located on?
Local,nfs,cifs?
What are the permissions of the directory?
rgds
HGH
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-08-2007 11:39 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-08-2007 11:39 PM
тАО01-08-2007 11:39 PM
Re: Problems to rm one file (?--------- )
The directory is temp/ and its depens on /var
# pwd
/var/opt/OV/installation/temp
# ls -lrta
total 28
drwxrwsr-x 4 root bin 4096 Sep 18 19:46 incoming
dr-xr-sr-x 19 bin bin 4096 Sep 18 19:48 ..
drwxrwsr-x 3 root bin 4096 Sep 18 19:49 packages
drwxr-xr-x 2 root bin 4096 Sep 18 19:49 inventory
drwxrwsr-x 7 bin bin 4096 Nov 20 11:35 .
drwxr-sr-x 2 root bin 4096 Jan 9 11:04 temp2
drwxrwxr-x 3 root bin 4096 Jan 9 13:13 temp
# ls -lrta temp
total 5291020984
?--------- 32767 root 38680 0 Jul 15 1965 DeplMMjlhcI
?--------- 32767 root 7192 0 Jul 23 1965 DeplMF0MGiA
?--------- 32767 root 7704 0 Aug 12 1965 DeplMbQeENi
-rw-rw-r-- 1 root bin 1756 Sep 18 19:46 tmpovpa_pkg.xml
-rw-rw-r-- 1 root bin 1772 Sep 18 19:46 ovpa_pkg.xml
drwxrwsr-x 7 bin bin 4096 Nov 20 11:35 ..
drwxr-sr-x 3 root bin 4096 Nov 20 11:39 bbc
drwxrwxr-x 3 root bin 4096 Jan 9 13:13 .
# df -k .
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/sda5 2063504 192448 1766236 10% /var
Thanks,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-09-2007 12:03 AM
тАО01-09-2007 12:03 AM
Re: Problems to rm one file (?--------- )
I can't reboot the server.
?--------- 32767 root 38680 0 Jul 15 1965 DeplMMjlhcI
?--------- 32767 root 7192 0 Jul 23 1965 DeplMF0MGiA
?--------- 32767 root 7704 0 Aug 12 1965 DeplMbQeENi
-rw-rw-r-- 1 root bin 1756 Sep 18 19:46 tmpovpa_pkg.xml
-rw-rw-r-- 1 root bin 1772 Sep 18 19:46 ovpa_pkg.xml
drwxrwsr-x 7 bin bin 4096 Nov 20 11:35 ..
drwxr-sr-x 3 root bin 4096 Nov 20 11:39 bbc
drwxrwxr-x 3 root bin 4096
# df -k .
# lsattr -v DeplMMjlhcI
lsattr: No such file or directory while trying to stat DeplMMjlhcI
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-09-2007 12:06 AM
тАО01-09-2007 12:06 AM
Re: Problems to rm one file (?--------- )
there are some process using this file?
Try to remove in another run-level.
Try also to remove with an external net tool, like WinSCP3, FileZilla or with a Linux-LiveCD (like knoppix).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-09-2007 12:26 AM
тАО01-09-2007 12:26 AM
Re: Problems to rm one file (?--------- )
That "file?" has an exorbitant link-count of 32767 it may be a directory with lots of subdirs but more probably a filesystem error.
Are there some hints in /var/log/messages?
can you do a:
# find /var -inum 229445 -exec ls -li {} \+
Finally i think the best is to get a downtime for reboot and fsck in single-user-mode.
rgds
HGH