You are not logged in.
Pages: 1
How is this done? Live or chroot? I know about changing uuid in fstab, but there is something else I need to do, what is it? Is there a guide online to this?
I want to clone a system then give it a new UUID?
Last edited by MLEvD (2022-02-02 10:13:19)
Offline
Don't. Root requires a UUID of 1.
Offline
What? I have never had a root with a UUID of 1.
My current root UUID is 08e4209d-xxxx-xxxx-xxxx-d44fa7e0f470
(some chars exed for privacy)
Offline
I had a couple of attemps at this but struck out time and again. sorry. I've only done this with filesystems. Changing system UID's is different... https://kerneltalks.com/tips-tricks/how … -in-linux/
pic from 1993, new guitar day.
Offline
Each disk has a unique UUID, you will have to find the new disks UUID first, & then add it to fstab of that disk, then it should boot.
@ Dutch_Master
(The root user has the ID of 0.)
$ id root
uid=0(root) gid=0(root) groups=0(root)
Offline
Each disk has a unique UUID, you will have to find the new disks UUID first, & then add it to fstab of that disk, then it should boot.
It doesn't boot. Grub complains it can't find the old uuid.
Offline
Ah, OK, try re installing grub to that drive, you may need to use a 'live' version of your distro.
Offline
https://unix.stackexchange.com/question … -same-uuid
@OP: search engines are quicker than forums
Brianna Ghey — Rest In Power
Offline
(The root user has the ID of 0.)
Errmmm, oops
Offline
Well, if it's uuid of fs you require, You can check with lsblk and blkid and fstab, piping through grep for your disk /dev/sd*
Then changing the uuid in fstab for that system. Personally I find using a "live" varient simpler with a text editor and cut/copy/paste.
This is what I have done after changing a(n) fs, even swaps.
Last edited by GlennW (2022-02-03 01:01:19)
pic from 1993, new guitar day.
Offline
clone the system then chroot into it and change the UUID, depends on use case scenario. If grub is not finding the uuid then you have not update the grub.cfg inside the chroot it would seem?
Ive done this in the past using rsync, i rsync the root file system to a usb stick or other partition, chroot into it via /mnt using arch-install-scripts the do all the work from there. Grub is key though, as i said depends on scenario, dual boot, boot from stick, other hard disk on other machine etc etc...
Offline
Pages: 1