[Bug 1312277] Re: partprobe returns with error if no disk label is present

Matthew Eaton m.eaton82 at gmail.com
Sat Apr 26 19:13:11 UTC 2014


Thanks a lot for confirming this is the correct behavior.  I guess I was
assuming partprobe was actually doing *something* behind the scenes
since it was returning 0.  I'm marking this as invalid.

** Changed in: parted (Ubuntu)
       Status: New => Invalid

-- 
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:
  Invalid

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