[Arm-dev] Problems with Re: Works - Re: UUID for partitions - now add resize

Robert Moskowitz rgm at htt-consult.com
Tue Dec 29 01:30:15 UTC 2015



On 12/28/2015 08:16 PM, Mandar Joshi wrote:
>> Actually they have shipped F23 and are gearing up for F24...
>>
> Oh. Well, if you could post the output of the changeuuid.py script,

So here is my first attempt:

# ./changeuuid.py pretend /dev/sdb /mnt
[INFO ]  ['/dev/sdb1', '/dev/sdb2', '/dev/sdb3']
[INFO ]  /dev/sdb1 ext3 fa926fa0-ddcb-47ea-9731-ea5c92d9f959 
7ecd1452-4878-445f-a3f7-78aace20b338
[INFO ]  /dev/sdb2 swap 6d5e843e-7dd8-4d70-a08e-4ee9d26828d7 
6798ee01-c4a9-4a21-8862-19c67485e74c
[INFO ]  /dev/sdb3 ext4 770af0f9-c7d9-4ae9-b024-1ba3c78d7550 
0ed99662-da6a-4da3-b88f-8e1f78330cbc
[INFO ]  Unmounting all partitions on /dev/sdb
umount: /dev/sdb1: not mounted
umount: /dev/sdb2: not mounted
umount: /dev/sdb3: not mounted
[INFO ]  Unmounting /dev/sdb1 /mnt
[INFO ]  Mounting /dev/sdb3 /mnt
[INFO ]  Processing File: /mnt/etc/fstab
**** Old /etc/fstab ****
#Generated by RootFS Build Factory
UUID=fa926fa0-ddcb-47ea-9731-ea5c92d9f959 /boot ext3 noatime 0 0
UUID=6d5e843e-7dd8-4d70-a08e-4ee9d26828d7 swap swap noatime 0 0
UUID=770af0f9-c7d9-4ae9-b024-1ba3c78d7550 / ext4 noatime 0 0

**** New /etc/fstab ****
#Generated by RootFS Build Factory
UUID=7ecd1452-4878-445f-a3f7-78aace20b338 /boot ext3 noatime 0 0
UUID=6798ee01-c4a9-4a21-8862-19c67485e74c swap swap noatime 0 0
UUID=0ed99662-da6a-4da3-b88f-8e1f78330cbc / ext4 noatime 0 0

[INFO ]  Mounting /dev/sdb1 /mnt
[INFO ]  Processing File: /mnt/extlinux/extlinux.conf
**** Old /extlinux/extlinux.conf ****
#Created by RootFS Build Factory
ui menu.c32
menu autoboot centos
menu title centos Options
#menu hidden
timeout 60
totaltimeout 600
label centos
     kernel /vmlinuz-4.2.3-200.el7.armv7hl
     append enforcing=0 root=UUID=770af0f9-c7d9-4ae9-b024-1ba3c78d7550
     fdtdir /dtb-4.2.3-200.el7.armv7hl
     initrd /initramfs-4.2.3-200.el7.armv7hl.img


**** New /extlinux/extlinux.conf ****
#Created by RootFS Build Factory
ui menu.c32
menu autoboot centos
menu title centos Options
#menu hidden
timeout 60
totaltimeout 600
label centos
     kernel /vmlinuz-4.2.3-200.el7.armv7hl
     append enforcing=0 root=UUID=0ed99662-da6a-4da3-b88f-8e1f78330cbc
     fdtdir /dtb-4.2.3-200.el7.armv7hl
     initrd /initramfs-4.2.3-200.el7.armv7hl.img


[INFO ]  Unmounting /dev/sdb1 /mnt
[INFO ]  Unmounting /dev/sdb3 /mnt
[INFO ]  Changing UUID/LABEL for /dev/sdb1
[INFO ]  Old:fa926fa0-ddcb-47ea-9731-ea5c92d9f959 
New:7ecd1452-4878-445f-a3f7-78aace20b338
[INFO ]  Changing UUID/LABEL for /dev/sdb2
[INFO ]  Old:6d5e843e-7dd8-4d70-a08e-4ee9d26828d7 
New:6798ee01-c4a9-4a21-8862-19c67485e74c
[INFO ]  Changing UUID/LABEL for /dev/sdb3
[INFO ]  Old:770af0f9-c7d9-4ae9-b024-1ba3c78d7550 
New:0ed99662-da6a-4da3-b88f-8e1f78330cbc

====================

