sgdisk only saves 35 characters with change-name option

Bug #1569819 reported by tuhl
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
gdisk (Ubuntu)
Fix Released
Medium
Unassigned
Trusty
Won't Fix
Undecided
Unassigned

Bug Description

If setting the partition name with the -c or --change-name option, sgdisk cuts off the 36th character.

sgdisk --change-name=1:"3A184FB2-508B-4C5B-A92A-5ABBE35EDDD2" /dev/sdb
parted -m /dev/sdb print | grep ^1:
1:1049kB:7516MB:7515MB:ext4:3A184FB2-508B-4C5B-A92A-5ABBE35EDDD:;
-------------------------------------------------------------------------------------------------------------------------^

If I set the name with parted, all is good.

parted -s /dev/sdb name 1 3A184FB2-508B-4C5B-A92A-5ABBE35EDDD2
parted -m /dev/sdb print | grep ^1:
1:1049kB:7516MB:7515MB:ext4:3A184FB2-508B-4C5B-A92A-5ABBE35EDDD2:;

1.
Description: Ubuntu 14.04.4 LTS
Release: 14.04

2.
0.8.8-1ubuntu0.1

3.
sgdisk should save 36 characters of partition name as parted does.

4.
sgdisk only saves 35 characters.

Revision history for this message
tuhl (j-thomms-c) wrote :

sorry, wrong headline. Not 11chars, only 35 chars are stored instead of 36.

Revision history for this message
Rod Smith (rodsmith) wrote :

This is fixed upstream somewhere between 0.8.8 (included in Ubuntu 14.04) and 1.01 (to be included in Ubuntu 16.04).

summary: - sgdisk only saves 11 characters with change-name option
+ sgdisk only saves 35 characters with change-name option
Joshua Powers (powersj)
Changed in gdisk (Ubuntu):
status: New → Confirmed
importance: Undecided → Medium
Revision history for this message
Christian Ehrhardt  (paelzer) wrote :

Hi clearing old bugs atm.

Indeed, thanks Rod
 gdisk | 0.8.8-1build1 | trusty | source, amd64, arm64, armhf, i386, powerpc, ppc64el
 gdisk | 0.8.8-1ubuntu0.1 | trusty-updates | source, amd64, arm64, armhf, i386, powerpc, ppc64el
 gdisk | 1.0.1-1build1 | xenial | source, amd64, arm64, armhf, i386, powerpc, ppc64el, s390x
 gdisk | 1.0.3-1 | bionic | source, amd64, arm64, armhf, i386, ppc64el, s390x
 gdisk | 1.0.5-1 | focal | source, amd64, arm64, armhf, i386, ppc64el, riscv64, s390x
 gdisk | 1.0.6-1.1 | hirsute | source, amd64, arm64, armhf, i386, ppc64el, riscv64, s390x
 gdisk | 1.0.8-1 | impish | source, amd64, arm64, armhf, i386, ppc64el, riscv64, s390x

Therefore this is only left on Trusty which is unfortunately out of standard support (ESM still).
Therefore this sadly was forgotten but actually is - by now - also fixed since a few years.

Changed in gdisk (Ubuntu Trusty):
status: New → Won't Fix
Changed in gdisk (Ubuntu):
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.