- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Unable to remove /var/lost+found/info_log_msg ...
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
Forums
Discussions
Discussions
Discussions
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
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
07-12-2005 11:34 PM
07-12-2005 11:34 PM
Unable to remove /var/lost+found/info_log_msg directory
rm: info_log_msg/info_log_msg creates a cycle
rm: directory info_log_msg not removed. Cannot remove current directory
ls -R gives ls: filename too long
#cd /var/lost+found
#ll
total 2
drwxr-xr-x 3 101 users 1024 #rm info_log_msg
rm: info_log_msg directory
#ll
total 2
drwxr-xr-x 3 101 users 1024 Jul 3 17:11 info_log_msg
#rm -rf info_log_msg
rm: info_log_msg/info_log_msg creates a cycle
rm: directory info_log_msg not removed. Cannot remove current directory
Can any body tell how to remove these directory
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-12-2005 11:39 PM
07-12-2005 11:39 PM
Re: Unable to remove /var/lost+found/info_log_msg directory
ll | vis
ll -bv
Make user find command.
ll -il (Note down inode number of a file)
find . -inum "inode_no" -exec rm {} \;
Anil
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-12-2005 11:45 PM
07-12-2005 11:45 PM
Re: Unable to remove /var/lost+found/info_log_msg directory
Still if you want to delete then you can try this.. but deleting always is not best choise.
rm /lost+found/\#info_log_msg
-USA..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-13-2005 01:03 PM
07-13-2005 01:03 PM
Re: Unable to remove /var/lost+found/info_log_msg directory
info_log_msg is not a file.its a directory and it is going in a loop of sub directories...
I have tried to find how many subdirectories are there inside it by giving
" #ls -R " and it is getting out telling " ls: filename too long " below i have pasted a sample output.But this is only the last few lines the whole screen rolls out like this
./info_log_msg/info_log_msg/info_log_msg/info_log_msg/info_log_msg/info_log_msg/info_log_msg/info_log_msg/info_log_msg/info_log_msg/info_log_msg/info_log_msg/info_log_msg/info_log_msg/info_log_msg/info_log_msg/info_log_msg/info_log_msg/info_log_msg/info_log_msg/info_log_msg/info_log_msg/info_log_msg/info_log_msg/info_log_msg/info_log_msg/info_log_msg/info_log_msg/info_log_msg/info_log_msg/info_log_msg/info_log_msg/info_log_msg/info_log_msg/info_log_msg/info_log_msg:
ls: filename too long
HOW CAN I REMOVE THIS
Raghin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-13-2005 03:17 PM
07-13-2005 03:17 PM
Re: Unable to remove /var/lost+found/info_log_msg directory
#!/usr/bin/sh
while :
do
mkdir info_log_msg
cd info_log_msg
done
Please try the following perl script. It should remove directory tree assuming all directories are empty.
#!/usr/bin/perl -w
use File::Find;
finddepth(\&wanted, "/var/lost+found/info_log_msg");
sub wanted {
rmdir $_;
}