[Bug 271281] gpart: wrong and useless error message "Invalid argument" when gpart fails due to internal bugs
Date: Sun, 07 May 2023 17:00:42 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=271281 Graham Perrin <grahamperrin@freebsd.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |Not A Bug Status|New |Closed --- Comment #7 from Graham Perrin <grahamperrin@freebsd.org> --- Documentation might be improved, however this is not a kernel bug. Essentially: a partition is not a file system. <https://docs.freebsd.org/en/books/handbook/disks/#disks-adding> is fairly clear. In a nutshell: * use gpart to create a partition table then add a partition * use newfs to create a new UFS file systems. fstyp(8) <https://man.freebsd.org/cgi/man.cgi?query=fstyp&sektion=8&manpath=freebsd-release> gpart(8) <https://man.freebsd.org/cgi/man.cgi?query=gpart&sektion=8&manpath=freebsd-release> add is an argument. create is an argument. The PARTITION TYPES section: <https://man.freebsd.org/cgi/man.cgi?query=gpart&sektion=8&manpath=freebsd-release#PARTITION_TYPES>. If a person attempts to add, or create, a partition type that does not exist: that is, truly: * an invalid argument * not a useless error message. mkntfs(8) <https://man.freebsd.org/cgi/man.cgi?query=mkntfs&sektion=8&manpath=freebsd-ports> % pkg provides mkntfs Name : fusefs-ntfs-2022.10.3 Comment : Mount NTFS partitions (read/write) and disk images Repo : FreeBSD Filename: usr/local/sbin/mkntfs usr/local/man/man8/mkntfs.8.gz % sysutils/fusefs-ntfs <https://www.freshports.org/sysutils/fusefs-ntfs/> -- You are receiving this mail because: You are the assignee for the bug.