eooyc 发表于 2012-09-30 22:41

修复bootblock

初学sun

升级solaris 10 Generic_127111-09   =》 144488-06 失败,然后bootblock损坏,操作系统无法启动
ok boot
Boot device: disk0:aFile and args:
Boot load failed.
The file just loaded does not appear to be executable.


cdrom引导到单用户模式
/usr/sbin/installboot /a/usr/platform/`uname -i`/lib/fs/ufs/bootblk /dev/rdsk/c1t0d0s0
修完以后还是报错
Boot device: disk0:aFile and args:
Boot load failed.
The file just loaded does not appear to be executable.
拆了svm根盘镜像,做了bootadm boot-archive,还是不行

我有三个问题
1)修复bootblock时,是不是是用的光盘OS版本需要和升级前OS版本一致啊?
我看官方文档上说理想情况下要保持一致,不一致会有可能出问题吗?
Ideally, you should match the version of the bootblock that you are going to copy with the Solaris Version that is installed.
To verify this, Solaris provides the /etc/release file:
# cat /a/etc/release

This document will tell you the release (Document 1002239.1) is installed and also the release. For instance "Solaris 9 9/04". This should match the version of the DVD you are using.
Now copy the bootblock back to the disk:
# /usr/sbin/installboot /a/usr/platform/`uname -i`/lib/fs/ufs/bootblk /dev/rdsk/c1t0d0s0

2)bootadm update-archive 没有出现
15+0 records in
15+0 records out
只有
# bootadm update-archive -fvR /a
forced update of archive requested
cannot find: /a/etc/cluster/nodeid: No such file or directory
cannot find: /a/etc/mach: No such file or directory
Creating boot_archive for /a
updating /a/platform/sun4u/boot_archive

我看文档上举例都是
# bootadm update-archive -fvR /mnt
forced update of archive requested
cannot find: /mnt/etc/cluster/nodeid: No such file or directory
cannot find: /mnt/etc/mach: No such file or directory
Creating boot_archive for /mnt
updating /mnt/platform/sun4u/boot_archive
15+0 records in
15+0 records out

3)"The file just loaded does not appear to be executable." 一般什么情况下能修好?


页: [1]
查看完整版本: 修复bootblock