UUIDs on drives

Nils Kassube kassube at gmx.net
Sun Aug 17 10:45:28 UTC 2008


Neil wrote:
> 1. You cannot resize a partition without changing it's UUID. If a
> partition is resized the UUID should ba changed in all the places it
> is used.

What command did you use to resize your partition which didn't keep the 
UUID? I couldn't believe what you wrote and therefore tested it with an 
old disk which had no data of any value on it. There was a 40GB ext2 
partition on the disk, I resized the partition to 20GB with this command:

sudo resize2fs /dev/sdb1 20G

Before and after resizing the partition I checked the UUID with the blkid 
command and it was exactly the same in both cases.


Nils




More information about the ubuntu-users mailing list