Hello-
I am attempting to modify an install script, and I'm not having much luck - I was hoping someone could help with my sfdisk notation.
Currently, the install script uses
sfdisk -uM /dev/sda << EOF
,2048,,*
,2048,82
,,
EOF
And I'm attempting to add a few more partitions in there by using:
sfdisk -uM /dev/sda << EOF
,2048,,*
,2048,82
,,E
,1024,
,1024,
,,
EOF
I have tried adding various sizes, but I continue to get "sda: p4 exceeds device capacity" on the extended partition. This is on an 8G VMware image, so unless that is using something other than MB (which I thought the -uM was setting), it should be small enough to fit in the rest of the space.
Can anyone see what I'm doing wrong?
~Snake
I am attempting to modify an install script, and I'm not having much luck - I was hoping someone could help with my sfdisk notation.
Currently, the install script uses
sfdisk -uM /dev/sda << EOF
,2048,,*
,2048,82
,,
EOF
And I'm attempting to add a few more partitions in there by using:
sfdisk -uM /dev/sda << EOF
,2048,,*
,2048,82
,,E
,1024,
,1024,
,,
EOF
I have tried adding various sizes, but I continue to get "sda: p4 exceeds device capacity" on the extended partition. This is on an 8G VMware image, so unless that is using something other than MB (which I thought the -uM was setting), it should be small enough to fit in the rest of the space.
Can anyone see what I'm doing wrong?
~Snake
Comment