我的高级文件系统分区有问题吗?

我的高级文件系统分区有问题吗?

最近,我的 RAID 中的一个驱动器坏了,我正在更换一个新驱动器。我用了这个答案镜像我的旧驱动器上的分区以进行重新同步。但我担心的是输出。我的驱动器是 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).)

答案1

不以柱面边界结束的分区可能会影响一些敏感的操作系统及其分区程序。你的磁盘只有Linux分区,所以我猜你只在Linux下使用它; Linux 不在乎。

如果您的磁盘有 4kB 扇区,那么如果您的分区与 4kB 对齐,您将获得更好的性能。事后实现这一点很困难,但幸运的是,所有分区都已经有 4kB 对齐。

相关内容