# ./changeuuid.py change /dev/sdb /mnt
[INFO ]  ['/dev/sdb1', '/dev/sdb2', '/dev/sdb3']
[INFO ]  /dev/sdb1 ext3 fa926fa0-ddcb-47ea-9731-ea5c92d9f959 
efdc3d68-a75f-428b-947c-27e2644b8e55
[INFO ]  /dev/sdb2 swap 6d5e843e-7dd8-4d70-a08e-4ee9d26828d7 
1a5516ef-ee4e-4826-96d2-ea8536f83143
[INFO ]  /dev/sdb3 ext4 770af0f9-c7d9-4ae9-b024-1ba3c78d7550 
4931f2d3-3d01-4482-9134-735a930c27e3
[INFO ]  Unmounting all partitions on /dev/sdb
umount: /dev/sdb1: not mounted
umount: /dev/sdb2: not mounted
umount: /dev/sdb3: not mounted
[INFO ]  Unmounting /dev/sdb1 /mnt
[INFO ]  Mounting /dev/sdb3 /mnt
[INFO ]  Processing File: /mnt/etc/fstab
**** Old /etc/fstab ****
#Generated by RootFS Build Factory
UUID=fa926fa0-ddcb-47ea-9731-ea5c92d9f959 /boot ext3 noatime 0 0
UUID=6d5e843e-7dd8-4d70-a08e-4ee9d26828d7 swap swap noatime 0 0
UUID=770af0f9-c7d9-4ae9-b024-1ba3c78d7550 / ext4 noatime 0 0

**** New /etc/fstab ****
#Generated by RootFS Build Factory
UUID=efdc3d68-a75f-428b-947c-27e2644b8e55 /boot ext3 noatime 0 0
UUID=1a5516ef-ee4e-4826-96d2-ea8536f83143 swap swap noatime 0 0
UUID=4931f2d3-3d01-4482-9134-735a930c27e3 / ext4 noatime 0 0

[INFO ]  Writing /mnt/etc/fstab
[INFO ]  Unmounting /mnt
[INFO ]  Mounting /dev/sdb1 /mnt
[INFO ]  Processing File: /mnt/extlinux/extlinux.conf
**** Old /extlinux/extlinux.conf ****
#Created by RootFS Build Factory
ui menu.c32
menu autoboot centos
menu title centos Options
#menu hidden
timeout 60
totaltimeout 600
label centos
     kernel /vmlinuz-4.2.3-200.el7.armv7hl
     append enforcing=0 root=UUID=770af0f9-c7d9-4ae9-b024-1ba3c78d7550
     fdtdir /dtb-4.2.3-200.el7.armv7hl
     initrd /initramfs-4.2.3-200.el7.armv7hl.img


**** New /extlinux/extlinux.conf ****
#Created by RootFS Build Factory
ui menu.c32
menu autoboot centos
menu title centos Options
#menu hidden
timeout 60
totaltimeout 600
label centos
     kernel /vmlinuz-4.2.3-200.el7.armv7hl
     append enforcing=0 root=UUID=4931f2d3-3d01-4482-9134-735a930c27e3
     fdtdir /dtb-4.2.3-200.el7.armv7hl
     initrd /initramfs-4.2.3-200.el7.armv7hl.img


[INFO ]  Writing /mnt/extlinux/extlinux.conf
[INFO ]  Unmounting /mnt
[INFO ]  Unmounting /dev/sdb1 /mnt
[INFO ]  Unmounting /dev/sdb3 /mnt
[INFO ]  Changing UUID/LABEL for /dev/sdb1
[INFO ]  Old:fa926fa0-ddcb-47ea-9731-ea5c92d9f959 
New:efdc3d68-a75f-428b-947c-27e2644b8e55
tune2fs 1.42.12 (29-Aug-2014)
[INFO ]  Changing UUID/LABEL for /dev/sdb2
[INFO ]  Old:6d5e843e-7dd8-4d70-a08e-4ee9d26828d7 
New:1a5516ef-ee4e-4826-96d2-ea8536f83143
mkswap: /dev/sdb2: warning: wiping old swap signature.
Setting up swapspace version 1, size = 512 MiB (536866816 bytes)
no label, UUID=1a5516ef-ee4e-4826-96d2-ea8536f83143
[INFO ]  Changing UUID/LABEL for /dev/sdb3
[INFO ]  Old:770af0f9-c7d9-4ae9-b024-1ba3c78d7550 
New:4931f2d3-3d01-4482-9134-735a930c27e3
tune2fs 1.42.12 (29-Aug-2014)

=========

I now will unmount this and do it again.




More information about the Arm-dev mailing list