1837781 Members
4416 Online
110119 Solutions
New Discussion

Error with fstab

 
Miro Klima
Advisor

Error with fstab

Device swap was mounted as a vxfs filesystem. Now the system will not boot. It doesn't recongize the /bin directory so I have no commands to vi the file. What can I do?
7 REPLIES 7
Steven E. Protter
Exalted Contributor

Re: Error with fstab

If your system is still networked:

use ftp or sftp to copy the file to another system and edit it there.

Best course of action is to use sam to remove the swap and put it back and then you will be back in business.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Miro Klima
Advisor

Re: Error with fstab

ftp doesn't work. The system is not on the network. I have to use a backdoor to get in.
Miro Klima
Advisor

Re: Error with fstab

Oh, there is OS. System will not boot.
Steven E. Protter
Exalted Contributor

Re: Error with fstab

Sorry,

had I read carefully that would be apparent tome.

Take a core os cd and put it in the cd drive

boot the box at the console.

interupt the boot at the 10 second prompt

sea

usually the last random access device is the cd-rom.

bo P4
# if p4 is the cdrom on prior display.

do not interact.

You should be able to mount filesystems and restore a generic fstab file from the cd.

If not try this:

from the interact prompt

hpux -is

Now you need to manually mount /usr and /var

cat /etc/fstab to get the mount path

mount /dev/vg00/lvol4 /var
mount /dev/vg00/lvol5 /usr


now you can vi /etc/fstab and fix it.

I think my second idea single user mode is a better idea, now that i think of it.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Patrick Wallek
Honored Contributor

Re: Error with fstab

You should be able to boot into single user mode.

Once there do a 'mount /usr' and 'mount /var'. You should now be able to use vi to edit your /etc/fstab file.
Steven E. Protter
Exalted Contributor

Re: Error with fstab

Another note:

You seem new:

http://forums1.itrc.hp.com/service/forums/pageList.do?userId=CA352496&listType=unassigned&forumId=1

http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=140137

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Bill Hassell
Honored Contributor

Re: Error with fstab

/bin has not existed on HP-UX for more than 10 years. In SysV v4 layout, /bin was replaced by /usr/bin, but so many scripts and programs would break, a symbolic link was created called /bin and points to /usr/bin.

Just boot the system into single user mode and use the command:

mount -l -a

That mounts the filesystems you'll need to edit fstab.


Bill Hassell, sysadmin