top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

Changing disk UUID after cloning in CentOS 6

0 votes
524 views

I have a CentOS 6 system, and I want to make several clones of it. I'm using Clonezilla to clone the drives; that's no problem. But the drive UUIDs are driving me up the wall. After cloning, the two drives have the same UUID, but I'd like each clone to have different UUIDs so there's no possibility of a conflict when I am running diagnostics with two drives installed, etc. But when I change the UUID of the /boot or / partition (even if I update /etc/fstab), the system won't boot; it GRUBs OK (after I use recovery mode to rerun grub-install), but never gets to the 'Welcome to CentOS " message. Do I need to "rebless" vmlinuz or initrd or initramfs in the /boot partition if I change the drive UUID?

Or should I just ignore UUID and go back to using labels in /etc/fstab (which is what I did in CentOS 5)?

posted May 22, 2013 by anonymous

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

2 Answers

+1 vote

*If the disk is in /dev/sda2 then generate a new UUID with uuidgen and apply it with tune2fs

myhost # uuidgen
b13fddae-a3c3-4d17-8220-7773eb404dec
myhost # tune2fs -U b13fddae-a3c3-4d17-8220-7773eb404dec /dev/sda2
answer May 22, 2013 by anonymous
0 votes

I hate UUIDs. There is *no* way you can remember them, when you're sitting at a console trying to bring something up. We stayed with labels, which always work, and are easy to change.

answer May 22, 2013 by anonymous
Similar Questions
+2 votes

I'm having an issue getting a C6.6 install to work on a 3 TB dual hard drive system, raid 0. I'm hoping that someone here can help.

So, I install as normal, but then reboot, and it comes to a grub prompt. Going into the system via Linux rescue, I see that most of the files dealing with the kernel haven't been installed.

I asked the maker of the server and he said that they have noticed this happen recently. A solution is to put the kernel files on a thumb drive, and then point the OS to look for them there.

I have yet to try it, but is there a better way to deal with this issue that anyone else has done?

0 votes

Google gives many links to such a thing, but when I pursue them I do not get to an URL.
Where I can actually download one.

0 votes

I need to upgrade a bunch of centos 5 servers to 6.x in the near future, mostly keeping the same connectivity and functionality. Are there any tools that will examine a running 5.x box and produce the appropriate /etc/udev/rules.d/70-persistent-net.rules (etc). to make the same box come up with the same interface names with the same IPs it had before?

+2 votes

I tried to install CentOS 7 on a new system. It works.

However, I'm noticing small things:
1. system-config-network-tui is not installed and yum cannot find it. I realized for this -- nmtui
2. What about firewall? I can't seem to understand the replacement from system-config-firewall-tui

+1 vote

Can't get yumex or xfce on centos 6.4, any suggestions...

...