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

UNIX硬盤分區(qū)簡(jiǎn)介

寫這份文檔的初衷是在網(wǎng)絡(luò)上和一些朋友聊天的時(shí)候,常常會(huì)被問到這個(gè)問題,回答了很多次 。為了一勞永逸的解決這個(gè)問題,決定寫一份文檔,方便以后再次被問到的時(shí)候copy,呵呵 。同時(shí),也是為了幫助自己不斷鞏固這些知識(shí),算是一份粗糙的筆記吧 。
“Unix硬盤分區(qū)簡(jiǎn)介”這個(gè)標(biāo)題有些大,本來只是為了介紹一下Solaris和Linux的分區(qū),但是也希望對(duì)其他UNIX熟悉的朋友們分享你們的知識(shí),將你們所熟悉的UNIX,例如FreeBSD,ScoUNIX,HpUNIX等的硬盤分區(qū)知識(shí),share出來 。如果發(fā)現(xiàn)了文章之中的錯(cuò)誤,請(qǐng)聯(lián)系我(E-Mail:cqwlyh@263.net;MSN:cqwlyh@263.net),如果對(duì)文章進(jìn)行了修改,請(qǐng)留下您的名字和聯(lián)系方式 。
ok,閑話少說,讓我們進(jìn)入正題吧:



1.Solaris硬盤分區(qū)簡(jiǎn)介

Solaris下,一個(gè)磁盤包含8個(gè)分區(qū),標(biāo)記為0-7 。此信息可以通過format命令,然后選擇一個(gè)硬盤來看到,例如,在我自己的系統(tǒng)中(Solaris 9,Ultra 60),顯示出來的信息如下:
# format
Searching for disks...done


AVAILABLE DISK SELECTIONS:
0. c0t0d0
/pci@1f,4000/scsi@3/sd@0,0
Specify disk (enter its number): 0
selecting c0t0d0
[disk formatted]
Warning: Current Disk has mounted partitions.


FORMAT MENU:
disk - select a disk
type - select (define) a disk type
partition - select (define) a partition table
current - describe the current disk
format - format and analyze the disk
repair - repair a defective sector
label - write label to the disk
analyze - surface analysis
defect - defect list management
backup - search for backup labels
verify - read and display labels
save - save new disk/partition definitions
inquiry - show vendor, product and revision
volname - set 8-character volume name
! - execute , then return
quit
format> p


PARTITION MENU:
0 - change `0" partition
1 - change `1" partition
2 - change `2" partition
3 - change `3" partition
4 - change `4" partition
5 - change `5" partition
6 - change `6" partition
7 - change `7" partition
select - select a predefined table
modify - modify a predefined partition table
name - name the current table
print - display the current table
label - write partition map and label to the disk
! - execute , then return
quit
partition>
不要看到內(nèi)容這么多,就被嚇住了,其實(shí),format命令之后0. c0t0d0 /pci@1f,4000/scsi@3/sd@0,0所顯示出來的含義很簡(jiǎn)單,0. c0t0d0就代表這臺(tái)Ultra 60里面只裝了一個(gè)硬盤(至于c0t0d0的具體含義,稍后會(huì)介紹),代表的是這個(gè)硬盤的大小和柱面信息,/pci@1f,4000/scsi@3/sd@0,0所代表的,就是這個(gè)硬盤的實(shí)際物理地址 。這些信息看起來很復(fù)雜,其實(shí)一般都只需要看看format命令抓出來的硬盤數(shù)量,是不是我們裝在系統(tǒng)上的數(shù)量,例如你裝了兩個(gè)硬盤,但是這里只有一個(gè)硬盤的信息,就需要認(rèn)真面對(duì)了 。
FORMAT MENU:
disk - select a disk
type - select (define) a disk type
partition - select (define) a partition table
current - describe the current disk
format - format and analyze the disk
repair - repair a defective sector
label - write label to the disk
analyze - surface analysis
defect - defect list management
backup - search for backup labels
verify - read and display labels
save - save new disk/partition definitions
inquiry - show vendor, product and revision
volname - set 8-character volume name
! - execute , then return
quit
format> p
這里所列出來的,是可以使用的命令,比如我在最下面format>,就是用了p這個(gè)命令(慢點(diǎn),上面沒有p這個(gè)命令???其實(shí),這里p就是partition的簡(jiǎn)寫),然后,列出了以下內(nèi)容:
PARTITION MENU:
0 - change `0" partition

推薦閱讀