# Is changing grub the best way to change to a different boot device?

**URL:** <https://forums.rockylinux.org/t/is-changing-grub-the-best-way-to-change-to-a-different-boot-device/18017>\
**Category:** Rocky Linux Help & Support\
**Created:** [March 25, 2025, 10:50pm UTC](https://forums.rockylinux.org/t/is-changing-grub-the-best-way-to-change-to-a-different-boot-device/18017 "2025-03-25T22:50:39Z")\
**Posts on this page:** 1\
**Showing post:** 20

<div class="post-metadata">

**Author:** ![ticedoff8](https://avatars.discourse-cdn.com/v4/letter/t/9d8465/32.png) [@ticedoff8](https://forums.rockylinux.org/u/ticedoff8)\
**Post date:** [March 28, 2025, 4:45am UTC](https://forums.rockylinux.org/t/is-changing-grub-the-best-way-to-change-to-a-different-boot-device/18017/20 "2025-03-28T04:45:22Z")

</div>

> [@jbkt23](#):
>
> Once you’ve done that then draft up what you think the command line should be to update your kernel initrd and post it here before you proceed

I got two option based on what I read:

```auto
dracut root=UUID=c760fc3b-952f-4805-85ec-293cded60b65 ro crashkernel=1G-4G:192M,4G-64G:256M,64G-:512M resume=/dev/mapper/rl_vbox-swap rd.lvm.lv=rl_vbox/root rd.lvm.lv=rl_vbox/sw

```

Or

```auto
dracut root=UUID=c760fc3b-952f-4805-85ec-293cded60b65 rd.lvm.lv=rl_vbox/root rd.lvm.lv=rl_vbox/swap resume=/dev/mapper/rl_vbox-swap root=/dev/mapper/rl_vbox-root rootfstype=xfs rootflags=rw,relatime,seclabel,attr2,inode64,logbufs=8,logbsize=32k,noquota

```

This is what it is using now (I think):

```auto
dracut --print-cmdline
 rd.lvm.lv=rl_vbox/root rd.lvm.lv=rl_vbox/swap resume=/dev/mapper/rl_vbox-swap root=/dev/mapper/rl_vbox-root rootfstype=xfs rootflags=rw,relatime,seclabel,attr2,inode64,logbufs=8,logbsize=32k,noquota

```

“root=UUID=” is the blkid for the root (/) partiton

```auto
[root@localhost ~]# ls -l /dev/disk/by-uuid/
total 0
lrwxrwxrwx. 1 root root 15 Mar 27 11:36 77c510bd-4d6e-4bea-ade9-656beee38c67 -> ../../nvme0n1p2
lrwxrwxrwx. 1 root root 15 Mar 27 11:36 7983-124F -> ../../nvme0n1p1
lrwxrwxrwx. 1 root root 10 Mar 27 11:36 79b7f832-d405-402d-bba6-c0909c4b8b81 -> ../../sda1
lrwxrwxrwx. 1 root root 10 Mar 27 11:36 c09d90f8-c7f0-4f97-831e-6894b96a002c -> ../../dm-2
>> lrwxrwxrwx. 1 root root 10 Mar 27 11:36 c760fc3b-952f-4805-85ec-293cded60b65 -> ../../dm-0
lrwxrwxrwx. 1 root root 10 Mar 27 11:36 d38be9ff-74d8-4bb6-8073-6019a8af2400 -> ../../dm-1
[root@localhost ~]#

```

But, I bet both are missing something important.

---

_[View the full topic](https://forums.rockylinux.org/t/is-changing-grub-the-best-way-to-change-to-a-different-boot-device/18017)._
