歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
Linux教程網 >> Unix知識 >> 關於Unix >> solaris 的一個問題(無法進入圖形化頁面)

solaris 的一個問題(無法進入圖形化頁面)

日期:2017/2/28 11:11:29   编辑:關於Unix


自己也遇到這個問題,從網上找到了這個問題的一個方法,讓自己留住,也同大家分享
(我的問題是突然斷電引起的,『或者是強行關機』)
Solaris的boot-archive問題
今天碰到一個奇怪事情,莫名其妙啟動的時候顯示:
SunOS Release 5.10 Version Generic_120012-14 64-bit
Copyright 1983-2007 Sun Microsystems, Inc. All rights reserved.
Use is subject to license terms.
Warning - The following files in / differ from the boot archive:
The recommended action ist to reboot and select "Solaris failsafe"
option from the boot menu. Then follow prompts to update the
boot archive.
To continue booting at your own risk, clear the service:
# svcadm clear system/boot-archive
Dec 25 10:00:05 svc.start[7]: svc:/system/boot-archive:default: Method "/lib/
svc/method/boot-archive" failed with exit status 95.
[ system/boot-archive:default failed fatally (see ?svcs -x? for details) ]
Requesting System Maintenance Mode
(see /lib/svc/share/README for more information.)
Console login service(s) cannot run
Root password for system maintenance (control-d to bypass):
然後回憶了一下之前的操作,一個是對/etc/system的修改,一個是在/dev下面添加了null的link,但是在重啟之前,系統已經自動更新了boot-archive,因此應該不會有這個錯誤提示。
先按照普通過程試試,一般針對此錯誤有兩個方法:
一是去FailSafe模式,此模式下root分區被mount在/a,因此使用bootadm update-archive -R /a可以重建boot-archive,重啟後即可;
二是在上面提示的位置輸入管理員密碼,然後:svcadm clear system/boot-archive
這樣系統將忽略上面的錯誤,按正常啟動,啟動後root分區將mount為rw。
然後:bootadm update-archive
這樣,重啟後也可以解決此問題。
但是多次使用上面的方法,卻一直無法解決,每次重啟仍然會有錯誤提示,而且仔細看可以發現在提示中“Warning - The following files in / differ from the boot archive:”後面是空白的,根本不知道是哪個文件與boot archive中不同。
因此,考慮之前的兩個操作,對/etc/system的修改應該沒有問題,難道是/dev/null的問題?可這該如何解決呢?試探性的讓系統自己重新掃描一下devices,所以在/下:touch reconfigure,然後啟動,啟動後會報錯,然後敲root密碼進入Maintenance模式,而後svcadm clear...進入正常模式,這時,可以發現系統開始Reconfigure devices...,結束後進入#,這時再bootadm update-archive一下,而後重啟,發現問題解決。
折騰了半天,居然是因為/dev的cache沒有更新。
Copyright © Linux教程網 All Rights Reserved