Searches without login should now work. You must get asked to click a button.
Port details
linuxfdiskFdisk, a partition tables manipulator, from util-linux
2.11z_2sysutilsΣ=6 2.11z_2Version of this port present on the latest quarterly branch.
BROKEN: dangerous, unaware of GPT and alignments, causes write amplification and HW wear DEPRECATED: Upstream distfile unavailable, way out of date, upstream distfile gone, use gpart instead. This port expired on: 2025-09-30 IGNORE: is marked as broken: dangerous, unaware of GPT and alignments, causes write amplification and HW wear
This is fdisk from util-linux package, common on Linux systems.
It allows interactive manipulation of partitions including logical ones
from MS-DOS partitioning scheme.
sysutils/linuxfdisk: Remove expired port
2025-09-30 sysutils/linuxfdisk: Upstream distfile unavailable, way out of date,
upstream distfile gone, use gpart instead.
Linuxfdisk had been part of util-linux v2.11z as of 22 years ago.
sysutils/linuxfdisk: Revert "extend port deprecation till end of the year"
This reverts commit 59a3050fa10b54ecda6711921730d6677500392a.
There is no discussion with me nor am I aware of "we", all I see is
that util-linux as a port was stuck, and neither it nor libblkid were
actually ported to FreeBSD - but all the while I was being asked again
and again to move e2fsprogs over to using the util-linux ports, which
seem to have caused regressions for util-linux's fdisk ports.
Now with the libblkid fixes enabling fdisk-linux from util-linux to
at least work on memory disks, let's reset this port to deprecation,
and sharpen the warnings. Using this 22-year old tool without
great care can damage GPT disks and be detrimental to performance or
make devices unable to be used on native 4K block sizes.
sysutils/linuxfdisk: extend port deprecation till end of the year
Suggested `devel/util-linux' port, while being more modern, comes
with broken fdisk(8) interactive mode and thus is not an adequate
replacement for the time being. We are currently discussing with
mandree@ how to move this forward and preserve working features.
sysutils/linuxfdisk: deprecate, see util-linux
linuxfdisk is woefully outdated and installs scripts
that are installed in current versions by util-linux.
Deprecate and expire in three months.
sysutils: remove 'Created by' lines
A big Thank You to the original contributors of these ports:
* <jsmith@resonatingmedia.com>
* Aaron Dalton <aaron@FreeBSD.org>
* Aaron Landwehr <aaron@snaphat.com>
* Adam Weinberger <adamw@FreeBSD.org>
* Adrian Chadd
* Adrian Chadd <adrian@FreeBSD.org>
* Akinori MUSHA aka knu <knu@idaemons.org>
* Alan Eldridge <alane@FreeBSD.org>
* Alan Eldridge <alane@geeksrus.net>
* Aldis Berjoza <aldis@bsdroot.lv>
* Alex Deiter <alex.deiter@gmail.com>
(Only the first 15 lines of the commit message are shown above )
sysutils/linuxfdisk: remove bogus ONLY_FOR_ARCHS limitation
There is hardly anything really architecture-specific about the disk
management program.
It was marked as working correctly only on i386 in 17b931398cd8 back
in 2003 without any explanation (albeit the phrase "bento via kris"
suggests that it could be a build failure on the cluster) by abusing
ONLY_FOR_ARCHS, which had only been added to since then.
While here, prefer ATA to IDE when talking to a user as nowadays IDE
falls out of common lexicon and means PATA disks particularly.
sysutils/linuxfdisk: the port had been further improved (+)
- When printing usage information, give proper references to the
programs installed by this port, to avoid possible confusion with
similarly named FreeBSD native ones
- Use modern /dev/adaX names for ATA disks in the examples rather
than legacy /dev/adX which do not exist since 2015
- Do not hardcode UTIL_LINUX_VERSION, its value is correctly passed
on the command line during the build
PR: 257071
sysutils/linuxfdisk: use better PROC_PARTITIONS path on FreeBSD
Originating from GNU/Linux, this code had naturally defined the
PROC_PARTITIONS macro as "/proc/partitions", while we typically
mount this file system under "/compat/linux/proc/partitions" on
FreeBSD. Fix two (out of four) definitions which appear in the
generated executables, so e.g. `sfdisk-linux -s' would now work
correctly so long as linprocfs(5) is mounted. While at it, set
the LICENSE (GPLv2+) and bump PORTREVISION so users could enjoy
less buggy package.
PR: 257072
Unbreak `sysutils/linuxfdisk' after r276737, which removed DIOCGDINFO once
and for all; the code in `sys_bsd.c' is already using working alternatives
DIOCGMEDIASIZE and DIOCGSECTORSIZE except in sys_bsd_getgeometry(), but it
returns -1 for me even on stable/8. While here, clean up Makefile a bit.
- Distfile was moved in old/ subdir. Add the URL and
add one more site because of ftp.kernel.org is poorly accessable.
PR: ports/89048
Submitted by: Valentin Nechayev (maintainer)