- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: cannot delete recursive 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
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
тАО05-20-2008 03:37 AM
тАО05-20-2008 03:37 AM
Re: cannot delete recursive directory
ncheck -F vxfs /dev/vg??/rlvol?|grep 1233
ll -i /dir |grep 1233
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-20-2008 03:58 AM
тАО05-20-2008 03:58 AM
Re: cannot delete recursive directory
Thanks,
1233 /lost+found/#1233/.
478465 /lost+found/#1233/core_16237/core_16237/core_16237/.
227910 /lost+found/#1233/core_16237/core_16237/core_16237/core_16237/core_162 37/core_16237/core_16237/core_16237/core_16237/core_16237/.
358858 .../#1233/core_16237/core_16237/core_16237/core_16237/core_16237/core_ 16237/core_16237/core_16237/core_16237/core_16237/core_16237/.
626633 /lost+found/#1233/core_16237/core_16237/core_16237/core_16237/.
677899 /lost+found/#1233/core_16237/core_16237/core_16237/core_16237/core_162 37/.
717773 /lost+found/#1233/core_16237/.
717774 /lost+found/#1233/core_16237/core_16237/core_16237/core_16237/core_162 37/core_16237/.
68427 /lost+found/#1233/core_16237/core_16237/.
751944 /lost+found/#1233/core_16237/core_16237/core_16237/core_16237/core_162 37/core_16237/core_16237/.
797513 /lost+found/#1233/core_16237/core_16237/core_16237/core_16237/core_162 37/core_16237/core_16237/core_16237/.
68428 /lost+found/#1233/core_16237/core_16237/core_16237/core_16237/core_162 37/core_16237/core_16237/core_16237/core_16237/.
$ls -i /disc/lost+found |grep 1233
1233 #1233
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-20-2008 04:14 AM
тАО05-20-2008 04:14 AM
Re: cannot delete recursive directory
cd /lost+found/#1233/core_16237
cd core_16237/core_16237/core_16237/core_16237
rm -rf .
If the rm fails, repeat the cd to go deeper, then repeat.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-20-2008 04:33 AM
тАО05-20-2008 04:33 AM
Re: cannot delete recursive directory
> its anyone to eliminate the lost+found and recreate again??
In the case you describe, you aren't going to be able to remove from this level if you can't remove from a subordinate directory.
That said, for your information, yes. You can recreate the 'lost+found' directory in a filesystem with 'mklost+found'. See the manpages for more information.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-20-2008 06:54 AM
тАО05-20-2008 06:54 AM
Re: cannot delete recursive directory
@Dennis: you can't remove the tree you're sitting on (rm -rf .):
>>>
cd /lost+found/#1233/core_16237
cd core_16237/core_16237/core_16237/core_16237
rm -rf .
<<<
Try instead
cd /lost+found/#1233/core_16237
cd core_16237/core_16237/core_16237/core_16237
rm -rf core_16237
mfG Peter
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-20-2008 12:15 PM
тАО05-20-2008 12:15 PM
Re: cannot delete recursive directory
1233 /lost+found/#1233/.
478465 /lost+found/#1233/core_16237/core_16237/core_16237/.
It doesn't look like there is a cycle in the directories. It looks like my previous case of some script gone awry.
>Peter: @Dennis: you can't remove the tree you're sitting on (rm -rf .):
Oops, I thought rm(1) would at least try to get the others.
>rm -rf core_16237
Yes or "*" if there is only the one directory there.
Also, if the tree is really deep, you can cd 10s of directories at a time:
DD=core_16237/core_16237/core_16237/core_16237/core_16237
DD20=$DD/$DD/$DD/$DD
cd $DD20
- « Previous
-
- 1
- 2
- Next »