- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- /etc/inittab is corrupt, not sure what to do
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-17-2005 05:42 AM
тАО12-17-2005 05:42 AM
is there a way i can get or create a new one without restoring and older backup?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-17-2005 05:53 AM
тАО12-17-2005 05:53 AM
SolutionSeems you have corrupted inittab .
You needs to boot in single user mode and copy it from backup place.
ISL> hpux -is
Activate vg00
fsck all lvols
mount the lvols.
check for your backup copy of inittab, if available replace.
Hope this will help.
Cheers,
Raj.
---
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-17-2005 05:55 AM
тАО12-17-2005 05:55 AM
Re: /etc/inittab is corrupt, not sure what to do
I'd restore a backup copy. You can use an Ignite recovery tape and restore only the file in question, or you can restore if from another backup.
Some restoration methods will require you to mount '/usr' since things like 'mt' live there. Most other tools have '/sbin' binaries --- 'tar', 'fbackup', for instance.
If you use an Ignite tape, mount '/usr' for /usr/bin/mt, and do:
# mt -t /dev/rmt/0mn fsf 1
# tar -xvf /dev/rmt/0m /etc/inittab
This may take some time to extract, so be patient.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-17-2005 05:59 AM
тАО12-17-2005 05:59 AM
Re: /etc/inittab is corrupt, not sure what to do
Ah, I just remembered that there is another work-around. There should be a workable, "virgin" that may suit your needs for getting your system back up more quickly. You should find:
/usr/newconfig/etc/inittab
Copy it as '/etc/inittab', and fix it up for your needs.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-17-2005 05:59 AM
тАО12-17-2005 05:59 AM
Re: /etc/inittab is corrupt, not sure what to do
Here is a sample of /etc/inittab file of hpux 11i , but suggested to restore your original from backup , to keep your configuration unchanged.
$ cat /etc/inittab
init:4:initdefault:
ioin::sysinit:/sbin/ioinitrc >/dev/console 2>&1
pwr::sysinit:/sbin/emcpstartup /dev/console 2>&1 # PowerPath
tape::sysinit:/sbin/mtinit > /dev/console 2>&1
muxi::sysinit:/sbin/dasetup /dev/console 2>&1 # mux init
stty::sysinit:/sbin/stty 9600 clocal icanon echo opost onlcr ixon icrnl ignpar vxen::bootwait:/sbin/fs/vxfs/vxenablef -a
vol1::sysinit:/sbin/init.d/vxvm-sysboot /dev/console 2>&1 ##vxvm
vol2::sysinit:/sbin/init.d/vxvm-startup start /dev/console 2>&1 ##vxvm
brc1::bootwait:/sbin/bcheckrc /dev/console 2>&1 # fsck, etc.
link::wait:/sbin/sh -c "/sbin/rm -f /dev/syscon; \
/sbin/ln /dev/systty /dev/syscon" >/dev/console 2>&1
cprt::bootwait:/sbin/cat /etc/copyright >/dev/syscon # legal req
sqnc::wait:/sbin/rc /dev/console 2>&1 # system init
#powf::powerwait:/sbin/powerfail >/dev/console 2>&1 # powerfail
cons:123456:respawn:/usr/sbin/getty console console # system console
#ttp1:234:respawn:/usr/sbin/getty -h tty0p1 9600
#ttp2:234:respawn:/usr/sbin/getty -h tty0p2 9600
#ttp3:234:respawn:/usr/sbin/getty -h tty0p3 9600
#ttp4:234:respawn:/usr/sbin/getty -h tty0p4 9600
#ttp5:234:respawn:/usr/sbin/getty -h tty0p5 9600
krsd:123456:respawn:/sbin/krsd -i
sfd:123456:respawn:/sbin/sfd
#ups::respawn:rtprio 0 /usr/lbin/ups_mond -f /etc/ups_conf
----------------
Cheers,
Raj.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-17-2005 07:08 AM
тАО12-17-2005 07:08 AM
Re: /etc/inittab is corrupt, not sure what to do
dns subsytem. I'm trying to do the recovery right now and we'll see how that works.
thanks,
-eric
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-17-2005 08:52 AM
тАО12-17-2005 08:52 AM
Re: /etc/inittab is corrupt, not sure what to do
-Eric
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-17-2005 09:22 AM
тАО12-17-2005 09:22 AM
Re: /etc/inittab is corrupt, not sure what to do
What has probably happened is some customization that was done to your /etc/inititab is not there any more.
This has to do with the backup source.
If there is a recent ignite tape before the pro blem, you should be able to read this one file back.
An alternative is to pick an inittab from a similar system.
You might want to run cstm or mstm or xstm and check this systems hardware. What trashed the inittab file in the first place may be a symptom of something far worse that you want to catch before your system halts completely.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-17-2005 11:14 AM
тАО12-17-2005 11:14 AM
Re: /etc/inittab is corrupt, not sure what to do
I'm glad the 'frecover' worked for you. The process is silent unless you run it with the -v' and/or '-m' switches. Have a look at the 'frecover(1M)' man pages for more information, the next time you use it.
Regards!
...JRF...