ptmax - Maximize partition in partition table to include it's trailing unallocated space

Property Value
Distribution ALT Linux Sisyphus
Repository Classic i586
Package filename ptmax-2018-alt1.i586.rpm
Package name ptmax
Package version 2018
Package release alt1
Package architecture i586
Package type rpm
Category System/Configuration/Hardware
Homepage -
License -
Maintainer -
Download size 11.44 KB
Installed size 11.44 KB
Anyone, who have tried to resize a partition with LVM's PV on it do know
that felling: What the hell, we are dealing with a 64-bytes 35-years
old fixed size structure with bunch of INTs and still CAN NOT JUST
RESIZE partiton.
All existing utilities looks grim. Fdisk allows us to do this, but with
'DELETE and CREATE' (if you miss numbers, you are fckd up), parted says
it don't know how to do with LVM partition and so on.
If we had an 'old plain spinning drive' with misarranged paritions, we can
say: 'think before creating'. Because bare metall hard drives don't scale.
But now we live in the world of virtual machines, iscsi, LVM, MD which
offers way to 'change disk size in 2 clicks'. And what the hell you are
supposed to do after drive (block device) size changed, but the partition
table is still the same?
Yep. This utility partially solve the problem. It takes parition name
(/dev/sda1, /dev/xvda2 and so on) and attemts to maximize partition. Only
4 bytes in partition table (size filed), nothing more. After that you
can run pvreze, or resize2fs, or whatever, to reflect the change on a
higher level.
Usage is pertty simple:
ptmax /dev/sda3
That's all.
It cautious to avoid doing do bad things, so it will max partition
size only if PT is sane  and there is a free space after the targeted
partition. It will not move partitions, attempt to use leading
unpartitioned space, change the partition number, or alter in any other
way the original partitioning schema or data inside partition.
Currently there is no support for CHS, LBA only (?), so don't try it on
<32Mb partitions.
See also


Package Version Architecture Repository
ptmax-2018-alt1.x86_64.rpm 2018 x86_64 Classic
ptmax - - -


Name Value
/lib/ - - -
rpmlib(PayloadIsLzma) -
rtld(GNU_HASH) -


Name Value
ptmax = 2018-alt1


Type URL
Binary Package ptmax-2018-alt1.i586.rpm
Source Package ptmax-2018-alt1.src.rpm

Install Howto

  1. Add the following line to /etc/apt/sources.list:
    rpm [Sisyphus] i586 classic
    rpm [Sisyphus] noarch classic
  2. Update the package index:
    # sudo apt-get update
  3. Install ptmax rpm package:
    # sudo apt-get install ptmax




2018-01-30 - Vitaly Lipatov <> 2018-alt1
- git-20180130 (fix function "ioctl" declared implicitly)
2016-01-03 - Terechkov Evgenii <> 2015-alt2
- Build with debuginfo
2015-12-08 - Terechkov Evgenii <> 2015-alt1
- git-20151208
2014-02-12 - Vitaly Lipatov <> 2012-alt1
- add support for cciss device names
- use sysfs to detect correct device parent name
2012-03-28 - Vitaly Lipatov <> 2011-alt1
- initial build for ALT Linux Sisyphus

See Also

Package Description
pulseaudio-12.2-alt2.i586.rpm PulseAudio is a networked sound server
pulseaudio-daemon-12.2-alt2.i586.rpm PulseAudio daemon
pulseaudio-gconf-12.2-alt2.i586.rpm PulseAudio -- gnome-related part
pulseaudio-jack-12.2-alt2.i586.rpm PulseAudio -- JACK part
pulseaudio-qpaeq-12.2-alt2.i586.rpm PulseAudio equalizer interface
pulseaudio-system-12.2-alt2.i586.rpm Pulseaudio system daemon
pulseaudio-utils-12.2-alt2.i586.rpm PulseAudio client side utilities
pulseeffects-4.6.3-alt1.i586.rpm Audio effects for Pulseaudio applications
pulseview-0.4.1-alt1.i586.rpm sigrok -- signal analysis software suite
puma-3.12.1-alt1.i586.rpm A Ruby/Rack web server built for concurrency
pure-doc-0.3-alt3.i586.rpm A simple utility for documenting source code in the Pure programming language
purple-plugin-bot-sentry-1.1.0-alt3.qa3.i586.rpm Purple-based antispam bot for Pidgin
purple-plugin-carbons-0.2.2-alt1.i586.rpm Message Carbons plugin for libpurple
purple-plugin-matrix-0.0.0-alt1.git.122.gf26edd5.i586.rpm Matrix Plugin for Pidgin
purple-plugin-microblog-0.3.0-alt1.i586.rpm Libpurple (Pidgin) plug-in supporting microblog services like Twitter