咨询关于parted分区命令

liangchencf liangchencf 墨衍会员 · AI 创作全网分发 墨衍智能分发 通过墨衍一键同步至各平台 可同步平台 CSDN微信公众号微博知乎掘金百家号博客园抖音小红书 你的文章也可以这样分发 墨衍会员 ¥399起/年,写一次发全网 我也要 + 加入社区
手头有两块500G硬盘,一块日立的,一块希捷的,对两块盘执行 parted -s /dev/sdc mkpart pri 0G 1GB分区后来看了下:
parted /dev/sdb print
Model: ATA ST500DM002-1BD14 (scsi)
Disk /dev/sdb: 500GB
Sector size (logical/physical): 512B/4096B
Partition Table: msdos

Number Start End Size Type File system Flags
1 65.8MB 1003MB 938MB primary xfs , , , , , , , , , type=83, ,


parted /dev/sdc print
Model: ATA Hitachi HDS72105 (scsi)
Disk /dev/sdc: 500GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos

Number Start End Size Type File system Flags
1 32.3kB 1003MB 1003MB primary xfs , , , , , , , , , type=83, ,

Start的位置并不一样,不知道是不是由于两块盘的物理扇区不一样导致?
有没有命令或者计算方法可以算出这个硬盘真正可以用来分区的起始的扇区号?我需要两个分区必须一样大。
谢谢
...全文

相关推荐

评论 2
收藏 已收藏
分享
返回顶部