- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Deleting crazy directory
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
09-29-2004 01:59 AM
09-29-2004 01:59 AM
Deleting crazy directory
This one is for the clever and smart HP-UXers...
I have a directory which structure seems to be quite messy. I can't remove it, since it complains about not being empty. I can't remove the file's inside it either.
It seems that some ingenious user managed to send a windows directory to my HP box. :)
But the real chalenge is that I can't use the obvious fsck to try to fix it, since the filesystem cannot be dismounted (at least in near future).
Anyone knows a filesystem tool capable of do the trick?
Thank you all!
Alexandre.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-29-2004 02:02 AM
09-29-2004 02:02 AM
Re: Deleting crazy directory
Go into that dir & do a
rm -i *
and answer yes to all the files. You probably have a file in there with unprintable characters. Then when it's empty you ought to be able to remove the directory.
HTH,
Jeff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-29-2004 02:04 AM
09-29-2004 02:04 AM
Re: Deleting crazy directory
Say for example you want to delete "file one". "rm file one" will fail because of the space but "rm fil*" will work.
Make sure you've got rm aliased to "rm -i" in case rm removes files you want to keep.
Mark Syder (like the drink but spelt different)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-29-2004 02:04 AM
09-29-2004 02:04 AM
Re: Deleting crazy directory
\rm -rif *
then cd ..
and \rm -rf directory name
-Goodluck
Govind
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-29-2004 02:06 AM
09-29-2004 02:06 AM
Re: Deleting crazy directory
# fuser -u C /
if will give the users using it now try to unmount that particular widowns directory only . the guy might mount the the directory with in
a mounted directory .
try to see any cifs related dameons are running or not .
thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-29-2004 02:16 AM
09-29-2004 02:16 AM
Re: Deleting crazy directory
find . -xdev -print -exec ll -i {} \;
If this shows an inode number of say "674" in the first column then you could follow up with:
find . -inum 674 rm {} \;
Best regards,
Kent Ostby
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-29-2004 02:33 AM
09-29-2004 02:33 AM
Re: Deleting crazy directory
Hehe, I apreciate the prompt responses. But I'm afraid my case is a little complicated.
Some facts:
1. rm variations don't work 'cause there's no file to remove. It exists only in the squizofreninc structure of the directory.
2. That's also why taking the inode fails.
3. I believe that a fsck should fix it, I can't umount the directory so can't fsck it, can I?
4. Smart FTP clients also get trapped by the 'ghost file'.
Any sugestions?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-29-2004 08:29 PM
09-29-2004 08:29 PM
Re: Deleting crazy directory
Please try to see if it's in /etc/xtab, also.
Regards,
Marco