# Root UUID change

**URL:** https://forums.rockylinux.org/t/root-uuid-change/17740
**Category:** Rocky Linux Help & Support
**Created:** [February 28, 2025, 8:23pm UTC](https://forums.rockylinux.org/t/root-uuid-change/17740 "2025-02-28T20:23:19Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![DAS\_Steve](https://avatars.discourse-cdn.com/v4/letter/d/c57346/32.png) [@DAS\_Steve](https://forums.rockylinux.org/u/DAS_Steve)
#### Post date: [February 28, 2025, 8:23pm UTC](https://forums.rockylinux.org/t/root-uuid-change/17740/1 "2025-02-28T20:23:19Z")

</div>

I had a similar question about changing the UUID of /boot. Now I want to change the UUID for / (root). Why? Because of a legacy thing.

I have tried using a live image since I would think I’d have to because unmounting the root would not work since the OS resides here. Using the live image I just can’t get it to work.

I mount both the etc and boot partitions then chroot but when I go to build the default grub it fails, saying it can’t get device map. There should be no device map since when I check the system out before I try this there isn’t one and reading says with new grub this is possible. Also when I rad the default grub there is no entry for root UUID I think that also can be normal? I assume I have to add my own?

I’ve also tried not chroot with no luck, I do see the UUID changes but it won’t boot. I hope this makes sense?

Anyone have any insight here? I know this can be done, I have seen it done on CentOS7.

Thanks

---

<div class="post-metadata">

### Author: ![jbkt23](https://avatars.discourse-cdn.com/v4/letter/j/9fc29f/32.png) [@jbkt23](https://forums.rockylinux.org/u/jbkt23)
#### Post date: [March 2, 2025, 3:26pm UTC](https://forums.rockylinux.org/t/root-uuid-change/17740/2 "2025-03-02T15:26:48Z")

</div>

I only can answer R9.  
You have to edit the UUID for root in each of the following places:  
/etc/fstab  
/etc/kernel/cmdline # if it exists  
then for each file in  
/boot/loader/entries/

nowhere else that I can remember.

---

<div class="post-metadata">

### Author: ![DAS\_Steve](https://avatars.discourse-cdn.com/v4/letter/d/c57346/32.png) [@DAS\_Steve](https://forums.rockylinux.org/u/DAS_Steve)
#### Post date: [March 3, 2025, 1:09pm UTC](https://forums.rockylinux.org/t/root-uuid-change/17740/3 "2025-03-03T13:09:58Z")

</div>

Thank you I will give it a try

---

<div class="post-metadata">

### Author: ![DAS\_Steve](https://avatars.discourse-cdn.com/v4/letter/d/c57346/32.png) [@DAS\_Steve](https://forums.rockylinux.org/u/DAS_Steve)
#### Post date: [March 3, 2025, 6:02pm UTC](https://forums.rockylinux.org/t/root-uuid-change/17740/4 "2025-03-03T18:02:32Z")

</div>

Those files did work for me thanks

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/flex020/uploads/rockylinux/original/1X/91b7219eec10e30013422e4df76c1d898711a5d5.svg) [@system](https://forums.rockylinux.org/u/system)
#### Post date: [May 2, 2025, 6:03pm UTC](https://forums.rockylinux.org/t/root-uuid-change/17740/5 "2025-05-02T18:03:03Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
