- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- two directory with the same name
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-05-2005 05:06 PM
09-05-2005 05:06 PM
two directory with the same name
1. If i give ls -l pamdb , i found only one directory .
2. If i give ls -il , it shows me 2 directory with diff inode number.
3. i tried to remove directory pamdb & after that i found no directoy by ls -l pamdb , but i found one by ls -l , if tried to give ls -il then i am getting one directory at inode entry 2365.
I have tried clri command to clear this inode entry , but it only works on hfs file system , I checked the i node entry by ncheck ,it is under / file system lvol3.
Can u give me some command to remove this file from Inode database.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-05-2005 05:19 PM
09-05-2005 05:19 PM
Re: two directory with the same name
These two directories are not with the same name.May be while creating any of the directory u have pressed a space so that directory is with the name plus space.
I faced the same problem once.Please chech which directory has a space after the name.
Ciaoo
Bhushan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-05-2005 05:27 PM
09-05-2005 05:27 PM
Re: two directory with the same name
ls -b
will print control characters also.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-05-2005 07:01 PM
09-05-2005 07:01 PM
Re: two directory with the same name
ls -d /pam* | xd -tx1 -tc
and check its output.
Other trick is:
ls -d ????? # this command will print the true pamdb directory. The false one would have more than 5 chars.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-05-2005 07:09 PM
09-05-2005 07:09 PM
Re: two directory with the same name
ll | vis
ll -b
ll | cat -v
check control/non-prinable chars and then you can remove it as follows.
ls -il *
check inode number for those files.
find . -inum "inode_number" -exec rm -r {} \;
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-05-2005 07:34 PM
09-05-2005 07:34 PM
Re: two directory with the same name
first get your inode number with any command, and then :
FILE=`find . -inum yourinode -print`; echo ${FILE}A
regards
fl
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-05-2005 08:19 PM
09-05-2005 08:19 PM
Re: two directory with the same name
I have done all these checking , all these thins are ok. No extra space or control character, This kind of issue i am able to see first time in my carrier.
In my previous mail also i have written that One directory is just the dummy thing with a inode entry 2365.
I just want to remove that I node entry. This is might has happened due to system crash.
Please revert back how to clear the inode entry.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-05-2005 08:24 PM
09-05-2005 08:24 PM
Re: two directory with the same name
# cd /
# find . -inum 2365 -exec mv {} /tmp/vikas \;
Regards,
Robert-Jan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-05-2005 08:25 PM
09-05-2005 08:25 PM
Re: two directory with the same name
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-05-2005 09:21 PM
09-05-2005 09:21 PM
Re: two directory with the same name
would you mind your posting the output of commands requested ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-05-2005 09:24 PM
09-05-2005 09:24 PM
Re: two directory with the same name
Robert-Jan Goosens.
I think -xdev option is very important to be used:
# cd /
# find . -xdev -inum 2365 -exec mv {} /tmp/vikas \;
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-06-2005 10:51 AM
09-06-2005 10:51 AM
Re: two directory with the same name
You can try ,
1.# ls -i | grep pam
[ not down the inode nos. of both.]
# ls -b | grep pam [ You may find any diff ]
If no difference , then proceed to 2.
2. Check both the dir , as per inode :
# find . -type d -xdev -inum xxx -print
# find . -type d -xdev -inum yyy -print
[ xxx and yyy are the indoe number of the two dir. ]
[ Any difference ! ]
3. You can compare the size also , to make sure they are really exists and you can move or delete :
#find . -type d -xdev -inum xxx -exec du -sk {} \;
#find . -type d -xdev -inum yyy -exec du -sk {} \;
And then you can move using mv with find.
Hope this will help ,
Cheers,
Raj.D.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-06-2005 04:21 PM
09-06-2005 04:21 PM
Re: two directory with the same name
Thanks for replying , Today i am going to customer place & from there i will send u output of all the commands u ppls are asking.
When customer has reported this problem to me that time i also suggested him all these things & once i reached at customer site, i found this is just a secound dummy name u can noy move , delete or copy this directory , But when u give ls u will find it.
Any how will get back to all u ppls with output of these commands .
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-06-2005 07:11 PM
09-06-2005 07:11 PM
Re: two directory with the same name
Find command with inum works fine & i deleted that directory successfully ,
Thanks all for your replies ,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-06-2005 07:13 PM
09-06-2005 07:13 PM
Re: two directory with the same name
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-07-2005 02:23 AM
09-07-2005 02:23 AM
Re: two directory with the same name
Nice to know that with find and inum you can able to delete it . Cheers.
Also found that you have given 1 points to each , initially I thought it is 10 , but found 0 is vanished.
Giving 1 point each , it seems that you have not got any help from this thread , and may be not happy.
Cheers,
Raj.D.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-07-2005 04:14 PM
09-07-2005 04:14 PM
Re: two directory with the same name
I am sorry for that, this was my first chance to give points, I have given one point to each one who replied & i was planning to add points to those ppls who's solution works for me, but after that site has not allowed me to change the already assigned points. Hope u understand.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-07-2005 05:36 PM
09-07-2005 05:36 PM
Re: two directory with the same name
You are most welcome.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-08-2005 02:04 AM
09-08-2005 02:04 AM
Re: two directory with the same name
Keep your queries posted ,
Enjoy and Have fun.
HTH.
Raj.D