1826480 Members
4236 Online
109692 Solutions
New Discussion

Boot problem

 
SOLVED
Go to solution
Sauvik Basu
Advisor

Boot problem

Accidentally,/usr has been unmounted and removed from /etc/fstab file.Now while booting there are a number of error messages and the machine does provide any login console.How do I get back to working state?
10 REPLIES 10
Pete Randall
Outstanding Contributor

Re: Boot problem

Boot in single user mode, mount /usr, correct /etc/fstab and then re-boot into multi-user mode. Boot the box, interrupt at the 10 second prompt, interact with ISL, and enter "hpux -is" to boot.


Pete

Pete
Sauvik Basu
Advisor

Re: Boot problem

But how do I boot in single user mode?
Bharat Katkar
Honored Contributor

Re: Boot problem

Hi,

1. Reboot the machine
2. Halt it at PDC prommpt ( During initial startup of the machine it prompt you to halt the system )
3. After you get the PDC prompt:

Main menu> boot
Interact with IPL> yes
ISL> hpux -is

This will take you to single user mode.

If it is a IA machine then you go into EFI shell. There similarly you can go to hpux prompt:

hpux> boot hpux -is

Hope that helps.
Regards,
You need to know a lot to actually know how little you know
Sauvik Basu
Advisor

Re: Boot problem

Which editor does allow to change the /etc/fstab file in single user mode?vi is not being found.
Pete Randall
Outstanding Contributor

Re: Boot problem

You have to manually mount /usr in order to use vi. Just do "mount -a"


Pete

Pete
Patrick Wallek
Honored Contributor
Solution

Re: Boot problem

If your LV names are standard the /usr LV should /dev/vg00/lvol7. So do a:

# mount /dev/vg00/lvol7 /usr

Now you should have /usr available, and vi available, so you can edit your /etc/fstab. The standard /usr fstab entry should look like:

/dev/vg00/lvol7 /usr vxfs delaylog 0 2
Patrick Wallek
Honored Contributor

Re: Boot problem

Pete - but a 'mount -a' won't get /usr if it isn't in /etc/fstab. ;)
Pete Randall
Outstanding Contributor

Re: Boot problem

Patrick,

Thanks - I just came to that same conclusion! Duh.


Pete

Pete
Bharat Katkar
Honored Contributor

Re: Boot problem

Hi,

you can compare two output and probably judge which lv belongs to /usr.

1. # cat /etc/fstab
2. # cd /dev/vg00/dsk
# ll

Just see what lv you have created in vg00 and which one is missing in fstab.

Hope that works.
Regards,
You need to know a lot to actually know how little you know
Suraj Singh_1
Trusted Contributor

Re: Boot problem

Hi,

In single use mode, if you know the LV name where /usr resides, then you can redirect that to /etc/fstab, something like:

echo '/dev/vg00/lvol7 /usr vxfs delaylog 0 2' >> /etc/fstab

Then use "mount -a" command to mount it.

Hope that helps,

Regards
What we cannot speak about we must pass over in silence.