最近我的一个驱动器在我的RAID中坏了,我正在用一个新驱动器替换.我使用this answer来镜像旧驱动器上的分区以进行重新同步.但我很担心输出.我的驱动器是4k扇区,我第一次做错了什么?

Checking that no-one is using this disk right now ...
OK
Warning: partition 1 does not end at a cylinder boundary
Warning: partition 2 does not start at a cylinder boundary
Warning: partition 2 does not end at a cylinder boundary
Warning: partition 3 does not start at a cylinder boundary 
Warning: partition 3 does not end at a cylinder boundary
Warning: partition 4 does not start at a cylinder boundary

Disk /dev/sda: 121601 cylinders, 255 heads, 63 sectors/track
Old situation:
Units = cylinders of 8225280 bytes, blocks of 1024 bytes, counting from 0

   Device Boot Start     End   #cyls    #blocks   Id  System
/dev/sda1   *      0+     12-     13-    102400   fd  Linux raid autodetect
/dev/sda2         12+   1318-   1306-  10485760   fd  Linux raid autodetect
/dev/sda3       1318+   2623-   1306-  10485760   fd  Linux raid autodetect
/dev/sda4       2623+ 121600  118978- 955685088+  fd  Linux raid autodetect
New situation:
Units = sectors of 512 bytes, counting from 0

   Device Boot    Start       End   #sectors  Id  System
/dev/sda1   *      2048    206847     204800  fd  Linux raid autodetect
/dev/sda2        206848  21178367   20971520  fd  Linux raid autodetect
/dev/sda3      21178368  42149887   20971520  fd  Linux raid autodetect
/dev/sda4      42149888 1953520064 1911370177  fd  Linux raid autodetect
Successfully wrote the new partition table

Re-reading the partition table ...
If you created or changed a DOS partition, /dev/foo7, say, then use dd(1)
to zero the first 512 bytes:  dd if=/dev/zero of=/dev/foo7 bs=512 count=1
(See fdisk(8).)

解决方法:

使分区不以柱面边界结束可能会使某些敏感操作系统及其分区程序发生相关.你的磁盘只有Linux分区,所以我认为你只在Linux下使用它; Linux并不关心.

如果您的磁盘有4kB扇区,那么如果您的分区对齐到4kB,您将获得更好的性能.事实上这很难实现,但幸运的是,你的所有分区都已经有4kB对齐.


标签: linux, partition

相关文章推荐

添加新评论,含*的栏目为必填