System Administration
cancel
Showing results for 
Search instead for 
Did you mean: 

booting problem "load of /etc/init failed error 2"

MahdiRa
Frequent Advisor

booting problem "load of /etc/init failed error 2"

Dear all
i have problem in booting my machine which alpha server ds10 with the following error
vm_swap_init:warning /sbin/swapdefault swap device not found
swap set to lazy
load of /etc/init failed error 2
thx in advanced
12 REPLIES
Ivan Ferreira
Honored Contributor

Re: booting problem "load of /etc/init failed error 2"

>> device not found

Looks like you have a hardware problem. When the problem started? Did the machine crash previously? Can you see all disks that are connected to the server with the SRM>> show dev command?

I would try booting from the CD to verify access to the disks.
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
MahdiRa
Frequent Advisor

Re: booting problem "load of /etc/init failed error 2"

dear Ivan
i could see all the disks they seemed ok
regards
Vladimir Fabecic
Honored Contributor

Re: booting problem "load of /etc/init failed error 2"

I would also try booting from the CD to verify access to the disks.
But before that you can try boot in single user mode:
>>> boot -flag 0
In vino veritas, in VMS cluster
MahdiRa
Frequent Advisor

Re: booting problem "load of /etc/init failed error 2"

i booted from the cd but i need to mount my old root file system any one can advice how to do for os version "4.0f"
Mark Poeschl_2
Honored Contributor

Re: booting problem "load of /etc/init failed error 2"

Assuming your root directory is AdvFS, not UFS:

1. Boot from CD and go to command line interface
2. mkdir /etc/fdmns/fakeroot
3. ln -s /dev/rzxxyyz /etc/fdmns/fakeroot/rzxxyyz
4. mkdir /tmp/fakeroot
5. mount fakeroot#root /tmp/fakeroot

You will of course have to substitute the correct device name for 'rzxxyyz' in step 3.
MahdiRa
Frequent Advisor

Re: booting problem "load of /etc/init failed error 2"

thx but which commands i have to use to know the exact name of my device
Vladimir Fabecic
Honored Contributor

Re: booting problem "load of /etc/init failed error 2"

You said your OS version is 4.0f.
Do:
# scu scan edt
# scu show edt
to see where are your disks
That you may need to create device files:
# cd /dev
# ./MAKEDEV rz0*
Maybe it would be easier:
rz0 if your disk is DKA0 in console
or rz1 if your disk is DKA100 in console
or rz8 if your disk is DKB0 in console etc
If you have UFS then you can mount:
# mount /dev/rz0a /fakeroot
If you have advfs use solution from Mark.
In vino veritas, in VMS cluster
MahdiRa
Frequent Advisor

Re: booting problem "load of /etc/init failed error 2"

i did mount /dev/rz0a /mnt but it gives an error "no such device"
Vladimir Fabecic
Honored Contributor

Re: booting problem "load of /etc/init failed error 2"

What is console name for your boot disk?
Is it DKA0 or something else?
Did you create device files with MAKEDEV?
In vino veritas, in VMS cluster
MahdiRa
Frequent Advisor

Re: booting problem "load of /etc/init failed error 2"

dear all
i booted the system from the CD then mounted the old root and also etc using two partitions on the following device files
/dev/rz0a
/dev/rz1a
i did fsck for them and checked the files but every thing seemed ok with no loss of files but when i booted again from the disks i get the same errors as befor
regards
Vladimir Fabecic
Honored Contributor

Re: booting problem "load of /etc/init failed error 2"

I was away for a while.
Did you fix the problem?
If not,
try to boot single user mode:
>>> boot -flag 0
Then do # mount -a
and check your init scripts.
You can also try to boot generic kernel:
>>> boot -file genvmunix
In vino veritas, in VMS cluster
MahdiRa
Frequent Advisor

Re: booting problem "load of /etc/init failed error 2"

Dear all
thx so much for your help, but after i checked nearly every think i thought of about the problem i used bootable tape and restore from it using:
boot -fl nc
regards
Mahdi