- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- mounting /usr in recovery mode
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-23-2007 08:40 PM
07-23-2007 08:40 PM
Our server wont boot as it gives an error message - can't find dld.sl.
If I boot in single user mode, I get the same error message.
So I have been able to boot from OS cd and go into recovery mode.
The / file system is mounted as /ROOT, but the /usr folder is empty.
When I try to use mount command I get :
/sbin/sh : mount : not found.
Does anyone tell me how I can get /usr mounted in recovery mode.
Much appreciated
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-23-2007 08:45 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-23-2007 08:46 PM
07-23-2007 08:46 PM
Re: mounting /usr in recovery mode
Does it tell you the name of the executable that wants to use dld?
Did you happen to illegal change the shell for root? You absolutely must NEVER change it from /sbin/sh.
But since you an error with "/sbin/sh", perhaps that isn't it? Or the recovery CD fixes your shell goof up?
You could have broken the shell PATH? Try using "/sbin/mount -a"
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-23-2007 09:33 PM
07-23-2007 09:33 PM
Re: mounting /usr in recovery mode
I have /usr now mounted after rebooting into single usr mode and setting PATH to include /sbin - thanks for the pointer on that.
The file that is causing me trouble is /usr/lib/dld.sl.
Initially we were having trouble with our applications (they dive an error against dld.sl) so I recovered this file from an older version to dld2.sl. It wouldnt let me overwrite dld.sl, so I deleted it - but it then wouldnt let me rename dld2.sl back to dld2.sl.
I'm back now to seeing the file /usr/lib/dld2.sl; but it wont let me copy or rename this to /usr/lib/dld.sl.
When I try to copy or rename, I get the error message :
crt0: ERROR couldnt open /usr/lib/dld.sl error no 000000002.
Any ideas how I can get dld2.sl back to dld.sl?
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-24-2007 12:16 AM
07-24-2007 12:16 AM
Re: mounting /usr in recovery mode
So firstly you have to be in single user mode, and then have mounted /usr
Then instead of tring to use cp, use /sbin/cat :
/sbin/cat /usr/lib/dld2.sl > /usr/lib/dld.sl
HTH
Duncan
I am an HPE Employee

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-24-2007 09:16 AM
07-24-2007 09:16 AM
Re: mounting /usr in recovery mode
If the system is up, you should use ln -f:
# ln dld.sl dld.sl.old
# ln -f dld2.sl dld.sl
# rm dld2.sl # if you want
If you have already broken dld.sl, then you can use /sbin/ln.
And finally if that doesn't work, you can use the /sbin/link hammer.
>Duncan: The problem is (I suspect) that the cp command itself uses shared libraries.
Exactly.
>So firstly you have to be in single user mode, and then have mounted /usr
These are not the droids you want. ;-)
>Then instead of trying to use cp, use /sbin/cat
This is not the way to do it.
The proper way is ln or /sbin/ln. (You do have to be on the same filesystem.)
If the link count of the target is 2, then ln -f can rename to that file.