partition X does not end on cylinder boundary

看到論壇裏面有童鞋詢問fdisk -l提示warning:partition X does not end on cylinder boundary,但是不影響系統使用,是否對系統有害,google到了一篇老外的blog,轉帖給大家,希望對大家有幫助


Why “partition X does not end on cylinder boundary” warnings don’t matter
爲什麼 不必擔心“partition X does not end on cylinder boundary”警告

While reviewing the partion layout on one of my hard drives, I noticed a number of “Partition X does not end on cylinder boundary” messages in the fdisk output:
當我查看硬盤的分區的時候,我主意到很多“Partition X does not end on cylinder boundary”信息在fdisk -l的輸出裏面:

  1. fdisk /dev/sda
複製代碼

The number of cylinders for this disk is set to 9726.
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): p

Disk /dev/sda: 80.0 GB, 80000000000 bytes
255 heads, 63 sectors/track, 9726 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0xac42ac42

Device Boot Start End Blocks Id System
/dev/sda1 * 1 26 204800 83 Linux
Partition 1 does not end on cylinder boundary.
/dev/sda2 26 287 2097152 83 Linux
Partition 2 does not end on cylinder boundary.
/dev/sda3 287 9726 75822111+ 8e Linux LVM
This was a bit disconcerting at first, but after a few minutes of thinking it dawned on me that modern systems use LBA (Logical Block Addressing) instead of CHS (Cylinder/Head/Sector) to address disk drives. If we view the partition table using sectors instead of cylinders:
剛開始很讓人困惑,但是幾分鐘之後,我意識到現代操作系統使用LBA而不是CHS來記錄硬盤分區.如果用扇區代替柱面,我們將看到:

  1. sfdisk -uS -l /dev/sda
複製代碼

Disk /dev/sda: 9726 cylinders, 255 heads, 63 sectors/track
Units = sectors of 512 bytes, counting from 0

Device Boot Start End #sectors Id System
/dev/sda1 * 63 409662 409600 83 Linux
/dev/sda2 409663 4603966 4194304 83 Linux
/dev/sda3 4603967 156248189 151644223 8e Linux LVM
/dev/sda4 0 - 0 0 Empty
We can see that we end at a specific sector number, and start the next partition at that number plus one. I must say that I have grown quite fond of sfdisk and parted, and they sure make digging through DOS and GPT labels super easy.
我們可以看到,扇區是結束在一個特定的扇區,並且下一個分區的起始扇區在前一個的後面+1扇區.

另外一個老外的:
 

Its almost certainly harmless, unless you need to install an OS that uses C/H/S addressing like DOS oe Windows up to and including Windows 95.

Do check with another tool that you don't have overlapping partitions.



結論:這個warning可以忽略,不影響系統的使用,只要你確認下,分區不是重疊的,就沒有問題.

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章