ssd固態硬盤怎么分區合理!專家來給您ssd固態硬盤合理分區解答!
224 heads (32*7)
56 sectors per track (8*7)
這樣每個柱面包含12544個扇區(256*49),每個磁道使用56個扇區,大小為56*512字節,即每磁道28762字節,這和每柱面4KB的7個塊是一樣的,因此每柱面4KB頁面的數量是一個整數,這樣任何分區
都是協調一致的,下面是如何實現這種效果的一個例子:
[[email protected] ~]# fdisk -H 224 -S 56 /dev/sdd
The number of cylinders for this disk is set to 9345.
There is nothing wrong with that, but this is larger than 1024,
and could in certain setups cause problems with:
1) software that runs at boot time (e.g., old versions of LILO)
2) booting and partitioning software from other OSs
(e.g., dos FDISK, OS/2 FDISK)
Command (m for help): n
Command action
e extended
p primary partition (1-4)
p
Partition number (1-4): 1
First cylinder (1-9345, default 1): 2
Last cylinder or +size or +sizeM or +sizeK (2-9345, default 9345):
Using default value 9345
Command (m for help): w
The partition table has been altered!
Calling ioctl() to re-read partition table.
Syncing disks.
注意,我是從第二個柱面開始的,以保證分區/dev/sdd1從柱面邊界開始。
可以在fdisk后面跟上“-l”參數檢查分區。
[[email protected] ~]# fdisk -l /dev/sdd
Disk /dev/sdd: 60.0 GB, 60022480896 bytes
224 heads, 56 sectors/track, 9345 cylinders
Units = cylinders of 12544 * 512 = 6422528 bytes
Device Boot Start End Blocks Id System
/dev/sdd1 2 9345 58605568 83 Linux
我們也可以使用“-lu”參數查看扇區的數量。
[[email protected] ~]# fdisk -lu /dev/sdd
Disk /dev/sdd: 60.0 GB, 60022480896 bytes
224 heads, 56 sectors/track, 9345 cylinders, total 117231408 sectors
Units = sectors of 1 * 512 = 512 bytes
Device Boot Start End Blocks Id System
/dev/sdd1 12544 117223679 58605568 83 Linux
分區從12544扇區(256*9)開始,在設備的末尾結束。
在OCZ技術社區有人提供了另一種建議,使用的幾何參數略有不同。
32 heads
32 sectors per track
這樣每柱面包含1024個扇區(32*32),512字節大小的扇區形成512KB的柱面(每柱面128個4KB頁面),還是以/dev/sdd為例,這種幾何劃分法的命令如下:
[[email protected] ~]# fdisk -H 32 -S 32 /dev/sdd
The number of cylinders for this disk is set to 114483.
There is nothing wrong with that, but this is larger than 1024,
and could in certain setups cause problems with:
1) software that runs at boot time (e.g., old versions of LILO)
2) booting and partitioning software from other OSs
(e.g., dos FDISK, OS/2 FDISK)
Command (m for help): n
Command action
e extended
p primary partition (1-4)
p
Partition number (1-4): 1
First cylinder (1-114483, default 1): 2
Last cylinder or +size or +sizeM or +sizeK (2-114483, default 114483):
Using default value 114483
Command (m for help): w
The partition table has been altered!
Calling ioctl() to re-read partition table.
Syncing disks.
Fdisk加上“-l”參數可以檢查分區。
[[email protected] ~]# fdisk -l /dev/sdd
Disk /dev/sdd: 60.0 GB, 60022480896 bytes
32 heads, 32 sectors/track, 114483 cylinders
Units = cylinders of 1024 * 512 = 524288 bytes
Device Boot Start End Blocks Id System
/dev/sdd1 2 114483 58614784 83 Linux
注意,這種幾何劃分方法的“單位”是512KB(524288字節),它比第一種方法的柱面數更多,我們可以使用fdisk –lu命令查看扇區布局。
[[email protected] ~]# fdisk -lu /dev/sdd
Disk /dev/sdd: 60.0 GB, 60022480896 bytes
32 heads, 32 sectors/track, 114483 cylinders, total 117231408 sectors
Units = sectors of 1 * 512 = 512 bytes
Device Boot Start End Blocks Id System
/dev/sdd1 1024 117230591 58614784 83 Linux
注意,我們從扇區1024開始,使用512字節的扇區,意味著分區匹配512KB。
哪種方式最好讓SSD固態硬盤分區合理呢?曉龍編輯(www.companysz.com)認為這取決于許多因素,特別是SSD的內部結構和固件工作原理,假如您不打算給你的SSD分區,如使用整個設備作為一個分區,
那么你不需要擔心這些問題,但如果你打算分區,這兩個方法你就得選擇一個,最重要的一條原則是,確保分區和邊界保持對齊,這樣有助于發揮SSD的性能,并延長它的使用SSD固態硬盤的壽命。
新聞熱點
疑難解答