gparted should offer option to change UUID when copying partition
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
GParted |
Confirmed
|
Wishlist
|
|||
gparted (Ubuntu) |
Fix Released
|
Wishlist
|
Unassigned |
Bug Description
Binary package hint: gparted
A system with two physical disks (sda, sdb), each with valid UUID.
Problem:
Gparted overwrites a valid UUID on destination disk if partition is copied using Gparted. Result is two partitions with same UUID i.e. "Unique Identifier" is no more unique. That will result in some other problems which show up like described in bug report # 579703 for example.
Further details:
Gparted version is 0.7. Steps I did: Ubuntu 10.10 system partition (/) on disk "sda" was getting fulll and I added another physical disk "sdb" which was before used in another Ubuntu installation with valid partition. "sdb" was working ok after boot. Decided to copy Ubuntu system partition from "sda" to "sdb" and modify boot to use "sdb" for Ubuntu since there is enough space. Idea did not succeed since Gparted had overwritten original UUID on disk "sdb" i.e. there are now two partitions on different disks with same UUID. Please see this printout fron "sudo blkid":
/dev/sda1: LABEL="C_DRIVE" UUID="F614D11C1
/dev/sda2: UUID="33111f1c-
/dev/sda3: LABEL="10.10-root" UUID="144ec3ef-
/dev/sda4: LABEL="10.10-home" UUID="5589dba1-
/dev/sdb1: LABEL="10.10-root" UUID="144ec3ef-
summary: |
- Gparted: "Copy" creates duplicate UUID to another disk + gparted should offer option to change UUID when copying partition |
Changed in gparted (Ubuntu): | |
importance: | Undecided → Wishlist |
status: | New → Triaged |
Changed in gparted: | |
importance: | Unknown → Wishlist |
status: | Unknown → New |
Changed in gparted: | |
status: | New → Confirmed |
Changed in gparted (Ubuntu): | |
status: | Triaged → Fix Released |
FYI / temporary fix:
You can fix invalid UUID manually. Run "uuidgen", that will give you a new UUID. Use "tune2fs" to change that UUID for your partition.
For example, let's assume that uuidgen answered "fe05703f- 87f5-44ef- 8224-ff3eb501a9 8f", command
sudo tune2fs -U /dev/sdb1 fe05703f- 87f5-44ef- 8224-ff3eb501a9 8f
will do it.