partition X does not end on cylinder boundary

来源:互联网 发布:网络配线架怎么打 编辑:程序博客网 时间:2024/04/30 07:16
转载地址:http://bbs.chinaunix.net/thread-3645102-1-1.html


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可以忽略,不影响系统的使用,只要你确认下,分区不是重叠的,就没有问题.
end, cylinder, boundary

原创粉丝点击