[Bug 1885627] [NEW] sfdisk does not notice over-large partitions
Kevin O'Gorman
1885627 at bugs.launchpad.net
Mon Jun 29 20:43:23 UTC 2020
Public bug reported:
Call this a feature request.
I found that when I use the output of "sfdisk --dump" from one disk to
format another one that is smaller, sfdisk does not complain. Of
course, using those partitions caused problems because they went off the
end of the new disk. The error can be big or small -- manufacturers
vary in the exact sizes of disks over 80 GB or so, and a user may not
notice this condition is arising.
Sfdisk says it's intended for scripting. Since testing for this is
tricky in scripts, I'd really like sfdisk to check for it. Just notice
if a partition being created extends off the end of the actual volume
being formatted. And do something about it to let the calling script
know.
ProblemType: Bug
DistroRelease: Ubuntu 18.04
Package: util-linux 2.31.1-0.4ubuntu3.6
ProcVersionSignature: Ubuntu 4.15.0-106.107-generic 4.15.18
Uname: Linux 4.15.0-106-generic x86_64
NonfreeKernelModules: wl
ApportVersion: 2.20.9-0ubuntu7.15
Architecture: amd64
CurrentDesktop: XFCE
Date: Mon Jun 29 13:36:55 2020
SourcePackage: util-linux
UpgradeStatus: No upgrade log present (probably fresh install)
** Affects: util-linux (Ubuntu)
Importance: Undecided
Status: New
** Tags: amd64 apport-bug bionic
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to util-linux in Ubuntu.
https://bugs.launchpad.net/bugs/1885627
Title:
sfdisk does not notice over-large partitions
Status in util-linux package in Ubuntu:
New
Bug description:
Call this a feature request.
I found that when I use the output of "sfdisk --dump" from one disk to
format another one that is smaller, sfdisk does not complain. Of
course, using those partitions caused problems because they went off
the end of the new disk. The error can be big or small --
manufacturers vary in the exact sizes of disks over 80 GB or so, and a
user may not notice this condition is arising.
Sfdisk says it's intended for scripting. Since testing for this is
tricky in scripts, I'd really like sfdisk to check for it. Just
notice if a partition being created extends off the end of the actual
volume being formatted. And do something about it to let the calling
script know.
ProblemType: Bug
DistroRelease: Ubuntu 18.04
Package: util-linux 2.31.1-0.4ubuntu3.6
ProcVersionSignature: Ubuntu 4.15.0-106.107-generic 4.15.18
Uname: Linux 4.15.0-106-generic x86_64
NonfreeKernelModules: wl
ApportVersion: 2.20.9-0ubuntu7.15
Architecture: amd64
CurrentDesktop: XFCE
Date: Mon Jun 29 13:36:55 2020
SourcePackage: util-linux
UpgradeStatus: No upgrade log present (probably fresh install)
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/util-linux/+bug/1885627/+subscriptions
More information about the foundations-bugs
mailing list