[Bug 1312277] Re: partprobe returns with error if no disk label is present
Phillip Susi
psusi at ubuntu.com
Sat Apr 26 15:10:13 UTC 2014
It seems that I inadvertently fixed the other bug while fixing loop
labels. If partprobe refuses to act, it should not return success.
Upstream has changed the behaviour so that it actually *does* remove any
existing partitions and then return success, so when 3.2 is released and
makes its way to ubuntu, I suppose that will resolve this.
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to parted in Ubuntu.
https://bugs.launchpad.net/bugs/1312277
Title:
partprobe returns with error if no disk label is present
Status in “parted” package in Ubuntu:
New
Bug description:
Running partprobe on a disk with no disk label returns with an error
in Trusty. This is not the case in Precise or Saucy, nor is it the
case with parted 3.1 compiled from source. In my opinion, even if
there is no disk label or partition table present, partprobe has done
its job and should exit 0.
On a side note, this functionality breaks a script that I wrote, since
it will fail on any error, and I would prefer to keep it that way.
Precise:
==========
matt at matt-snia:~$ lsb_release -rd
Description: Ubuntu 12.04.4 LTS
Release: 12.04
matt at matt-snia:~$ apt-cache policy parted
parted:
Installed: 2.3-8ubuntu5.1
matt at matt-snia:~$ sudo parted /dev/sdf print
Error: /dev/sdf: unrecognised disk label
matt at matt-snia:~$ sudo partprobe /dev/sdf
matt at matt-snia:~$ echo $?
0
==========
Trusty:
==========
matt at matt-test:~$ lsb_release -rd
Description: Ubuntu 14.04 LTS
Release: 14.04
matt at matt-test:~$ apt-cache policy parted
parted:
Installed: 2.3-19ubuntu1
matt at matt-test:~$ sudo parted /dev/sdb print
Error: /dev/sdb: unrecognised disk label
matt at matt-test:~$ sudo partprobe /dev/sdb
Error: /dev/sdb: unrecognised disk label
matt at matt-test:~$ echo $?
1
==========
Parted 3.1:
==========
matt at matt-test:~/parted-3.1/partprobe$ ./partprobe -v
partprobe (GNU parted) 3.1
matt at matt-test:~/parted-3.1/partprobe$ sudo ./partprobe /dev/sdb
matt at matt-test:~/parted-3.1/partprobe$ echo $?
0
==========
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/parted/+bug/1312277/+subscriptions
More information about the foundations-bugs
mailing list