# Revision history [back]

### How to change disk without reinstalling?

Currently, I have a 1 TByte spinning disk with encrypted LVM on top (NB: the partitions do not add up to 1 TByte and sda4 is unused):

NAME                                          MAJ:MIN RM   SIZE RO TYPE  MOUNTPOINT
sda                                             8:0    0 931,5G  0 disk
├─sda1                                          8:1    0   200M  0 part  /boot/efi
├─sda2                                          8:2    0   500M  0 part  /boot
├─sda3                                          8:3    0   400G  0 part
│ └─luks-$UUID 253:0 0 400G 0 crypt │ ├─fedora_passepartout-root 253:1 0 35G 0 lvm / │ ├─fedora_passepartout-swap 253:2 0 16G 0 lvm [SWAP] │ ├─fedora_passepartout-home$USER           253:3    0   194G  0 lvm   /home/$USER │ └─fedora_passepartout-$DATA               253:4    0    19G  0 lvm   \$DATA
└─sda4                                          8:4    0   100G  0 part
sr0                                            11:0    1  1024M  0 rom


I want to replace the spinning disk with a 500 GByte SSD and I would like to avoid having to reinstall Fedora. Ideally, I would like to set up LVM on the new disk, plug in the old disk via USB, move the volumes with pvmove and boot from the new disk.

I am wondering where Fedora stores references to UUIDs, etc. that need to be updated after moving (or copying) the volumes. I see UUID references to partitions in /etc/fstab for /boot and /boot/efi and UUID references to the LUKS container in /boot/efi/EFI/fedora/grub.cfg (and /etc/default/grub) and /etc/crypttab.

Are there other references that I would need to update besides /etc/fstab, /boot/efi/EFI/fedora/grub.cfg and /etc/crypttab?