title: Partitioning issue with sgdisk
body: <p>I am trying to partition hard disk using sgdisk. After running the sgdisk partitioning commands i can see that the gpt partition table is getting created but the logical partitions are not getting created. Below are the commands i used.</p>
  
  <h1>sgdisk -og /dev/sda</h1>
  
  <p>Creating new GPT entries.</p>
  
  <p>sda: sda1</p>
  
  <p>The operation has completed successfully.</p>
  
  <h1>sgdisk -n 1:2048:264191 -c 1:"kernel" /dev/sda</h1>
  
  <p>Setting name!</p>
  
  <p>partNum is 0</p>
  
  <p>REALLY setting name!</p>
  
  <p>sda: sda1</p>
  
  <p>The operation has completed successfully.</p>
  
  <h1>sgdisk -n 2:264192:395263 -c 2:"rootfs" /dev/sda</h1>
  
  <p>Setting name!</p>
  
  <p>partNum is 1</p>
  
  <p>REALLY setting name!</p>
  
  <p>sda: sda1</p>
  
  <p>The operation has completed successfully.</p>
  
  <h1>sgdisk -n 3:395263:460799 -c 3:"data" /dev/sda</h1>
  
  <p>Information: Moved requested sector from 395263 to 395264 in
  order to align on 2048-sector boundaries.</p>
  
  <p>Setting name!</p>
  
  <p>partNum is 2</p>
  
  <p>REALLY setting name!</p>
  
  <p>sda: sda1
  The operation has completed successfully.</p>
  
  <h1>sgdisk -p /dev/sda</h1>
  
  <p>Disk /dev/sda: 3907029168 sectors, 1.8 TiB</p>
  
  <p>Logical sector size: 512 bytes</p>
  
  <p>Disk identifier (GUID): 1FE36D38-3427-40CC-A0B0-08664DC76C74
  Partition table holds up to 128 entries
  First usable sector is 34, last usable sector is 3907029134
  Partitions will be aligned on 2048-sector boundaries</p>
  
  <p>Total free space is 3906570349 sectors (1.8 TiB)</p>
  
  <p>Number  Start (sector)    End (sector)  Size       Code  Name
     1            2048          264191   128.0 MiB   8300  kernel</p>
  
  <p>2          264192          395263   64.0 MiB    8300  rootfs</p>
  
  <p>3          395264          460799   32.0 MiB    8300  data</p>
  
  <h1>cat /proc/partitions</h1>
  
  <p>major minor  #blocks  name</p>
  
  <p>8        0 1953514584 sda</p>
  
  <p>8        1 1953514583 sda1</p>
  
  <h1>lsblk</h1>
  
  <p>NAME   MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
  sda      8:0    0   1.8T  0 disk</p>
  
  <p>`-sda1   8:1    0   1.8T  0 part</p>
  
  <p>I am using sgdisk version 0.8.10. I am doing this test on an ARM A9 board using initrd image.</p>
  
  <p>thanks</p>