Partition misaligned - Linux
By Yedda
at 2010-04-25T15:30
at 2010-04-25T15:30
Table of Contents
※ 引述《kdjf ( )》之銘言:
: 你的硬碟sector
: - - - - - - - -|- - - - - - - -|- - - - - - - -|- - - - - - - -|- - - - - - - -
: 你的FS sector(如果也是4k)有對齊
: - - - - - - - -|- - - - - - - -|- - - - - - - -|- - - - - - - -|- - - - - - - -
: fileA: - - - - - - -
: 讀出: - - - - - - - - 讀一次會讀出一個硬體sector
: FS sector如果沒有對齊
: |- - - - - - - -|- - - - - - - -|- - - - - - - -|
: fileA: - - - - - - -
: 讀出: - - - - - - - -|- - - - - - - -
: 讀一次要讀出二個硬體sector 就變慢了
: 可是fdisk平常會用16065(=/=8*n)sector/track 所以fs的開頭沒有和
: 硬體sector對齊 這就是他說的 "沒有對齊"
: 至於解決辦法.... 去找google大神吧 XD
: 我會把sector start放在第8n+1track
Disk /dev/sda: 320.1 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk identifier: 0x423e2fd4
Device Boot Start End Blocks Id System
/dev/sda1 * 1 6079 48828416 83 Linux
/dev/sda2 6080 38913 263739105 5 Extended
Partition 2 does not start on physical sector boundary.
/dev/sda5 6080 38260 258493851 83 Linux
Partition 5 does not start on physical sector boundary.
/dev/sda6 38261 38913 5245191 82 Linux swap / Solaris
Partition 6 does not start on physical sector boundary.
剛剛只貼了一半( 沒注意到… )
想問一下,在 sector/track 那裡,寫的是硬體的規格還是在格式化時的設定?
還有 sector size 怎麼比 I/O size 還小? 是不是有什麼誤會啊?
而且 physical sector size=4k 和網路上的資訊有點不同…
如果我用 fdisk 重設的話資料應該會全部不見吧?
(我的程試已經裝的差不多了,不太想重來…)
目前想到最快的方法是把 /dev/sda1 用 gParted 延伸到 4k 的倍數,sda5
比照辦理,應該就可以解決…吧?
不知道還有什麼方法?
--
: 你的硬碟sector
: - - - - - - - -|- - - - - - - -|- - - - - - - -|- - - - - - - -|- - - - - - - -
: 你的FS sector(如果也是4k)有對齊
: - - - - - - - -|- - - - - - - -|- - - - - - - -|- - - - - - - -|- - - - - - - -
: fileA: - - - - - - -
: 讀出: - - - - - - - - 讀一次會讀出一個硬體sector
: FS sector如果沒有對齊
: |- - - - - - - -|- - - - - - - -|- - - - - - - -|
: fileA: - - - - - - -
: 讀出: - - - - - - - -|- - - - - - - -
: 讀一次要讀出二個硬體sector 就變慢了
: 可是fdisk平常會用16065(=/=8*n)sector/track 所以fs的開頭沒有和
: 硬體sector對齊 這就是他說的 "沒有對齊"
: 至於解決辦法.... 去找google大神吧 XD
: 我會把sector start放在第8n+1track
Disk /dev/sda: 320.1 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk identifier: 0x423e2fd4
Device Boot Start End Blocks Id System
/dev/sda1 * 1 6079 48828416 83 Linux
/dev/sda2 6080 38913 263739105 5 Extended
Partition 2 does not start on physical sector boundary.
/dev/sda5 6080 38260 258493851 83 Linux
Partition 5 does not start on physical sector boundary.
/dev/sda6 38261 38913 5245191 82 Linux swap / Solaris
Partition 6 does not start on physical sector boundary.
剛剛只貼了一半( 沒注意到… )
想問一下,在 sector/track 那裡,寫的是硬體的規格還是在格式化時的設定?
還有 sector size 怎麼比 I/O size 還小? 是不是有什麼誤會啊?
而且 physical sector size=4k 和網路上的資訊有點不同…
如果我用 fdisk 重設的話資料應該會全部不見吧?
(我的程試已經裝的差不多了,不太想重來…)
目前想到最快的方法是把 /dev/sda1 用 gParted 延伸到 4k 的倍數,sda5
比照辦理,應該就可以解決…吧?
不知道還有什麼方法?
--
Tags:
Linux
All Comments
By Yuri
at 2010-04-25T17:02
at 2010-04-25T17:02
By Connor
at 2010-04-30T10:03
at 2010-04-30T10:03
By Kyle
at 2010-05-01T20:59
at 2010-05-01T20:59
Related Posts
Partition misaligned
By Aaliyah
at 2010-04-25T11:12
at 2010-04-25T11:12
如何使用另外一個硬碟上的 Linux System
By Erin
at 2010-04-25T00:26
at 2010-04-25T00:26
有關目睭
By Bennie
at 2010-04-24T22:39
at 2010-04-24T22:39
如何使用另外一個硬碟上的 Linux System
By Ethan
at 2010-04-24T20:48
at 2010-04-24T20:48
如何使用另外一個硬碟上的 Linux System
By Madame
at 2010-04-24T16:04
at 2010-04-24T16:04