linux社区爱心援助Linux认证系列教程业界动态站务新闻公司招聘建议留言网址大全LPI专题CISCO专题
设为首页
加入收藏
管理团队
JSP  
JAVA  
PERL  
 您的位置:首页 > article > unix > unix入门 >
栏目导栏
资料搜索
热门文章
·SCO OpenServer系统手册
·solaris迅速查找手册
·UNIX常用命令-目录及文件操作命
·常见的“压缩与解压缩”方法
·SUN的入门培训资料
·Solaris FAQ 1.2
·UNIX系统操作入门篇
·unix大全下载基地
·教你如何配置安全的SOLARIS系统
·吐血奉献.samba安装设置!
·solaris常用命令及简单解释
·UNIX 常识总集~!
·Windows XP 与 Solaris 10 双操
·隆重推荐:Solaris硬盘分区简介
·UNIX基础知识
最新文章
·Solaris SSH的配置和管理介绍
·在Unix环境下mount ISO文件
·Solaris 管理员常用的168条命令
·solaris raid 制作大集合
·在Solaris下使用USB存储设备
·SecureCRT访问HPUX没办法用vi问
·scounix网络设置心得
·solaris网络配置
·solaris上直接运行linux二进制
·HP Unix的补丁安装
·系统备份与恢复命令:fbackup+
·Oracle 10g基于Solaris 9 x86平
·完全硬盘安装solaris10
·solaris点滴9.29-10.07
·solaris volume manager do RA
Google
 
solaris的启动问题及解决办法
[ 作者:Linux联盟收集  加入时间:2006-07-19 12:52:52  来自:Linux联盟收集 ]
http://www.adminschoice.com/docs/booting__problems_in_solaris.htm#bootblk:%20can't%20find%20the%20boot%20program FkHLinux联盟
FkHLinux联盟
Booting issues &  Problems in Solaris : FkHLinux联盟
FkHLinux联盟
Following are some of the booting issues ,error messages their meaning and possible solutions  FkHLinux联盟
FkHLinux联盟
1) Booting in single user mode and mounting root disk .  FkHLinux联盟
2) Making boot device alias  FkHLinux联盟
3) "Timeout waiting for ARP/RARP packet"?  error message.  FkHLinux联盟
4) "The file just loaded does not appear to be executable" error message.  FkHLinux联盟
5) "bootblk: can't find the boot program" error message.  FkHLinux联盟
6) "boot: cannot open kernel/unix" error message .  FkHLinux联盟
7) "Error reading ELF header"? error message .  FkHLinux联盟
8) "Cannot open '/etc/path_to_inst'" error message.  FkHLinux联盟
9) "Can't stat /dev/rdsk/c0t3d0s0" error message .  FkHLinux联盟
   FkHLinux联盟
1.Booting in single user mode and mounting root hard disk.  FkHLinux联盟
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 :-  FkHLinux联盟
ok>; boot -s           ;from root disk  FkHLinux联盟
ok>; boot net -s       ;from network  FkHLinux联盟
   FkHLinux联盟
ok>;boot cdrom -s      ;from cdrom  FkHLinux联盟
Rebooting with command: cdrom -s   FkHLinux联盟
Configuring the /devices directory  FkHLinux联盟
Configuring the /dev directory |  FkHLinux联盟
INIT: SINGLE USER MODE  FkHLinux联盟
FkHLinux联盟
# fsck /dev/rdsk/c0t3d0s0  FkHLinux联盟
# mount /dev/dsk/c0t3d0s0 /mnt  FkHLinux联盟
   FkHLinux联盟
Perform the required operation on mounted disk , now accessible through /mnt ,& unmount the hard disk after you are done ;  FkHLinux联盟
# umount /mnt  FkHLinux联盟
# reboot  FkHLinux联盟
   FkHLinux联盟
2.Making boot device alias  FkHLinux联盟
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 .  FkHLinux联盟
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>;.  FkHLinux联盟
   FkHLinux联盟
