sgdisk only saves 35 characters with change-name option

Bug #1569819 reported by tuhl on 2016-04-13
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
gdisk (Ubuntu)
Medium
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.

tuhl (j-thomms-c) wrote :

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

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) on 2017-01-18
Changed in gdisk (Ubuntu):
status: New → Confirmed
importance: Undecided → Medium
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers