Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 07 May 2023 17:00:42 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 271281] gpart: wrong and useless error message "Invalid argument" when gpart fails due to internal bugs
Message-ID:  <bug-271281-227-om7hVm6EXi@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-271281-227@https.bugs.freebsd.org/bugzilla/>
References:  <bug-271281-227@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D271281

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.=20

Essentially: a partition is not a file system.=20

<https://docs.freebsd.org/en/books/handbook/disks/#disks-adding>; is fairly
clear. In a nutshell:=20

* 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=3Dfstyp&sektion=3D8&manpath=3Dfr=
eebsd-release>


gpart(8)
<https://man.freebsd.org/cgi/man.cgi?query=3Dgpart&sektion=3D8&manpath=3Dfr=
eebsd-release>

add is an argument.

create is an argument.=20

The PARTITION TYPES section:
<https://man.freebsd.org/cgi/man.cgi?query=3Dgpart&sektion=3D8&manpath=3Dfr=
eebsd-release#PARTITION_TYPES>.
If a person attempts to add, or create, a partition type that does not exis=
t:
that is, truly:=20

* an invalid argument
* not a useless error message.


mkntfs(8)
<https://man.freebsd.org/cgi/man.cgi?query=3Dmkntfs&sektion=3D8&manpath=3Df=
reebsd-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
%=20

sysutils/fusefs-ntfs
<https://www.freshports.org/sysutils/fusefs-ntfs/>;

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-271281-227-om7hVm6EXi>