- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: filesystems recovery
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
02-01-2001 01:32 AM
02-01-2001 01:32 AM
filesystems recovery
My init can't find /bin/sh and therefore no logins are allowed. Ops!
No Ignite nor other fancy tools installed.
HP9000 A400 server. No tape, only external CD available.
Strategy: boot from CD and try to mount manually all filesystems.
But how?
Thanks in advance,
JC
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-01-2001 01:40 AM
02-01-2001 01:40 AM
Re: filesystems recovery
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-01-2001 01:44 AM
02-01-2001 01:44 AM
Re: filesystems recovery
Power on server, and interrupt booting whet You see in console.
search CD driver with sea command
boot from CD with bo CD_HW_path command
example>
boot 0/0/1/0.1
Interact with IPL (Y, N, or Cancel)?> n
choose Run a Recovery Shell option.
regards, Saa
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-01-2001 04:58 AM
02-01-2001 04:58 AM
Re: filesystems recovery
In Ux-11.00 it should be /bin/sh instead of /bin/ksh.
Boot in single user mode and check /etc/passwd.
Had this one myself once.
Good luck,
CvE
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-01-2001 06:07 AM
02-01-2001 06:07 AM
Re: filesystems recovery
Watch out !!! root shell HAS TO BE /sbin/sh and NOT /bin/sh.
As the /bin directory is a symbolic link to /usr/bin, the shell /bin/sh won't be available at boot time as long as /usr isn't mounted.
/sbin/sh is the only statically linked shell, all other shell are dynamically linked and need access to the /usr/lib directory.
You should URGENTLY correct this in the passwd file.
Best regards,
Dan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-01-2001 06:35 AM
02-01-2001 06:35 AM
Re: filesystems recovery
It sounds like you may only have lost (removed) your transition links. At the root directory (/) an ls should show:
lr-xr-xr-t 1 root sys ... bin -> /usr/bin
lr-xr-xr-t 1 root sys ... lib -> /usr/lib
If not, then you can recreate these by doing:
# /opt/upgrade/bin/tlremove
# /opt/upgrade/bin/tlinstall -v
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-01-2001 11:20 PM
02-01-2001 11:20 PM
Re: filesystems recovery
I forgot the s from s(bin)/sh
CvE
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-02-2001 07:01 AM
02-02-2001 07:01 AM
Re: filesystems recovery
Worst than that: my root shell was /bin/bash which as you all well know is actually /usr/bin/bash due to the /bin symlink.
Therefore the binary was not available at that point since no other filesystems than / were mounted at that time.
(In fact it was worst than that since that binary was dynamically
linked...).
However the start-up procedure complained of a missing /sbin/sh which is not the case at all since /sbin/sh did actually exist.
Anyway, I nice guy came along with a portable CD and we try to mount the filesystems by using the recovery CD. We didn't succeed so we
used a second SCSI hard disk. We installed HP-UX on the later, booted the machine from it and finally we mounted the old filesystems and
fixed the darn /etc/passwd entry.
Time needed to make the fix: 10 sec.
Time until we mounted the filesystems: 4 h.
I have ordered an external CD already. This thing shouldn't happen again, but just in case.
Anyway, I'm a happy newbie administrator again since the server actually boots and I even got rid of the flashing "Attn" LED.
Yeah, HP-UX is not exactly a Linux box.
Thanks to all for the answers. Though I'm afraid you'll keep reading me.
Clemens, could you please contact me for a small remark?
Best Regards,
juan.borras@smartner.com