我想了解如何在不使用格式的情况下创建新切片。这是原始情况(工作)
* /dev/rdsk/c0t2d0s2 partition map
*
* Dimensions:
* 512 bytes/sector
* 63 sectors/track
* 255 tracks/cylinder
* 16065 sectors/cylinder
* 2608 cylinders
* 2606 accessible cylinders
*
* Flags:
* 1: unmountable
* 10: read-only
*
* Unallocated space:
* First Sector Last
* Sector Count Sector
* 41495895 369495 41865389
*
* First Sector Last
* Partition Tag Flags Sector Count Sector Mount Directory
1 9 00 16065 20980890 20996954
2 9 00 20996955 10490445 31487399
3 9 00 31487400 10008495 41495894
8 1 01 0 16065 16064
分区大小(更好的切片)为第一个 10gb,第二个 5gb,第三个 4.77gb。
我想创建第四个切片(编号 4),大小为 2GB,并将第三个切片缩小到 2GB
我编辑此文件(将旧文件保存为备份)
* /dev/rdsk/c0t2d0s2 partition map
*
* Dimensions:
* 512 bytes/sector
* 63 sectors/track
* 255 tracks/cylinder
* 16065 sectors/cylinder
* 2608 cylinders
* 2606 accessible cylinders
*
* Flags:
* 1: unmountable
* 10: read-only
*
* Unallocated space:
* First Sector Last
* Sector Count Sector
* 41495895 369495 41865389
*
* First Sector Last
* Partition Tag Flags Sector Count Sector Mount Directory
1 9 00 16065 20980890 20996954
2 9 00 20996955 10490445 31487399
3 9 00 31487400 4194304 35681703
4 9 00 35681704 4194304 41865389
8 1 01 0 16065 16064
大小似乎是正确的(每片 2048 mb)
4194304*512 = 2147483648
2147483648*1024 = 2199023255552
2199023255552/1024 = 2147483648
2147483648/1024 = 2097152
2097152/1024 = 2048
但是当我尝试创建新的分区表时......
fmthard -s file.map /dev/rdsk/c0t2d0s2
Partition 3 not aligned on cylinder boundary: " 3 9 00 31487400 4194304 35681703"
我的错在哪里?我知道格式太简单了,但我也想用这种方式学习。