Move Installation To NVME Drive
by bplis* from LinuxQuestions.org on (#5A986)
I have a slightly older Fedora install that has been upgraded to Fedora 32.
Current kernel 5.8.17-200.fc32.x86_64
Logical volumes set up, separate /home /swap and /, all underlying partitions are EXT4
Grub2 installed in the MBR in my msdos partitioned 1TB SATA SSD
I just acquired a new 1TB NVME drive, and want to move my Fedora installation to the NVME from my SATA drive. As I use LVMs, I thought this would be relatively simple- Create a partition on the new drive, adopt it into the volume group, pvmove all my logical volumes over, remove the SATA drive from the volume group, and install Grub2 to the new drive.
However, this has not been the case. This failed miserably, and my system would not boot. I booted up a liveUSB, pvmoved all my volumes back to the old drive, and booting from Grub on either the SATA or on the NVME drive works fine. As soon as I move one volume to the NVME, boot fails. I found that strange, and so I shut down, booted the LiveUSB again, and just straight up used dd to copy the entirety of the SATA drive to the NVME one. This resulted in the exact same issue booting as before.
I added rd.break=initqueue to get into a shell in the initramfs, and found that the NVME drive was not showing up in /dev. Strange, it seems that my initramfs did not get NVME support built in. So I booted to my old drive, created a new initramfs manually specifying for the nvme module to be loaded, copied that over and tried again. Also did not work.
I tried using the --no-hostonly argument as well adn rebuilt the initramfs again, but I still cannot see the nvme drive in the initramfs. I installed a fresh install of Fedora 33 on the NVME drive, and it booted just fine. However, the auto-setup used GPT and EFI boot, instead of a legacy BIOS/Grub2.
My question at this point, is if there is an issue getting my system to build in nvme support to the initramfs correctly, or if there is a known issue when booting NVMEs that have been set up as a BIOS/msdos disk. I am not super interested in converting to use EFI boot at this time, and would like to be able to get my current system running off the NVME drive if possible.
Thank you.
**edit**
It appears that I cannot figure out how to edit my signature. I am running a new rig- Ryzen 7 1700X, MSI X470 Gaming Plus, 32GB DDR4-3400, RX 5700XT, 1TB Samsung 860 Evo SATA, 1TB SK Hynix Gold P31 NVME, Fedora 32


Current kernel 5.8.17-200.fc32.x86_64
Logical volumes set up, separate /home /swap and /, all underlying partitions are EXT4
Grub2 installed in the MBR in my msdos partitioned 1TB SATA SSD
I just acquired a new 1TB NVME drive, and want to move my Fedora installation to the NVME from my SATA drive. As I use LVMs, I thought this would be relatively simple- Create a partition on the new drive, adopt it into the volume group, pvmove all my logical volumes over, remove the SATA drive from the volume group, and install Grub2 to the new drive.
However, this has not been the case. This failed miserably, and my system would not boot. I booted up a liveUSB, pvmoved all my volumes back to the old drive, and booting from Grub on either the SATA or on the NVME drive works fine. As soon as I move one volume to the NVME, boot fails. I found that strange, and so I shut down, booted the LiveUSB again, and just straight up used dd to copy the entirety of the SATA drive to the NVME one. This resulted in the exact same issue booting as before.
I added rd.break=initqueue to get into a shell in the initramfs, and found that the NVME drive was not showing up in /dev. Strange, it seems that my initramfs did not get NVME support built in. So I booted to my old drive, created a new initramfs manually specifying for the nvme module to be loaded, copied that over and tried again. Also did not work.
I tried using the --no-hostonly argument as well adn rebuilt the initramfs again, but I still cannot see the nvme drive in the initramfs. I installed a fresh install of Fedora 33 on the NVME drive, and it booted just fine. However, the auto-setup used GPT and EFI boot, instead of a legacy BIOS/Grub2.
My question at this point, is if there is an issue getting my system to build in nvme support to the initramfs correctly, or if there is a known issue when booting NVMEs that have been set up as a BIOS/msdos disk. I am not super interested in converting to use EFI boot at this time, and would like to be able to get my current system running off the NVME drive if possible.
Thank you.
**edit**
It appears that I cannot figure out how to edit my signature. I am running a new rig- Ryzen 7 1700X, MSI X470 Gaming Plus, 32GB DDR4-3400, RX 5700XT, 1TB Samsung 860 Evo SATA, 1TB SK Hynix Gold P31 NVME, Fedora 32