You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was unable to resize logical partition with sfdisk (I actually first noticed this issue in KDE Partition Manager but then I checked and the error was coming from sfdisk)
# sfdisk --version
sfdisk from util-linux 2.33
# sfdisk --json /dev/sdc
{
"partitiontable": {
"label":"dos",
"id":"0x545aa710",
"device":"/dev/sdc",
"unit":"sectors",
"partitions": [
{"node":"/dev/sdc1", "start":40960, "size":4194304, "type":"5"},
{"node":"/dev/sdc5", "start":43008, "size":4192256, "type":"83"}
]
}
}
# echo "start=43008 size=3192256" | sfdisk -N 5 --force /dev/sdc
Checking that no-one is using this disk right now ... OK
Disk /dev/sdc: 7,4 GiB, 7918845952 bytes, 15466496 sectors
Disk model:
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x545aa710
Old situation:
Device Boot Start End Sectors Size Id Type
/dev/sdc1 40960 4235263 4194304 2G 5 Extended
/dev/sdc5 43008 4235263 4192256 2G 83 Linux
/dev/sdc5: Failed to resize partition #5.
Leaving.
The text was updated successfully, but these errors were encountered:
I was unable to resize logical partition with sfdisk (I actually first noticed this issue in KDE Partition Manager but then I checked and the error was coming from sfdisk)
The text was updated successfully, but these errors were encountered: