UUIDs on drives

Neil hok.krat at gmail.com
Sun Aug 17 11:14:08 UTC 2008


On Sun, Aug 17, 2008 at 12:45 PM, Nils Kassube <kassube at gmx.net> wrote:
> 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
>
> --
> ubuntu-users mailing list
> ubuntu-users at lists.ubuntu.com
> Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
>

I didn't test it. I read it in this thread:

On Thu, Aug 14, 2008 at 3:44 PM, Marcin 'Qrczak' Kowalczyk
<qrczak at knm.org.pl> wrote:
> 2008/8/14 Brian McKee <brian.mckee at gmail.com>:
>
>> But that's the point.  The drive and partition numbers can and do
>> change - UUID doesn't.
>
> Except when resizing the swap with gparted, where /dev/sda5 does not
> change but UUID does.
>
> --
> Marcin Kowalczyk
> qrczak at knm.org.pl
> http://qrnik.knm.org.pl/~qrczak/
>
> --
> ubuntu-users mailing list
> ubuntu-users at lists.ubuntu.com
> Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
>

I have no harddisks I do not use and do not like fiddling around with
harddisks I use (unless nessicary) , so I didn't test it. Sorry if it
isn't true.

Neil



-- 
There are two kinds of people:
1. People who start their arrays with 1.
1. People who start their arrays with 0.

-----------------------------------------------------------------------
**  Hi! I'm a signature virus! Copy me into your signature, please!  **
-----------------------------------------------------------------------




More information about the ubuntu-users mailing list