免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
12下一页
最近访问板块 发新帖
查看: 5217 | 回复: 11
打印 上一主题 下一主题

solaris的启动问题及解决办法 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2003-02-21 14:52 |只看该作者 |倒序浏览
http://www.adminschoice.com/docs/booting__problems_in_solaris.htm#bootblk:%20can't%20find%20the%20boot%20program

Booting issues &  Problems in Solaris :

Following are some of the booting issues ,error messages their meaning and possible solutions

1) Booting in single user mode and mounting root disk .
2) Making boot device alias
3) "Timeout waiting for ARP/RARP packet"?  error message.
4) "The file just loaded does not appear to be executable" error message.
5) "bootblk: can't find the boot program" error message.
6) "boot: cannot open kernel/unix" error message .
7) "Error reading ELF header"? error message .
"Cannot open '/etc/path_to_inst'" error message.
9) "Can't stat /dev/rdsk/c0t3d0s0" error message .
  
1.Booting in single user mode and mounting root hard disk.
Most important step in  diagnosing the booting problems is booting the system in single user mode and examining the hard disk for possible errors & work out the corrective measure. Single user mode can be achieved by any of the following methods :-
ok>; boot -s           ;from root disk
ok>; boot net -s       ;from network
  
ok>;boot cdrom -s      ;from cdrom
Rebooting with command: cdrom -s  
Configuring the /devices directory
Configuring the /dev directory |
INIT: SINGLE USER MODE
#
# fsck /dev/rdsk/c0t3d0s0
# mount /dev/dsk/c0t3d0s0 /mnt
  
Perform the required operation on mounted disk , now accessible through /mnt ,& unmount the hard disk after you are done ;
# umount /mnt
# reboot
  
2.Making boot device alias
In case system can not boot from primary disk  and it is needed to make another boot disk to access the data , nvalias command is used .
nvalias command makes the device alias  and assigns an alternate name to a physical disk. Physical address of target disk is required  which can be had by show-disk command on ok>;.
  
ok>; nvalias disk7 /iommu@f,e0000000/sbus@f,e0001000/dma@3,81000/esp@3,80000/sd2,0
The new aliased disk can be named as boot disk or can be used for booting by refering its name .
ok>; setenv boot-device disk7
ok>;reset
or
ok>; boot disk7
  
3."Timeout waiting for ARP/RARP packet"?
At ok>; type printenv and look for these parameters .
  boot-device           disk
  mfg-switch?           false
  diag-switch?          false
if you see "boot-device net " or true value for the other two parameter change it to the values above.
In case you wants to boot from network make sure your client is properly configured in boot server and network connections & configuration are proper.
  
4."The file just loaded does not appear to be executable."
Boot block on the hard disk is corrupted .Boot the system in single user mode with cdrom and reinstall boot block .
#installboot /usr/platform/`uname -i`/lib/fs/ufs/bootblk /dev/rdsk/c0t3d0s0

5."bootblk: can't find the boot program"
boot block can not find the boot programe - ufsboot in Solaris .Either ufsboot is missing or corrupted . In such cases it can be restored from the cdrom after booting from cdrom & mounting the hard disk  
# cp /platform/`uname -i`/ufsboot /mnt/platform/`uname -i`
  
6."boot: cannot open kernel/unix"
Kernel directory or unix kernel file in this directory is not found .Probably deleted during fsck or deleted by mistake .Copy it from the cdrom or restore from the backup tape.
# cp /platform/`uname -i`/kernel/unix /mnt/platform/`uname -i`/kernel
  
7."Error reading ELF header."?
Kernel directory or unix kernel file in this directory is corrupted.Copy it from the cdrom or restore from the backup tape.
# cp /platform/`uname -i`/kernel/unix /mnt/platform/`uname -i`/kernel
  
8."Cannot open '/etc/path_to_inst'"
System can not find the /etc/path_to_install file .It might be missing or corrupted and needs to be rebuild.
To rebuild this file  boot the system with  -ar option :
ok>;boot -ar
Press enter to select default values for the questions  asked during booting and select yes to rebuild /etc/path_to_install
The /etc/path_to_inst on your system does not exist or is empty. Do you want to rebuild this file [n]? y
system will continue booting after rebuilding the file.
  
9."Can't stat /dev/rdsk/c0t3d0s0"
When booted from cdrom  and done fsck the root partition comes out to be fine but on booting from root disk this error occurs. The device name for / is missing from /dev/dsk directory and to resolve the issue /dev & /devices directories has to be restored from root backup tapes .

论坛徽章:
0
2 [报告]
发表于 2003-02-21 15:32 |只看该作者

solaris的启动问题及解决办法

Thanks~!

论坛徽章:
0
3 [报告]
发表于 2003-02-21 21:37 |只看该作者

solaris的启动问题及解决办法

不错,up

论坛徽章:
0
4 [报告]
发表于 2003-02-21 22:32 |只看该作者

solaris的启动问题及解决办法

good

论坛徽章:
0
5 [报告]
发表于 2003-02-22 12:14 |只看该作者

solaris的启动问题及解决办法

好文章!

论坛徽章:
0
6 [报告]
发表于 2003-02-25 10:13 |只看该作者

solaris的启动问题及解决办法

不错!!

论坛徽章:
0
7 [报告]
发表于 2003-02-25 10:16 |只看该作者

solaris的启动问题及解决办法

好东西,一切就绪,就盼着机器当机做试验了

论坛徽章:
0
8 [报告]
发表于 2003-02-25 10:16 |只看该作者

solaris的启动问题及解决办法

真好!

论坛徽章:
0
9 [报告]
发表于 2003-02-25 11:00 |只看该作者

solaris的启动问题及解决办法

up / up 已阅。100%

论坛徽章:
0
10 [报告]
发表于 2003-02-26 09:58 |只看该作者

solaris的启动问题及解决办法

我看了SOLARIS 8的INSTALL INMAGE

上面 /platform/`uname -i`/kernel下面没有UNIX这个目录

这是为什么??????????
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP