1824485 Members
3416 Online
109671 Solutions
New Discussion юеВ

System can not boot

 
Hoang Chi Cong_1
Honored Contributor

System can not boot

Hi all
There is a server (rp5470) suddenly reboot.
Then I can not boot it in level 3 mode.
It can be boot in single-user mode.
During the booting proccess, the error message are:

INIT: /etc/inittab: Cannot stat: No such file or directory

INIT: WARNING: /etc/inittab is CORRUPT.
INIT: System being brought up SINGLE-USER !!!

INIT: WARNING: No passwd entry for root.
FIX root ENTRY IN /etc/passwd (OR TCB if trusted ) AND REBOOT !!!



INIT: Overriding default level with level 's'

INIT: SINGLE USER MODE

INIT: WARNING: No passwd entry for root.
FIX root ENTRY IN /etc/passwd AND REBOOT !!!



INIT: Running /sbin/sh

Then the prompt is #

I found a thread that similar to my trouble:
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=725926

But in my case, I still can go to /etc filesystem.
But all fstab, inittab disapear!
So that I can not mount filesystem:
# mount /usr
mount: Cannot stat /etc/fstab: No such file or directory
# mount /etc
mount: Cannot stat /etc/fstab: No such file or directory

At this time I can not execute any command...except some simple commands like pwd, exec, ls

I have already try to boot with ISL and boot from backup kernel:
ISL>hpux -is /stand/vmunix.prev
But all the same!

Please advice!
Thanks
Hoang Chi Cong
Looking for a special chance.......
9 REPLIES 9
Luk Vandenbussche
Honored Contributor

Re: System can not boot

Hi,

Do you have write access to /etc
=> touch /etc file
If not, there is probably a problem with the disk.

Can you manually recreate /etc/inittab and /etc/fstab (from another server)

If those things are not working I think you should restore the OS from an ignite tape
Warren_9
Honored Contributor

Re: System can not boot

hi,

/etc default is in the root FS and not a seperate FS.

is all the files in /etc are missing/removed? only directories left?

I think you need to restore files from the backup.

GOOD LUCK!

Hoang Chi Cong_1
Honored Contributor

Re: System can not boot

Thanks

All of the internal disk are OK!
I can not use any command except : pwd, exec, ls, cd.
So that can not create any file :-(

I don't want to recovery from tape.

Any idea?
Looking for a special chance.......
Borislav Perkov
Respected Contributor

Re: System can not boot

Hi,

You should type:

mount -F vxfs /dev/vg_name/lv_name /etc

then you don't need /etc/fstab

But I think you have to make recovery from the ignite, or in case you have mirror disk for root partition ( in case it is not corrupted too ) try to boot from that disk.

Regards,
Borislav
Muthukumar_5
Honored Contributor

Re: System can not boot

Only way is to mount file system only. But syntax you used was wrong.

If either special or directory is omitted, mount attempts to determine the missing value from an entry in the /etc/fstab file.

# mount

Example:
#mount -F hfs /dev/dsk/c1t2d0 /home

-Muthu
Easy to suggest when don't know about the problem!
Muthukumar_5
Honored Contributor

Re: System can not boot

Mount /usr directory and use files in /usr/newconfig/etc/ files to replace in /etc/. If you are having backup of /etc/ already then recover to /etc/ location.

-Muthu
Easy to suggest when don't know about the problem!
Borislav Perkov
Respected Contributor

Re: System can not boot

Try to mount than /usr and there in /usr/newconfig/etc/ you can find all files you needed.
You must have printout for all necesary config files!
Arunvijai_4
Honored Contributor

Re: System can not boot

You can try the following in single user mode,

# /sbin/mount /dev/vg00/lvol7 /usr
then copy inittab, fstab, passwd files to /etc.


-Arun
"A ship in the harbor is safe, but that is not what ships are built for"
Hoang Chi Cong_1
Honored Contributor

Re: System can not boot

Hmm.....no solution!
I have take a call to HP...
Recover from Ignite is my last solution :(

Thanks to everyone!

B&R
Hoang Chi Cong
Looking for a special chance.......