== What I want out of a Linux partitioning program Programs like _fdisk_, _sfdisk_, and even _parted_ are really irritating to deal with most of the time because they ask you too many nitpicking questions. What I want is a partitioning program with a command oriented 'shell' interface, with the core command being: > _make N SIZE [TYPE]_ This makes partition N be SIZE big (with the default units being megabytes), optionally making its type be TYPE (which can be in hex or in English). If N is 1 to 4, it is a primary partition; otherwise it is a logical partition and the program automatically creates an extended partition as necessary. Partitions are allocated in order, from the start of the disk on up. You can use 'sdaN' and the like as a synonym for 'N'; if you do so, by default it is an error if you are not operating on _/dev/sda_ or the like. The next most important command is: > _grow N TO [MAX]_ This allows partition N to grow to be TO big (up to MAX size). 'TO' can be 'rest', for the rest of the disk, a percentage of the total disk size, or a size (in which case MAX is redundant). Growth requests are satisfied in order. Then our [[default partitioning scheme SystemFilesystemSizes]] could be expressed simply and directly: > make 1 512M # /boot > make 2 2G swap # swap > make 5 5G raid # / > make 6 20G raid # /usr > make 7 5G raid # /var > make 8 2G raid # /tmp > make 9 1M raid # rest > > grow 8 10% 4G > grow 9 rest An _if_ command that let me conditionalize things on at least the total disk size would also be handy (and avoid the temptation to have _make_ and _grow_ grow too many options). This omits a great many advanced features that are part of _fdisk_ et al that we never use in practice, in favour of doing the right thing by default. (If I need the advanced features, I can always drag out _fdisk_ (or ideally _cfdisk_, which I like much better; unfortunately, Fedora Core has not packaged it for some time).) Some existing programs come close: * GNU parted has the command shell approach, but makes me specify the starting point of partitions. I don't want to have to do that, because the answer is always 'after the previous one'. * _sfdisk_ can do this, but has an interface in the finest Unix traditions of, say, _ed_. (I really like _sfdisk_ for what it does well, but manual partitioning is not really one of those things.) * _fdisk_ has no command line mode. While I can feed it standard input, I'd have to tediously navigate through text menus. (The 'grow the last partition to the rest of the disk' is the piece of _grow_ that I really care about; other things are gravy.) (These are all the Linux partition editors that I know of, apart from qtparted and gparted, which are parted frontends, and _cfdisk_, which is entirely curses-based. If there's others, let me know.) Since I've now discovered that _sfdisk_ comes closest to what I want, and I can actually write a command file for it, I expect that it's what I'll use in the future for this kind of thing. It may be arcane, but it's less tedious than _fdisk_.