ok>; nvalias disk7 /iommu@f,e0000000/sbus@f,e0001000/dma@3,81000/esp@3,80000/sd2,0  FkHLinux联盟
The new aliased disk can be named as boot disk or can be used for booting by refering its name .  FkHLinux联盟
ok>; setenv boot-device disk7  FkHLinux联盟
ok>;reset  FkHLinux联盟
or  FkHLinux联盟
ok>; boot disk7  FkHLinux联盟
   FkHLinux联盟
3."Timeout waiting for ARP/RARP packet"?  FkHLinux联盟
At ok>; type printenv and look for these parameters .  FkHLinux联盟
  boot-device           disk FkHLinux联盟
  mfg-switch?           false FkHLinux联盟
  diag-switch?          false  FkHLinux联盟
if you see "boot-device net " or true value for the other two parameter change it to the values above.  FkHLinux联盟
In case you wants to boot from network make sure your client is properly configured in boot server and network connections & configuration are proper.  FkHLinux联盟
   FkHLinux联盟
4."The file just loaded does not appear to be executable."  FkHLinux联盟
Boot block on the hard disk is corrupted .Boot the system in single user mode with cdrom and reinstall boot block .  FkHLinux联盟
#installboot /usr/platform/`uname -i`/lib/fs/ufs/bootblk /dev/rdsk/c0t3d0s0 FkHLinux联盟
FkHLinux联盟
5."bootblk: can't find the boot program"  FkHLinux联盟
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   FkHLinux联盟
# cp /platform/`uname -i`/ufsboot /mnt/platform/`uname -i`  FkHLinux联盟
   FkHLinux联盟
6."boot: cannot open kernel/unix"  FkHLinux联盟
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.  FkHLinux联盟
# cp /platform/`uname -i`/kernel/unix /mnt/platform/`uname -i`/kernel  FkHLinux联盟
   FkHLinux联盟
7."Error reading ELF header."?  FkHLinux联盟
Kernel directory or unix kernel file in this directory is corrupted.Copy it from the cdrom or restore from the backup tape.  FkHLinux联盟
# cp /platform/`uname -i`/kernel/unix /mnt/platform/`uname -i`/kernel  FkHLinux联盟
   FkHLinux联盟
8."Cannot open '/etc/path_to_inst'"  FkHLinux联盟
System can not find the /etc/path_to_install file .It might be missing or corrupted and needs to be rebuild.  FkHLinux联盟
To rebuild this file  boot the system with  -ar option :  FkHLinux联盟
ok>;boot -ar  FkHLinux联盟
Press enter to select default values for the questions  asked during booting and select yes to rebuild /etc/path_to_install  FkHLinux联盟
The /etc/path_to_inst on your system does not exist or is empty. Do you want to rebuild this file [n]? y  FkHLinux联盟
system will continue booting after rebuilding the file.  FkHLinux联盟
   FkHLinux联盟
9."Can't stat /dev/rdsk/c0t3d0s0"  FkHLinux联盟
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 .FkHLinux联盟
Linux联盟收集整理 ,转贴请标明原始链接,如有任何疑问欢迎来本站Linux论坛讨论
评论】【加入收藏夹】【 】【打印】【关闭
※ 相关链接
 ·想成为嵌入式程序员应知道的0x10个基本问题  (2006-07-18 20:35:29)
 ·JAVA与C++::关于JNI中文字符串操作问题总结  (2006-07-18 20:25:37)
 ·Linux远程启动  (2006-07-18 19:14:46)
 ·Sun硬件设备和Solaris的对照表  (2006-07-18 13:13:40)
 ·高级用户和系统管理员指南---Solaris 公用桌面环境  (2006-07-18 13:12:28)
 ·Solaris 9 安装使用针式打印机  (2006-07-18 12:44:11)
 ·The Solaris Security FAQ  (2006-07-18 12:39:59)
 ·Solaris中的snoop使用手册  (2006-07-18 12:35:00)
 ·Solaris网络管理  (2006-07-18 12:33:10)
 ·JbuilderX在Linux下的中文问题解决  (2006-07-15 14:08:27)