Public bug reported:

Package: gdisk

Bin: sgdisk

gdisk:
  Installed: 0.8.1-1build1
  Candidate: 0.8.1-1build1
  Version table:
 *** 0.8.1-1build1 0
        500 http://mirror.yandex.ru/ubuntu/ precise/universe amd64 Packages
        100 /var/lib/dpkg/status

System:
Description:    Ubuntu 12.04 LTS
Release:        12.04

As described here 
http://sourceforge.net/p/gptfdisk/code/ci/master/tree/sgdisk.8 (sgdisk):
.TP 
.B 3
Non\-GPT disk detected and no \fI\-g\fR option

But if we run:
sgdisk -b ~/test.dump /dev/sda ; echo $?

where sda has MBR, no GPT, we get ec = 0.
Here is example of fix:
https://github.com/kini/gptfdisk/compare/master...overquota:master
(need "saveData = 1;" in case 'b' for check condition and return 3 worked then)

Also there fix of make errors, when compiling on ubuntu precise
(#include <unistd.h> in diskio-unix.cc) - I don't know, maybe it's not
necessary in upstream, i just couldn't build bin file without it

Could this be fixed in gdisk?
We have this problem in precise, but in newer packages problem exists too.

** Affects: gdisk (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1445456

Title:
  sgdisk return 0 if nonGPT partition style (must return 3)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gdisk/+bug/1445456/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to