如果在x86的機器上,欲執行fmthard去還原原分割狀態的話,可能會碰到類似訊息:
# fmthard –s /var/tmp/c2d0s2.vtoc /dev/rdsk/c2d0s2
fmthard: Partition 2 specifies the full disk and is not equal full size of disk. The full disk capacity is 80373195 sectors.
fmthard: Partition 2 specifies as 160778520 sectors starting at 0 does not fit it.
The full disk contains 80373195 sectors.
fmthard: Partition 7 specifies as 158850720 sectors starting at 1927800 does not fit it. The full disk contains 80373195 sectors.
fmthard: New volume table of contents now in place.
這是因為在x86中用 fdisk 這個指令去更改磁碟分割的資訊與VTOC內容不符合所導致。
作法也相當簡單:
使用fdisk作磁碟分割,可以利用下列指令將資訊備份出來:
# fdisk –W /var/tmp/c2d0p0.fdisk /dev/rdsk/c2d0p0
復原的執行方式則是:
# fdisk –F /var/tmp/c2d0p0.fdisk /dev/rdsk/c2d0p0
如果要透過 fdisk 檢視硬碟內容的話,可以如此做:
# fdisk –W - /dev/rdsk/c2d0p0
以前都沒注意要保存這種資料,現在我都還會另外再以USB將這些partition的資訊複製起來,以預防萬一。
參考資料:Solaris 系統管理手冊
-
‧
-
‧
-
‧
相關問答
- 鐵人賽的疑問?
- 最後一天 -- 鐵人賽對我的意義!!!
- 收到鐵人賽的T-shirt啦~~ (有圖有真相)
- 第一屆iT邦幫忙鐵人賽早鳥獎與鐵人鍊成獎得獎名單
- 小財神來報告一下鐵人賽豐富的獎品與參賽報法囉
- 對於這次鐵人賽你認為哪些文章該被檢舉?
- 鐵人賽發表的文章,可以同時發佈在自己個人部落格上嗎?
- Solaris 三十Q-06 怎麼設定 Sun ALOM(1)?
- 請問有人有用SUN Solaris Containers 的經驗嗎? 可否分享?
- Solaris 三十Q-14 顯示作業系統資訊的指令
- 如何知道SUN Server上網卡的Loading?
- 第一屆iT邦幫忙鐵人賽得獎名單已經公佈囉
- Solaris 三十Q-07 怎麼設定 Sun ALOM(2)?
- 鐵人賽
- Solaris 三十Q-16 Solaris有支援那幾種檔案系統?
- Solaris 10 DTrace 的應用
- 考 Sun SCJP SCJD認證有何不同?
- 請問何處可以學Solaris?
- Solaris系統管理認證課程課表
- [鐵人賽最後領獎通知]sanger、grundy40、singwang三位邦友快與小財神聯絡









