Operating System - HP-UX
1834657 Members
2572 Online
110069 Solutions
New Discussion

Broken fstab, unable to boot

 
SOLVED
Go to solution
Feisst
New Member

Broken fstab, unable to boot

Hello

In the fstab, the entry for the /usr (mounted on /dev/vg00/lvol4) is not correct. Know we are not able to boot the machine.

How to repair the fstab ?
Or how to boot a rescue shell and mount a LVM ?
9 REPLIES 9
Bill McNAMARA_1
Honored Contributor
Solution

Re: Broken fstab, unable to boot

At the boot menu:

Main Menu : Command Menu > BO PRI

Interact with IPL > Y

ISL > hpux -is

you'll get a prompt and can edit, fstab...
with sed etc.. not that you'll not have /usr available

#


Later,
Bill
It works for me (tm)
Bill McNAMARA_1
Honored Contributor

Re: Broken fstab, unable to boot

well afterall,
you can at the prompt:

vgchange -a vg00

mount /dev/vg00/lvol7 /usr
mount /dev/vg00/lvol8 /var

and procede to edit the fstab with vi.

Later,
Bill
It works for me (tm)
Stefan Farrelly
Honored Contributor

Re: Broken fstab, unable to boot


Just boot the server in lvm maintenance mode (hpux -lq), activate vg00, mount lvol3 (/) onto a temporary mountpoint (eg. mkdir tmp_mnt) then cd /tmp_mnt/etc and take a look at /etc/fstab and try to rebuild it. You wont be able to use vi (need /usr) but you can use echo >> to rebuild it and then reboot.
Im from Palmerston North, New Zealand, but somehow ended up in London...
Pete Randall
Outstanding Contributor

Re: Broken fstab, unable to boot

An idle question, Stefan. How can you look at fstab if you don't have /usr mounted? All the commands I can think of are in /usr: cat, more, even strings. I suppose you could null it out with echo and then use echo to build a basic, stripped down version but there don't seem to be many other choices.

Pete

Pete
Stefan Farrelly
Honored Contributor

Re: Broken fstab, unable to boot

Actually, the question didnt say /usr had a problem so after mounting lvol3 to a temporary mount you can also mount /usr (manually) then you can use vi !

If /usr was corrupt then you could use echo to rebuild the fstab file line by line (echo ... >>/etc/fstab)
Im from Palmerston North, New Zealand, but somehow ended up in London...
Robert Thorneycroft
Valued Contributor

Re: Broken fstab, unable to boot

Pete you will find an extra copy of cat hidden under /sbin as well as the more usual location of /usr/bin.

Kind regards,

Robert Thorneycroft
Pete Randall
Outstanding Contributor

Re: Broken fstab, unable to boot

Cool - thanks, Robert!

Pete

Pete
Bill McNAMARA_1
Honored Contributor

Re: Broken fstab, unable to boot

if usr is corrupt and you cant mount it - so cant edit easily ..
you can use mount to mount what you can, then
mount -p > /etc/fstab

Later,
Bill
It works for me (tm)
Feisst
New Member

Re: Broken fstab, unable to boot

Hi

Only the fstab was broken, /usr was ok. Machine is up again. Thanks for the help.