I think that instead of 'replacing' the standard human readable sized output with sectors, perhaps we could add it as an additional field? or perhaps have mixed output for the default view? It is hard to see at a glance what the sizes of the partitions are along with their outputs without running multiple commands.
A major issue I usually see is that admins will attempt to 'save' the layouts of their partitions by dumping the output of parted to a text file. When attempting to recover using this output, it becomes a challenge to convert the units from GB/MB to sectors (due to issues like GB vs GiB) not only from the partition perspective, but things that rely on this information such as LVM and file-system superblock offsets.
Of course, this type of behavior can be prevented by educating the users of parted, but the majority of admins do not use parted every single day and do not understand the need to specify the right arguments to get the correct output until its already too late.
Here is an example from my box:
-----------------------
address@hidden images(keystone_admin)]# parted /dev/sda p
Model: ATA ST3160815AS (scsi)
Disk /dev/sda: 160GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Disk Flags:
Number Start End Size Type File system Flags
1 1049kB 1075MB 1074MB primary xfs boot
2 1075MB 70.0GB 68.9GB primary
3 70.0GB 134GB 64.4GB primary
-----------------------
Is it not possible to specific sectors in the 'Start' and 'End' columns, and leave 'Size' in GB? That would be a lot more useful to me.
example:
-----------------------
address@hidden images(keystone_admin)]# parted /dev/sda p
## this output is a mockup
Model: ATA ST3160815AS (scsi)
Disk /dev/sda: 160GB 312500000s
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Disk Flags:
Number Start End Size Type File system Flags
1 2048s 2099199s 1074MB primary xfs boot
2 2099200s 136718335s 68.9GB primary
3 136718336s 262547455s 64.4GB primary
-----------------------
then specify something like 'unit sec' in the parted command would print everything in the requested unit.