日本免费全黄少妇一区二区三区-高清无码一区二区三区四区-欧美中文字幕日韩在线观看-国产福利诱惑在线网站-国产中文字幕一区在线-亚洲欧美精品日韩一区-久久国产精品国产精品国产-国产精久久久久久一区二区三区-欧美亚洲国产精品久久久久

sa239學(xué)習(xí)筆記之二管理文件系統(tǒng)( 三 )


** Phase 5 - Check Cyl groups
CG 0: BAD MAGIC NUMBER
FREE BLK COUNT(S) WRONG IN SUPERBLK
SALVAGE? y


用備份超級(jí)塊:

超級(jí)塊的壞掉會(huì)導(dǎo)致系統(tǒng)無(wú)法mount , 系統(tǒng)會(huì)發(fā)出如下信息:

“Can"t mount file_system_name”
or
“device_name is not this fstype”

每個(gè)文件系統(tǒng)在第32塊都有一個(gè)備份塊以供恢復(fù)超級(jí)塊 , 如下:
# fsck -o b=32 /dev/rdsk/c1t3d0s0
如果第32塊也屬于壞掉的部分則沒有辦法從32塊恢復(fù) , 可用newfs -N來(lái)查看其它備份塊 ,
newfs -N /dev/rdsk/c0t0d0s7
提示: 如果不加-N參數(shù) , 則文件系統(tǒng)會(huì)被重寫;
用newfs -N查看到其它備份塊 , 用此來(lái)恢復(fù)數(shù)據(jù):
fsck -o b=535952 /dev/rdsk/c0t0d0s7

六、管理文件系統(tǒng)應(yīng)用

df – Displays the number of free disk blocks
du – Summarizes disk use
quot – Summarizes file system ownership



df 顯示磁盤空間已用,可用,總共

-a Reports on all file systems, including those with entrIEs in
the /etc/mnttab file for which the ignore option is set
-b Prints the total number of Kbytes free
-e Prints only the number of files free
-k Displays disk allocation in Kbytes
-h Acts like the -k option, except that sizes are in a more
readable format, for example, 14K, 234M, 2.7G, or 3.0T
-l Reports on local file systems only


Fields for the df -k Command
Field Definition
Filesystem The mounted file system
kbytes The size of the file system in Kbytes (1024 bytes)
used The number of Kbytes used
avail The number of Kbytes available
capacity The percentage of file system capacity used
Mounted on The mount point

提示: 已用的和可用的,總共的可用的系統(tǒng)空間是除了minfree空間之外的部分.
如果系統(tǒng)文件用滿后,普通用戶會(huì)收到“File System Full”,對(duì)root用戶而言是可用的.

用du命令顯示磁盤的塊數(shù)(512kb組成)

du -options Directory

-k 用kb顯示
-s 顯示目錄概要
-a 全部顯示

用quot命令顯示有多少空間正在被那些戶所用:

quot -options filesystem

-a Reports on all mounted file systems
-f Includes the number of files

用smc&打管理界面

推薦閱讀